| 1 |
(component |
| 2 |
(type $ty-test:test/test (;0;) |
| 3 |
(instance |
| 4 |
(type (;0;) (func (param "v" s32) (result s32))) |
| 5 |
(export (;0;) "foo" (func (type 0))) |
| 6 |
) |
| 7 |
) |
| 8 |
(import "test:test/test" (instance $test:test/test (;0;) (type $ty-test:test/test))) |
| 9 |
(core module $main (;0;) |
| 10 |
(table (;0;) 4 funcref) |
| 11 |
(memory (;0;) 17) |
| 12 |
(global (;0;) (mut i32) i32.const 1048576) |
| 13 |
(global (;1;) (mut i32) i32.const 1048576) |
| 14 |
(global (;2;) (mut i32) i32.const 0) |
| 15 |
(global (;3;) i32 i32.const 1048704) |
| 16 |
(global (;4;) i32 i32.const 4) |
| 17 |
(global (;5;) i32 i32.const 1048704) |
| 18 |
(global (;6;) i32 i32.const 4) |
| 19 |
(global (;7;) i32 i32.const 1048704) |
| 20 |
(global (;8;) i32 i32.const 4) |
| 21 |
(global (;9;) (mut i32) i32.const 1049120) |
| 22 |
(global (;10;) (mut i32) i32.const 1114112) |
| 23 |
(export "__stack_pointer" (global 0)) |
| 24 |
(export "__stack_high" (global 1)) |
| 25 |
(export "__stack_low" (global 2)) |
| 26 |
(export "foo:memory_base" (global 3)) |
| 27 |
(export "foo:table_base" (global 4)) |
| 28 |
(export "libc.so:memory_base" (global 5)) |
| 29 |
(export "libc.so:table_base" (global 6)) |
| 30 |
(export "libdl.so:memory_base" (global 7)) |
| 31 |
(export "libdl.so:table_base" (global 8)) |
| 32 |
(export "__heap_base" (global 9)) |
| 33 |
(export "__heap_end" (global 10)) |
| 34 |
(export "__indirect_function_table" (table 0)) |
| 35 |
(export "memory" (memory 0)) |
| 36 |
(@producers |
| 37 |
(processed-by "wit-component" "$CARGO_PKG_VERSION") |
| 38 |
) |
| 39 |
) |
| 40 |
(core module $libc.so (;1;) |
| 41 |
(@dylink.0 |
| 42 |
(mem-info (memory 0 4)) |
| 43 |
) |
| 44 |
(type (;0;) (func)) |
| 45 |
(type (;1;) (func (param i32) (result i32))) |
| 46 |
(type (;2;) (func (param i32 i32 i32) (result i32))) |
| 47 |
(import "GOT.mem" "__heap_base" (global $__heap_base (;0;) (mut i32))) |
| 48 |
(import "GOT.mem" "__heap_end" (global $__heap_end (;1;) (mut i32))) |
| 49 |
(global $errno (;2;) i32 i32.const 0) |
| 50 |
(global $heap (;3;) (mut i32) i32.const 0) |
| 51 |
(export "malloc" (func $malloc)) |
| 52 |
(export "memcmp" (func $memcmp)) |
| 53 |
(export "strlen" (func $strlen)) |
| 54 |
(export "abort" (func $abort)) |
| 55 |
(export "errno" (global $errno)) |
| 56 |
(start $start) |
| 57 |
(func $start (;0;) (type 0) |
| 58 |
global.get $__heap_base |
| 59 |
global.set $heap |
| 60 |
) |
| 61 |
(func $malloc (;1;) (type 1) (param i32) (result i32) |
| 62 |
global.get $heap |
| 63 |
global.get $heap |
| 64 |
local.get 0 |
| 65 |
i32.add |
| 66 |
global.set $heap |
| 67 |
) |
| 68 |
(func $memcmp (;2;) (type 2) (param i32 i32 i32) (result i32) |
| 69 |
unreachable |
| 70 |
) |
| 71 |
(func $strlen (;3;) (type 1) (param i32) (result i32) |
| 72 |
unreachable |
| 73 |
) |
| 74 |
(func $abort (;4;) (type 0) |
| 75 |
unreachable |
| 76 |
) |
| 77 |
) |
| 78 |
(core module $libdl.so (;2;) |
| 79 |
(@dylink.0 |
| 80 |
(mem-info (memory 408 2)) |
| 81 |
(needed "libc.so") |
| 82 |
) |
| 83 |
(type (;0;) (func (param i32) (result i32))) |
| 84 |
(type (;1;) (func (param i32 i32 i32) (result i32))) |
| 85 |
(type (;2;) (func)) |
| 86 |
(type (;3;) (func (result i32))) |
| 87 |
(type (;4;) (func (param i32 i32) (result i32))) |
| 88 |
(type (;5;) (func (param i32))) |
| 89 |
(import "env" "memory" (memory (;0;) 1)) |
| 90 |
(import "env" "__indirect_function_table" (table (;0;) 0 funcref)) |
| 91 |
(import "env" "__memory_base" (global (;0;) i32)) |
| 92 |
(import "env" "__table_base" (global (;1;) i32)) |
| 93 |
(import "env" "strlen" (func (;0;) (type 0))) |
| 94 |
(import "env" "memcmp" (func (;1;) (type 1))) |
| 95 |
(global (;2;) i32 i32.const 140) |
| 96 |
(export "_initialize" (func 4)) |
| 97 |
(export "dlclose" (func 5)) |
| 98 |
(export "dlerror" (func 7)) |
| 99 |
(export "dlopen" (func 8)) |
| 100 |
(export "dlsym" (func 9)) |
| 101 |
(export "__wasm_set_libraries" (func 10)) |
| 102 |
(export "_ZN17compiler_builtins4math9libm_math7generic4sqrt9RSQRT_TAB17hb104bb8b888712f2E" (global 2)) |
| 103 |
(start 3) |
| 104 |
(func (;2;) (type 2)) |
| 105 |
(func (;3;) (type 2) |
| 106 |
i32.const 396 |
| 107 |
global.get 0 |
| 108 |
i32.add |
| 109 |
i32.const 0 |
| 110 |
i32.const 12 |
| 111 |
memory.fill |
| 112 |
) |
| 113 |
(func (;4;) (type 2) |
| 114 |
block ;; label = @1 |
| 115 |
global.get 0 |
| 116 |
i32.const 396 |
| 117 |
i32.add |
| 118 |
i32.load |
| 119 |
i32.eqz |
| 120 |
br_if 0 (;@1;) |
| 121 |
unreachable |
| 122 |
end |
| 123 |
global.get 0 |
| 124 |
i32.const 396 |
| 125 |
i32.add |
| 126 |
i32.const 1 |
| 127 |
i32.store |
| 128 |
call 2 |
| 129 |
) |
| 130 |
(func (;5;) (type 0) (param i32) (result i32) |
| 131 |
(local i32 i32 i32) |
| 132 |
block ;; label = @1 |
| 133 |
global.get 0 |
| 134 |
i32.const 404 |
| 135 |
i32.add |
| 136 |
i32.load |
| 137 |
local.tee 1 |
| 138 |
i32.eqz |
| 139 |
br_if 0 (;@1;) |
| 140 |
local.get 1 |
| 141 |
i32.load |
| 142 |
i32.const 1 |
| 143 |
i32.add |
| 144 |
local.set 2 |
| 145 |
i32.const -16 |
| 146 |
local.set 3 |
| 147 |
block ;; label = @2 |
| 148 |
loop ;; label = @3 |
| 149 |
local.get 2 |
| 150 |
i32.const -1 |
| 151 |
i32.add |
| 152 |
local.tee 2 |
| 153 |
i32.eqz |
| 154 |
br_if 1 (;@2;) |
| 155 |
local.get 1 |
| 156 |
i32.load offset=4 |
| 157 |
local.get 3 |
| 158 |
i32.const 16 |
| 159 |
i32.add |
| 160 |
local.tee 3 |
| 161 |
i32.add |
| 162 |
local.get 0 |
| 163 |
i32.ne |
| 164 |
br_if 0 (;@3;) |
| 165 |
end |
| 166 |
i32.const 0 |
| 167 |
return |
| 168 |
end |
| 169 |
global.get 0 |
| 170 |
local.tee 2 |
| 171 |
i32.const 400 |
| 172 |
i32.add |
| 173 |
local.get 2 |
| 174 |
i32.const 0 |
| 175 |
i32.add |
| 176 |
i32.store |
| 177 |
i32.const -1 |
| 178 |
return |
| 179 |
end |
| 180 |
call 6 |
| 181 |
unreachable |
| 182 |
) |
| 183 |
(func (;6;) (type 2) |
| 184 |
unreachable |
| 185 |
) |
| 186 |
(func (;7;) (type 3) (result i32) |
| 187 |
(local i32 i32) |
| 188 |
global.get 0 |
| 189 |
i32.const 400 |
| 190 |
i32.add |
| 191 |
local.tee 0 |
| 192 |
i32.load |
| 193 |
local.set 1 |
| 194 |
local.get 0 |
| 195 |
i32.const 0 |
| 196 |
i32.store |
| 197 |
local.get 1 |
| 198 |
) |
| 199 |
(func (;8;) (type 4) (param i32 i32) (result i32) |
| 200 |
(local i32 i32 i32 i32 i32 i32 i32) |
| 201 |
block ;; label = @1 |
| 202 |
block ;; label = @2 |
| 203 |
block ;; label = @3 |
| 204 |
block ;; label = @4 |
| 205 |
global.get 0 |
| 206 |
i32.const 404 |
| 207 |
i32.add |
| 208 |
i32.load |
| 209 |
local.tee 2 |
| 210 |
i32.eqz |
| 211 |
br_if 0 (;@4;) |
| 212 |
global.get 0 |
| 213 |
local.set 3 |
| 214 |
block ;; label = @5 |
| 215 |
local.get 1 |
| 216 |
i32.const -260 |
| 217 |
i32.and |
| 218 |
i32.eqz |
| 219 |
br_if 0 (;@5;) |
| 220 |
local.get 3 |
| 221 |
i32.const 58 |
| 222 |
i32.add |
| 223 |
local.set 4 |
| 224 |
br 3 (;@2;) |
| 225 |
end |
| 226 |
local.get 0 |
| 227 |
call 0 |
| 228 |
local.set 1 |
| 229 |
local.get 2 |
| 230 |
i32.load |
| 231 |
local.set 3 |
| 232 |
global.get 0 |
| 233 |
i32.const 23 |
| 234 |
i32.add |
| 235 |
local.set 4 |
| 236 |
local.get 2 |
| 237 |
i32.load offset=4 |
| 238 |
local.set 5 |
| 239 |
i32.const 0 |
| 240 |
local.set 2 |
| 241 |
block ;; label = @5 |
| 242 |
local.get 3 |
| 243 |
br_table 3 (;@2;) 2 (;@3;) 0 (;@5;) |
| 244 |
end |
| 245 |
i32.const 0 |
| 246 |
local.set 2 |
| 247 |
loop ;; label = @5 |
| 248 |
local.get 3 |
| 249 |
i32.const 1 |
| 250 |
i32.shr_u |
| 251 |
local.tee 6 |
| 252 |
local.get 2 |
| 253 |
i32.add |
| 254 |
local.set 4 |
| 255 |
local.get 2 |
| 256 |
local.get 4 |
| 257 |
local.get 5 |
| 258 |
local.get 4 |
| 259 |
i32.const 4 |
| 260 |
i32.shl |
| 261 |
i32.add |
| 262 |
local.tee 7 |
| 263 |
i32.const 4 |
| 264 |
i32.add |
| 265 |
i32.load |
| 266 |
local.get 0 |
| 267 |
local.get 7 |
| 268 |
i32.load |
| 269 |
local.tee 7 |
| 270 |
local.get 1 |
| 271 |
local.get 7 |
| 272 |
local.get 1 |
| 273 |
i32.lt_u |
| 274 |
select |
| 275 |
call 1 |
| 276 |
local.tee 8 |
| 277 |
local.get 7 |
| 278 |
local.get 1 |
| 279 |
i32.sub |
| 280 |
local.get 8 |
| 281 |
select |
| 282 |
i32.const 0 |
| 283 |
i32.gt_s |
| 284 |
select |
| 285 |
local.set 2 |
| 286 |
local.get 3 |
| 287 |
local.get 6 |
| 288 |
i32.sub |
| 289 |
local.tee 3 |
| 290 |
i32.const 1 |
| 291 |
i32.gt_u |
| 292 |
br_if 0 (;@5;) |
| 293 |
br 2 (;@3;) |
| 294 |
end |
| 295 |
end |
| 296 |
call 6 |
| 297 |
unreachable |
| 298 |
end |
| 299 |
local.get 5 |
| 300 |
local.get 2 |
| 301 |
i32.const 4 |
| 302 |
i32.shl |
| 303 |
i32.add |
| 304 |
local.tee 3 |
| 305 |
i32.const 4 |
| 306 |
i32.add |
| 307 |
i32.load |
| 308 |
local.get 0 |
| 309 |
local.get 3 |
| 310 |
i32.load |
| 311 |
local.tee 2 |
| 312 |
local.get 1 |
| 313 |
local.get 2 |
| 314 |
local.get 1 |
| 315 |
i32.lt_u |
| 316 |
select |
| 317 |
call 1 |
| 318 |
local.set 4 |
| 319 |
global.get 0 |
| 320 |
local.set 7 |
| 321 |
local.get 4 |
| 322 |
local.get 2 |
| 323 |
local.get 1 |
| 324 |
i32.sub |
| 325 |
local.get 4 |
| 326 |
select |
| 327 |
i32.eqz |
| 328 |
br_if 1 (;@1;) |
| 329 |
local.get 7 |
| 330 |
i32.const 23 |
| 331 |
i32.add |
| 332 |
local.set 4 |
| 333 |
end |
| 334 |
global.get 0 |
| 335 |
i32.const 400 |
| 336 |
i32.add |
| 337 |
local.get 4 |
| 338 |
i32.store |
| 339 |
i32.const 0 |
| 340 |
local.set 3 |
| 341 |
end |
| 342 |
local.get 3 |
| 343 |
) |
| 344 |
(func (;9;) (type 4) (param i32 i32) (result i32) |
| 345 |
(local i32 i32 i32 i32 i32 i32 i32) |
| 346 |
block ;; label = @1 |
| 347 |
local.get 0 |
| 348 |
i32.const 1 |
| 349 |
i32.add |
| 350 |
i32.const 1 |
| 351 |
i32.gt_u |
| 352 |
br_if 0 (;@1;) |
| 353 |
global.get 0 |
| 354 |
local.tee 2 |
| 355 |
i32.const 400 |
| 356 |
i32.add |
| 357 |
local.get 2 |
| 358 |
i32.const 89 |
| 359 |
i32.add |
| 360 |
i32.store |
| 361 |
i32.const 0 |
| 362 |
return |
| 363 |
end |
| 364 |
block ;; label = @1 |
| 365 |
block ;; label = @2 |
| 366 |
global.get 0 |
| 367 |
i32.const 404 |
| 368 |
i32.add |
| 369 |
i32.load |
| 370 |
local.tee 3 |
| 371 |
i32.eqz |
| 372 |
br_if 0 (;@2;) |
| 373 |
local.get 3 |
| 374 |
i32.load |
| 375 |
i32.const 1 |
| 376 |
i32.add |
| 377 |
local.set 2 |
| 378 |
i32.const -16 |
| 379 |
local.set 4 |
| 380 |
loop ;; label = @3 |
| 381 |
local.get 2 |
| 382 |
i32.const -1 |
| 383 |
i32.add |
| 384 |
local.tee 2 |
| 385 |
i32.eqz |
| 386 |
br_if 2 (;@1;) |
| 387 |
local.get 3 |
| 388 |
i32.load offset=4 |
| 389 |
local.get 4 |
| 390 |
i32.const 16 |
| 391 |
i32.add |
| 392 |
local.tee 4 |
| 393 |
i32.add |
| 394 |
local.get 0 |
| 395 |
i32.ne |
| 396 |
br_if 0 (;@3;) |
| 397 |
end |
| 398 |
local.get 1 |
| 399 |
call 0 |
| 400 |
local.set 2 |
| 401 |
local.get 0 |
| 402 |
i32.load offset=12 |
| 403 |
local.set 5 |
| 404 |
i32.const 0 |
| 405 |
local.set 4 |
| 406 |
block ;; label = @3 |
| 407 |
block ;; label = @4 |
| 408 |
block ;; label = @5 |
| 409 |
block ;; label = @6 |
| 410 |
local.get 0 |
| 411 |
i32.load offset=8 |
| 412 |
local.tee 0 |
| 413 |
br_table 2 (;@4;) 1 (;@5;) 0 (;@6;) |
| 414 |
end |
| 415 |
i32.const 0 |
| 416 |
local.set 4 |
| 417 |
loop ;; label = @6 |
| 418 |
local.get 0 |
| 419 |
i32.const 1 |
| 420 |
i32.shr_u |
| 421 |
local.tee 6 |
| 422 |
local.get 4 |
| 423 |
i32.add |
| 424 |
local.set 3 |
| 425 |
local.get 4 |
| 426 |
local.get 3 |
| 427 |
local.get 5 |
| 428 |
local.get 3 |
| 429 |
i32.const 12 |
| 430 |
i32.mul |
| 431 |
i32.add |
| 432 |
local.tee 7 |
| 433 |
i32.const 4 |
| 434 |
i32.add |
| 435 |
i32.load |
| 436 |
local.get 1 |
| 437 |
local.get 7 |
| 438 |
i32.load |
| 439 |
local.tee 7 |
| 440 |
local.get 2 |
| 441 |
local.get 7 |
| 442 |
local.get 2 |
| 443 |
i32.lt_u |
| 444 |
select |
| 445 |
call 1 |
| 446 |
local.tee 8 |
| 447 |
local.get 7 |
| 448 |
local.get 2 |
| 449 |
i32.sub |
| 450 |
local.get 8 |
| 451 |
select |
| 452 |
i32.const 0 |
| 453 |
i32.gt_s |
| 454 |
select |
| 455 |
local.set 4 |
| 456 |
local.get 0 |
| 457 |
local.get 6 |
| 458 |
i32.sub |
| 459 |
local.tee 0 |
| 460 |
i32.const 1 |
| 461 |
i32.gt_u |
| 462 |
br_if 0 (;@6;) |
| 463 |
end |
| 464 |
end |
| 465 |
local.get 5 |
| 466 |
local.get 4 |
| 467 |
i32.const 12 |
| 468 |
i32.mul |
| 469 |
i32.add |
| 470 |
local.tee 0 |
| 471 |
i32.const 4 |
| 472 |
i32.add |
| 473 |
i32.load |
| 474 |
local.get 1 |
| 475 |
local.get 0 |
| 476 |
i32.load |
| 477 |
local.tee 4 |
| 478 |
local.get 2 |
| 479 |
local.get 4 |
| 480 |
local.get 2 |
| 481 |
i32.lt_u |
| 482 |
select |
| 483 |
call 1 |
| 484 |
local.tee 3 |
| 485 |
local.get 4 |
| 486 |
local.get 2 |
| 487 |
i32.sub |
| 488 |
local.get 3 |
| 489 |
select |
| 490 |
i32.eqz |
| 491 |
br_if 1 (;@3;) |
| 492 |
end |
| 493 |
global.get 0 |
| 494 |
local.tee 2 |
| 495 |
i32.const 400 |
| 496 |
i32.add |
| 497 |
local.get 2 |
| 498 |
i32.const 41 |
| 499 |
i32.add |
| 500 |
i32.store |
| 501 |
i32.const 0 |
| 502 |
return |
| 503 |
end |
| 504 |
local.get 0 |
| 505 |
i32.load offset=8 |
| 506 |
return |
| 507 |
end |
| 508 |
call 6 |
| 509 |
unreachable |
| 510 |
end |
| 511 |
global.get 0 |
| 512 |
local.tee 2 |
| 513 |
i32.const 400 |
| 514 |
i32.add |
| 515 |
local.get 2 |
| 516 |
i32.const 0 |
| 517 |
i32.add |
| 518 |
i32.store |
| 519 |
i32.const 0 |
| 520 |
) |
| 521 |
(func (;10;) (type 5) (param i32) |
| 522 |
global.get 0 |
| 523 |
i32.const 404 |
| 524 |
i32.add |
| 525 |
local.get 0 |
| 526 |
i32.store |
| 527 |
) |
| 528 |
(data (;0;) (global.get 0) "invalid library handle\00library not found\00symbol not found\00dlopen flags not yet supported\00dlsym RTLD_NEXT and RTLD_DEFAULT not yet supported\00Q\b4\f0\b2\96\b1D\b0\f9\ae\b6\ady\acC\ab\14\aa\eb\a8\c8\a7\aa\a6\92\a5\80\a4s\a3k\a2h\a1j\a0p\9f{\9e\8a\9d\9d\9c\b5\9b\d1\9a\f0\99\13\99:\98e\97\93\96\c4\95\f8\940\94k\93\a9\92\ea\91.\91u\90\be\8f\0a\8fY\8e\aa\8d\fe\8cT\8c\ac\8b\07\8bd\8a\c4\89%\89\89\88\ee\87V\87\c0\86+\86\99\85\08\85y\84\ec\83a\83\d8\82P\82\c9\81E\81\c2\80@\80\02\ff\0e\fd%\fbG\f9s\f7\aa\f5\ea\f34\f2\87\f0\e3\eeG\ed\b3\eb'\ea\a3\e8'\e7\b2\e5C\e4\dc\e2z\e1 \e0\cb\de}\dd4\dc\f1\da\b3\d9{\d8H\d7\1a\d6\f1\d4\cd\d3\ad\d2\92\d1{\d0i\cf[\ceQ\cdJ\ccH\cbJ\caO\c9X\c8d\c7t\c6\87\c5\9d\c4\b7\c3\d4\c2\f4\c1\16\c1<\c0e\bf\90\be\be\bd\ef\bc#\bcY\bb\91\ba\cc\b9\0a\b9J\b8\8c\b7\d0\b6\17\b6`\b5") |
| 529 |
) |
| 530 |
(core module $foo (;3;) |
| 531 |
(@dylink.0 |
| 532 |
(mem-info (memory 0 4)) |
| 533 |
) |
| 534 |
(type (;0;) (func (param i32) (result i32))) |
| 535 |
(type (;1;) (func (param i32 i32) (result i32))) |
| 536 |
(import "test:test/test" "foo" (func $import_foo (;0;) (type 0))) |
| 537 |
(import "env" "dlopen" (func $dlopen (;1;) (type 1))) |
| 538 |
(global $what (;0;) i32 i32.const 42) |
| 539 |
(global $um (;1;) i32 i32.const 0) |
| 540 |
(export "test:test/test#foo" (func $foo)) |
| 541 |
(export "bar" (func $foo)) |
| 542 |
(export "baz" (func $foo)) |
| 543 |
(export "what" (global $what)) |
| 544 |
(export "um" (global $um)) |
| 545 |
(func $foo (;2;) (type 0) (param i32) (result i32) |
| 546 |
unreachable |
| 547 |
) |
| 548 |
) |
| 549 |
(core module $__init (;4;) |
| 550 |
(type (;0;) (func)) |
| 551 |
(type (;1;) (func (param i32))) |
| 552 |
(type (;2;) (func (param i32) (result i32))) |
| 553 |
(type (;3;) (func (param i32) (result i32))) |
| 554 |
(type (;4;) (func (param i32) (result i32))) |
| 555 |
(import "env" "memory" (memory (;0;) 0)) |
| 556 |
(import "env" "__indirect_function_table" (table (;0;) 0 funcref)) |
| 557 |
(import "env" "foo:memory_base" (global (;0;) i32)) |
| 558 |
(import "foo" "um" (global (;1;) i32)) |
| 559 |
(import "foo" "what" (global (;2;) i32)) |
| 560 |
(import "libdl.so" "_initialize" (func (;0;) (type 0))) |
| 561 |
(import "libdl.so" "__wasm_set_libraries" (func (;1;) (type 1))) |
| 562 |
(import "foo" "bar" (func (;2;) (type 2))) |
| 563 |
(import "foo" "baz" (func (;3;) (type 3))) |
| 564 |
(import "foo" "test:test/test#foo" (func (;4;) (type 4))) |
| 565 |
(start 5) |
| 566 |
(elem (;0;) (i32.const 1) func 2 3 4) |
| 567 |
(elem (;1;) (i32.const 4) func) |
| 568 |
(func (;5;) (type 0) |
| 569 |
i32.const 1048660 |
| 570 |
global.get 0 |
| 571 |
global.get 1 |
| 572 |
i32.add |
| 573 |
i32.store |
| 574 |
i32.const 1048672 |
| 575 |
global.get 0 |
| 576 |
global.get 2 |
| 577 |
i32.add |
| 578 |
i32.store |
| 579 |
call 0 |
| 580 |
i32.const 1048692 |
| 581 |
call 1 |
| 582 |
) |
| 583 |
(data (;0;) (i32.const 1048576) "foo\00bar\00baz\00test:test/test#foo\00\00um\00\00what\03\00\00\00\04\00\10\00\01\00\00\00\03\00\00\00\08\00\10\00\02\00\00\00\12\00\00\00\0c\00\10\00\03\00\00\00\02\00\00\00 \00\10\00\00\00\00\00\04\00\00\00$\00\10\00\00\00\00\00\03\00\00\00\00\00\10\00\05\00\00\00(\00\10\00\01\00\00\00d\00\10\00") |
| 584 |
(@producers |
| 585 |
(processed-by "wit-component" "$CARGO_PKG_VERSION") |
| 586 |
) |
| 587 |
) |
| 588 |
(core instance $main (;0;) (instantiate $main)) |
| 589 |
(alias core export $main "memory" (core memory $memory (;0;))) |
| 590 |
(alias core export $main "__heap_base" (core global $__heap_base (;0;))) |
| 591 |
(alias core export $main "__heap_end" (core global $__heap_end (;1;))) |
| 592 |
(core instance $GOT.mem (;1;) |
| 593 |
(export "__heap_base" (global $__heap_base)) |
| 594 |
(export "__heap_end" (global $__heap_end)) |
| 595 |
) |
| 596 |
(core instance $libc.so (;2;) (instantiate $libc.so |
| 597 |
(with "GOT.mem" (instance $GOT.mem)) |
| 598 |
) |
| 599 |
) |
| 600 |
(alias core export $main "__indirect_function_table" (core table $__indirect_function_table (;0;))) |
| 601 |
(alias core export $main "libdl.so:memory_base" (core global $libdl.so:memory_base (;2;))) |
| 602 |
(alias core export $main "libdl.so:table_base" (core global $libdl.so:table_base (;3;))) |
| 603 |
(alias core export $libc.so "strlen" (core func $strlen (;0;))) |
| 604 |
(alias core export $libc.so "memcmp" (core func $memcmp (;1;))) |
| 605 |
(core instance $env (;3;) |
| 606 |
(export "memory" (memory $memory)) |
| 607 |
(export "__indirect_function_table" (table $__indirect_function_table)) |
| 608 |
(export "__memory_base" (global $libdl.so:memory_base)) |
| 609 |
(export "__table_base" (global $libdl.so:table_base)) |
| 610 |
(export "strlen" (func $strlen)) |
| 611 |
(export "memcmp" (func $memcmp)) |
| 612 |
) |
| 613 |
(core instance $libdl.so (;4;) (instantiate $libdl.so |
| 614 |
(with "env" (instance $env)) |
| 615 |
) |
| 616 |
) |
| 617 |
(alias export $test:test/test "foo" (func $foo (;0;))) |
| 618 |
(core func $foo (;2;) (canon lower (func $foo))) |
| 619 |
(core instance $test:test/test (;5;) |
| 620 |
(export "foo" (func $foo)) |
| 621 |
) |
| 622 |
(alias core export $libdl.so "dlopen" (core func $dlopen (;3;))) |
| 623 |
(core instance $"#core-instance6 env" (@name "env") (;6;) |
| 624 |
(export "dlopen" (func $dlopen)) |
| 625 |
) |
| 626 |
(core instance $foo (;7;) (instantiate $foo |
| 627 |
(with "test:test/test" (instance $test:test/test)) |
| 628 |
(with "env" (instance $"#core-instance6 env")) |
| 629 |
) |
| 630 |
) |
| 631 |
(core instance $__init (;8;) (instantiate $__init |
| 632 |
(with "env" (instance $main)) |
| 633 |
(with "foo" (instance $foo)) |
| 634 |
(with "libdl.so" (instance $libdl.so)) |
| 635 |
) |
| 636 |
) |
| 637 |
(type (;1;) (func (param "v" s32) (result s32))) |
| 638 |
(alias core export $foo "test:test/test#foo" (core func $test:test/test#foo (;4;))) |
| 639 |
(func $"#func1 foo" (@name "foo") (;1;) (type 1) (canon lift (core func $test:test/test#foo))) |
| 640 |
(component $test:test/test-shim-component (;0;) |
| 641 |
(type (;0;) (func (param "v" s32) (result s32))) |
| 642 |
(import "import-func-foo" (func (;0;) (type 0))) |
| 643 |
(type (;1;) (func (param "v" s32) (result s32))) |
| 644 |
(export (;1;) "foo" (func 0) (func (type 1))) |
| 645 |
) |
| 646 |
(instance $test:test/test-shim-instance (;1;) (instantiate $test:test/test-shim-component |
| 647 |
(with "import-func-foo" (func $"#func1 foo")) |
| 648 |
) |
| 649 |
) |
| 650 |
(export $"#instance2 test:test/test" (@name "test:test/test") (;2;) "test:test/test" (instance $test:test/test-shim-instance)) |
| 651 |
(@producers |
| 652 |
(processed-by "wit-component" "$CARGO_PKG_VERSION") |
| 653 |
) |
| 654 |
) |