| 1 |
(component |
| 2 |
(type (;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 (;0;) (type 0))) |
| 9 |
(core module (;0;) |
| 10 |
(table (;0;) 4 funcref) |
| 11 |
(memory (;0;) 17) |
| 12 |
(global (;0;) (mut i32) i32.const 1048576) |
| 13 |
(global (;1;) i32 i32.const 1048688) |
| 14 |
(global (;2;) i32 i32.const 4) |
| 15 |
(global (;3;) i32 i32.const 1048688) |
| 16 |
(global (;4;) i32 i32.const 4) |
| 17 |
(global (;5;) i32 i32.const 1048688) |
| 18 |
(global (;6;) i32 i32.const 4) |
| 19 |
(global (;7;) i32 i32.const 1048840) |
| 20 |
(global (;8;) i32 i32.const 4) |
| 21 |
(global (;9;) (mut i32) i32.const 1048848) |
| 22 |
(global (;10;) (mut i32) i32.const 1114112) |
| 23 |
(export "__stack_pointer" (global 0)) |
| 24 |
(export "foo:memory_base" (global 1)) |
| 25 |
(export "foo:table_base" (global 2)) |
| 26 |
(export "libc.so:memory_base" (global 3)) |
| 27 |
(export "libc.so:table_base" (global 4)) |
| 28 |
(export "libdl.so:memory_base" (global 5)) |
| 29 |
(export "libdl.so:table_base" (global 6)) |
| 30 |
(export "wit-component:stubs:memory_base" (global 7)) |
| 31 |
(export "wit-component:stubs: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 (;1;) |
| 41 |
(@dylink.0 |
| 42 |
(mem-info (memory 0 4)) |
| 43 |
) |
| 44 |
(type (;0;) (func)) |
| 45 |
(type (;1;) (func (param i32) (result i32))) |
| 46 |
(import "GOT.mem" "__heap_base" (global $__heap_base (;0;) (mut i32))) |
| 47 |
(import "GOT.mem" "__heap_end" (global $__heap_end (;1;) (mut i32))) |
| 48 |
(global $errno (;2;) i32 i32.const 0) |
| 49 |
(global $heap (;3;) (mut i32) i32.const 0) |
| 50 |
(export "malloc" (func $malloc)) |
| 51 |
(export "abort" (func $abort)) |
| 52 |
(export "errno" (global $errno)) |
| 53 |
(start $start) |
| 54 |
(func $start (;0;) (type 0) |
| 55 |
global.get $__heap_base |
| 56 |
global.set $heap |
| 57 |
) |
| 58 |
(func $malloc (;1;) (type 1) (param i32) (result i32) |
| 59 |
global.get $heap |
| 60 |
global.get $heap |
| 61 |
local.get 0 |
| 62 |
i32.add |
| 63 |
global.set $heap |
| 64 |
) |
| 65 |
(func $abort (;2;) (type 0) |
| 66 |
unreachable |
| 67 |
) |
| 68 |
) |
| 69 |
(core module (;2;) |
| 70 |
(type (;0;) (func (param i32 i32 i32) (result i32))) |
| 71 |
(type (;1;) (func (param i32) (result i32))) |
| 72 |
(export "memcmp" (func 0)) |
| 73 |
(export "strlen" (func 1)) |
| 74 |
(func (;0;) (type 0) (param i32 i32 i32) (result i32) |
| 75 |
unreachable |
| 76 |
) |
| 77 |
(func (;1;) (type 1) (param i32) (result i32) |
| 78 |
unreachable |
| 79 |
) |
| 80 |
(@producers |
| 81 |
(processed-by "wit-component" "$CARGO_PKG_VERSION") |
| 82 |
) |
| 83 |
) |
| 84 |
(core module (;3;) |
| 85 |
(@dylink.0 |
| 86 |
(mem-info (memory 152 2)) |
| 87 |
(needed "libc.so") |
| 88 |
) |
| 89 |
(type (;0;) (func (param i32) (result i32))) |
| 90 |
(type (;1;) (func (param i32 i32 i32) (result i32))) |
| 91 |
(type (;2;) (func)) |
| 92 |
(type (;3;) (func (result i32))) |
| 93 |
(type (;4;) (func (param i32 i32) (result i32))) |
| 94 |
(type (;5;) (func (param i32))) |
| 95 |
(import "env" "memory" (memory (;0;) 1)) |
| 96 |
(import "env" "__indirect_function_table" (table (;0;) 0 funcref)) |
| 97 |
(import "env" "__memory_base" (global (;0;) i32)) |
| 98 |
(import "env" "__table_base" (global (;1;) i32)) |
| 99 |
(import "env" "strlen" (func (;0;) (type 0))) |
| 100 |
(import "env" "memcmp" (func (;1;) (type 1))) |
| 101 |
(export "__wasm_apply_data_relocs" (func 3)) |
| 102 |
(export "_initialize" (func 4)) |
| 103 |
(export "dlclose" (func 5)) |
| 104 |
(export "dlerror" (func 7)) |
| 105 |
(export "dlopen" (func 8)) |
| 106 |
(export "dlsym" (func 9)) |
| 107 |
(export "__wasm_set_libraries" (func 10)) |
| 108 |
(func (;2;) (type 2)) |
| 109 |
(func (;3;) (type 2)) |
| 110 |
(func (;4;) (type 2) |
| 111 |
block ;; label = @1 |
| 112 |
global.get 0 |
| 113 |
i32.const 140 |
| 114 |
i32.add |
| 115 |
i32.load |
| 116 |
i32.eqz |
| 117 |
br_if 0 (;@1;) |
| 118 |
unreachable |
| 119 |
unreachable |
| 120 |
end |
| 121 |
global.get 0 |
| 122 |
i32.const 140 |
| 123 |
i32.add |
| 124 |
i32.const 1 |
| 125 |
i32.store |
| 126 |
call 2 |
| 127 |
) |
| 128 |
(func (;5;) (type 0) (param i32) (result i32) |
| 129 |
(local i32 i32 i32) |
| 130 |
block ;; label = @1 |
| 131 |
global.get 0 |
| 132 |
i32.const 148 |
| 133 |
i32.add |
| 134 |
i32.load |
| 135 |
local.tee 1 |
| 136 |
i32.eqz |
| 137 |
br_if 0 (;@1;) |
| 138 |
local.get 1 |
| 139 |
i32.load |
| 140 |
i32.const 1 |
| 141 |
i32.add |
| 142 |
local.set 2 |
| 143 |
i32.const -16 |
| 144 |
local.set 3 |
| 145 |
block ;; label = @2 |
| 146 |
loop ;; label = @3 |
| 147 |
local.get 2 |
| 148 |
i32.const -1 |
| 149 |
i32.add |
| 150 |
local.tee 2 |
| 151 |
i32.eqz |
| 152 |
br_if 1 (;@2;) |
| 153 |
local.get 1 |
| 154 |
i32.load offset=4 |
| 155 |
local.get 3 |
| 156 |
i32.const 16 |
| 157 |
i32.add |
| 158 |
local.tee 3 |
| 159 |
i32.add |
| 160 |
local.get 0 |
| 161 |
i32.ne |
| 162 |
br_if 0 (;@3;) |
| 163 |
end |
| 164 |
i32.const 0 |
| 165 |
return |
| 166 |
end |
| 167 |
global.get 0 |
| 168 |
local.tee 2 |
| 169 |
i32.const 144 |
| 170 |
i32.add |
| 171 |
local.get 2 |
| 172 |
i32.const 0 |
| 173 |
i32.add |
| 174 |
i32.store |
| 175 |
i32.const -1 |
| 176 |
return |
| 177 |
end |
| 178 |
call 6 |
| 179 |
unreachable |
| 180 |
) |
| 181 |
(func (;6;) (type 2) |
| 182 |
unreachable |
| 183 |
unreachable |
| 184 |
) |
| 185 |
(func (;7;) (type 3) (result i32) |
| 186 |
(local i32 i32) |
| 187 |
global.get 0 |
| 188 |
i32.const 144 |
| 189 |
i32.add |
| 190 |
local.tee 0 |
| 191 |
i32.load |
| 192 |
local.set 1 |
| 193 |
local.get 0 |
| 194 |
i32.const 0 |
| 195 |
i32.store |
| 196 |
local.get 1 |
| 197 |
) |
| 198 |
(func (;8;) (type 4) (param i32 i32) (result i32) |
| 199 |
(local i32 i32 i32 i32 i32 i32 i32) |
| 200 |
block ;; label = @1 |
| 201 |
global.get 0 |
| 202 |
i32.const 148 |
| 203 |
i32.add |
| 204 |
i32.load |
| 205 |
local.tee 2 |
| 206 |
i32.eqz |
| 207 |
br_if 0 (;@1;) |
| 208 |
global.get 0 |
| 209 |
local.set 3 |
| 210 |
block ;; label = @2 |
| 211 |
block ;; label = @3 |
| 212 |
block ;; label = @4 |
| 213 |
local.get 1 |
| 214 |
i32.const -260 |
| 215 |
i32.and |
| 216 |
i32.eqz |
| 217 |
br_if 0 (;@4;) |
| 218 |
local.get 3 |
| 219 |
i32.const 41 |
| 220 |
i32.add |
| 221 |
local.set 1 |
| 222 |
br 1 (;@3;) |
| 223 |
end |
| 224 |
global.get 0 |
| 225 |
local.set 1 |
| 226 |
local.get 0 |
| 227 |
call 0 |
| 228 |
local.set 3 |
| 229 |
block ;; label = @4 |
| 230 |
local.get 2 |
| 231 |
i32.load |
| 232 |
local.tee 4 |
| 233 |
br_if 0 (;@4;) |
| 234 |
local.get 1 |
| 235 |
i32.const 23 |
| 236 |
i32.add |
| 237 |
local.set 1 |
| 238 |
br 1 (;@3;) |
| 239 |
end |
| 240 |
local.get 2 |
| 241 |
i32.load offset=4 |
| 242 |
local.set 5 |
| 243 |
i32.const 0 |
| 244 |
local.set 1 |
| 245 |
local.get 4 |
| 246 |
local.set 2 |
| 247 |
loop ;; label = @4 |
| 248 |
local.get 5 |
| 249 |
local.get 4 |
| 250 |
i32.const 1 |
| 251 |
i32.shr_u |
| 252 |
local.get 1 |
| 253 |
i32.add |
| 254 |
local.tee 6 |
| 255 |
i32.const 4 |
| 256 |
i32.shl |
| 257 |
i32.add |
| 258 |
local.tee 7 |
| 259 |
i32.const 4 |
| 260 |
i32.add |
| 261 |
i32.load |
| 262 |
local.get 0 |
| 263 |
local.get 7 |
| 264 |
i32.load |
| 265 |
local.tee 4 |
| 266 |
local.get 3 |
| 267 |
local.get 4 |
| 268 |
local.get 3 |
| 269 |
i32.lt_u |
| 270 |
select |
| 271 |
call 1 |
| 272 |
local.tee 8 |
| 273 |
local.get 4 |
| 274 |
local.get 3 |
| 275 |
i32.sub |
| 276 |
local.get 8 |
| 277 |
select |
| 278 |
local.tee 4 |
| 279 |
i32.eqz |
| 280 |
br_if 2 (;@2;) |
| 281 |
local.get 6 |
| 282 |
local.get 2 |
| 283 |
local.get 4 |
| 284 |
i32.const 0 |
| 285 |
i32.gt_s |
| 286 |
select |
| 287 |
local.tee 2 |
| 288 |
local.get 6 |
| 289 |
i32.const 1 |
| 290 |
i32.add |
| 291 |
local.get 1 |
| 292 |
local.get 4 |
| 293 |
i32.const 0 |
| 294 |
i32.lt_s |
| 295 |
select |
| 296 |
local.tee 1 |
| 297 |
i32.sub |
| 298 |
local.set 4 |
| 299 |
global.get 0 |
| 300 |
local.set 6 |
| 301 |
local.get 2 |
| 302 |
local.get 1 |
| 303 |
i32.gt_u |
| 304 |
br_if 0 (;@4;) |
| 305 |
end |
| 306 |
local.get 6 |
| 307 |
i32.const 23 |
| 308 |
i32.add |
| 309 |
local.set 1 |
| 310 |
end |
| 311 |
global.get 0 |
| 312 |
i32.const 144 |
| 313 |
i32.add |
| 314 |
local.get 1 |
| 315 |
i32.store |
| 316 |
i32.const 0 |
| 317 |
local.set 7 |
| 318 |
end |
| 319 |
local.get 7 |
| 320 |
return |
| 321 |
end |
| 322 |
call 6 |
| 323 |
unreachable |
| 324 |
) |
| 325 |
(func (;9;) (type 4) (param i32 i32) (result i32) |
| 326 |
(local i32 i32 i32 i32 i32 i32) |
| 327 |
block ;; label = @1 |
| 328 |
local.get 0 |
| 329 |
i32.const 1 |
| 330 |
i32.add |
| 331 |
i32.const 1 |
| 332 |
i32.gt_u |
| 333 |
br_if 0 (;@1;) |
| 334 |
global.get 0 |
| 335 |
local.tee 2 |
| 336 |
i32.const 144 |
| 337 |
i32.add |
| 338 |
local.get 2 |
| 339 |
i32.const 89 |
| 340 |
i32.add |
| 341 |
i32.store |
| 342 |
i32.const 0 |
| 343 |
return |
| 344 |
end |
| 345 |
block ;; label = @1 |
| 346 |
block ;; label = @2 |
| 347 |
global.get 0 |
| 348 |
i32.const 148 |
| 349 |
i32.add |
| 350 |
i32.load |
| 351 |
local.tee 3 |
| 352 |
i32.eqz |
| 353 |
br_if 0 (;@2;) |
| 354 |
local.get 3 |
| 355 |
i32.load |
| 356 |
i32.const 1 |
| 357 |
i32.add |
| 358 |
local.set 2 |
| 359 |
i32.const -16 |
| 360 |
local.set 4 |
| 361 |
loop ;; label = @3 |
| 362 |
local.get 2 |
| 363 |
i32.const -1 |
| 364 |
i32.add |
| 365 |
local.tee 2 |
| 366 |
i32.eqz |
| 367 |
br_if 2 (;@1;) |
| 368 |
local.get 3 |
| 369 |
i32.load offset=4 |
| 370 |
local.get 4 |
| 371 |
i32.const 16 |
| 372 |
i32.add |
| 373 |
local.tee 4 |
| 374 |
i32.add |
| 375 |
local.get 0 |
| 376 |
i32.ne |
| 377 |
br_if 0 (;@3;) |
| 378 |
end |
| 379 |
local.get 1 |
| 380 |
call 0 |
| 381 |
local.set 4 |
| 382 |
block ;; label = @3 |
| 383 |
block ;; label = @4 |
| 384 |
local.get 0 |
| 385 |
i32.load offset=8 |
| 386 |
local.tee 3 |
| 387 |
i32.eqz |
| 388 |
br_if 0 (;@4;) |
| 389 |
local.get 0 |
| 390 |
i32.load offset=12 |
| 391 |
local.set 5 |
| 392 |
i32.const 0 |
| 393 |
local.set 2 |
| 394 |
local.get 3 |
| 395 |
local.set 6 |
| 396 |
loop ;; label = @5 |
| 397 |
local.get 5 |
| 398 |
local.get 3 |
| 399 |
i32.const 1 |
| 400 |
i32.shr_u |
| 401 |
local.get 2 |
| 402 |
i32.add |
| 403 |
local.tee 3 |
| 404 |
i32.const 12 |
| 405 |
i32.mul |
| 406 |
i32.add |
| 407 |
local.tee 0 |
| 408 |
i32.const 4 |
| 409 |
i32.add |
| 410 |
i32.load |
| 411 |
local.get 1 |
| 412 |
local.get 0 |
| 413 |
i32.load |
| 414 |
local.tee 0 |
| 415 |
local.get 4 |
| 416 |
local.get 0 |
| 417 |
local.get 4 |
| 418 |
i32.lt_u |
| 419 |
select |
| 420 |
call 1 |
| 421 |
local.tee 7 |
| 422 |
local.get 0 |
| 423 |
local.get 4 |
| 424 |
i32.sub |
| 425 |
local.get 7 |
| 426 |
select |
| 427 |
local.tee 0 |
| 428 |
i32.eqz |
| 429 |
br_if 2 (;@3;) |
| 430 |
local.get 3 |
| 431 |
local.get 6 |
| 432 |
local.get 0 |
| 433 |
i32.const 0 |
| 434 |
i32.gt_s |
| 435 |
select |
| 436 |
local.tee 6 |
| 437 |
local.get 3 |
| 438 |
i32.const 1 |
| 439 |
i32.add |
| 440 |
local.get 2 |
| 441 |
local.get 0 |
| 442 |
i32.const 0 |
| 443 |
i32.lt_s |
| 444 |
select |
| 445 |
local.tee 2 |
| 446 |
i32.sub |
| 447 |
local.set 3 |
| 448 |
local.get 6 |
| 449 |
local.get 2 |
| 450 |
i32.gt_u |
| 451 |
br_if 0 (;@5;) |
| 452 |
end |
| 453 |
end |
| 454 |
global.get 0 |
| 455 |
local.tee 2 |
| 456 |
i32.const 144 |
| 457 |
i32.add |
| 458 |
local.get 2 |
| 459 |
i32.const 72 |
| 460 |
i32.add |
| 461 |
i32.store |
| 462 |
i32.const 0 |
| 463 |
return |
| 464 |
end |
| 465 |
local.get 5 |
| 466 |
local.get 3 |
| 467 |
i32.const 12 |
| 468 |
i32.mul |
| 469 |
i32.add |
| 470 |
i32.load offset=8 |
| 471 |
return |
| 472 |
end |
| 473 |
call 6 |
| 474 |
unreachable |
| 475 |
end |
| 476 |
global.get 0 |
| 477 |
local.tee 2 |
| 478 |
i32.const 144 |
| 479 |
i32.add |
| 480 |
local.get 2 |
| 481 |
i32.const 0 |
| 482 |
i32.add |
| 483 |
i32.store |
| 484 |
i32.const 0 |
| 485 |
) |
| 486 |
(func (;10;) (type 5) (param i32) |
| 487 |
global.get 0 |
| 488 |
i32.const 148 |
| 489 |
i32.add |
| 490 |
local.get 0 |
| 491 |
i32.store |
| 492 |
) |
| 493 |
(data (;0;) (global.get 0) "invalid library handle\00library not found\00dlopen flags not yet supported\00symbol not found\00dlsym RTLD_NEXT and RTLD_DEFAULT not yet supported\00\00\00\00\00\00\00\00\00\00\00\00\00") |
| 494 |
) |
| 495 |
(core module (;4;) |
| 496 |
(@dylink.0 |
| 497 |
(mem-info (memory 0 4)) |
| 498 |
) |
| 499 |
(type (;0;) (func (param i32) (result i32))) |
| 500 |
(type (;1;) (func (param i32 i32) (result i32))) |
| 501 |
(import "test:test/test" "foo" (func $import_foo (;0;) (type 0))) |
| 502 |
(import "env" "dlopen" (func $dlopen (;1;) (type 1))) |
| 503 |
(global $what (;0;) i32 i32.const 42) |
| 504 |
(export "test:test/test#foo" (func $foo)) |
| 505 |
(export "bar" (func $foo)) |
| 506 |
(export "baz" (func $foo)) |
| 507 |
(export "what" (global $what)) |
| 508 |
(func $foo (;2;) (type 0) (param i32) (result i32) |
| 509 |
unreachable |
| 510 |
) |
| 511 |
) |
| 512 |
(core module (;5;) |
| 513 |
(type (;0;) (func)) |
| 514 |
(type (;1;) (func (param i32))) |
| 515 |
(type (;2;) (func (param i32) (result i32))) |
| 516 |
(type (;3;) (func (param i32) (result i32))) |
| 517 |
(type (;4;) (func (param i32) (result i32))) |
| 518 |
(import "env" "memory" (memory (;0;) 0)) |
| 519 |
(import "env" "__indirect_function_table" (table (;0;) 0 funcref)) |
| 520 |
(import "env" "foo:memory_base" (global (;0;) i32)) |
| 521 |
(import "foo" "what" (global (;1;) i32)) |
| 522 |
(import "libdl.so" "__wasm_apply_data_relocs" (func (;0;) (type 0))) |
| 523 |
(import "libdl.so" "_initialize" (func (;1;) (type 0))) |
| 524 |
(import "libdl.so" "__wasm_set_libraries" (func (;2;) (type 1))) |
| 525 |
(import "foo" "bar" (func (;3;) (type 2))) |
| 526 |
(import "foo" "baz" (func (;4;) (type 3))) |
| 527 |
(import "foo" "test:test/test#foo" (func (;5;) (type 4))) |
| 528 |
(start 6) |
| 529 |
(elem (;0;) (i32.const 1) func 3 4 5) |
| 530 |
(elem (;1;) (i32.const 4) func) |
| 531 |
(func (;6;) (type 0) |
| 532 |
i32.const 1048656 |
| 533 |
global.get 0 |
| 534 |
global.get 1 |
| 535 |
i32.add |
| 536 |
i32.store |
| 537 |
call 0 |
| 538 |
call 1 |
| 539 |
i32.const 1048676 |
| 540 |
call 2 |
| 541 |
) |
| 542 |
(data (;0;) (i32.const 1048576) "foo\00bar\00baz\00test:test/test#foo\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\04\00\00\00 \00\10\00\00\00\00\00\03\00\00\00\00\00\10\00\04\00\00\00$\00\10\00\01\00\00\00T\00\10\00") |
| 543 |
(@producers |
| 544 |
(processed-by "wit-component" "$CARGO_PKG_VERSION") |
| 545 |
) |
| 546 |
) |
| 547 |
(core instance (;0;) (instantiate 0)) |
| 548 |
(alias core export 0 "memory" (core memory (;0;))) |
| 549 |
(alias core export 0 "__heap_base" (core global (;0;))) |
| 550 |
(alias core export 0 "__heap_end" (core global (;1;))) |
| 551 |
(core instance (;1;) |
| 552 |
(export "__heap_base" (global 0)) |
| 553 |
(export "__heap_end" (global 1)) |
| 554 |
) |
| 555 |
(core instance (;2;) (instantiate 1 |
| 556 |
(with "GOT.mem" (instance 1)) |
| 557 |
) |
| 558 |
) |
| 559 |
(core instance (;3;) (instantiate 2)) |
| 560 |
(alias core export 0 "__indirect_function_table" (core table (;0;))) |
| 561 |
(alias core export 0 "libdl.so:memory_base" (core global (;2;))) |
| 562 |
(alias core export 0 "libdl.so:table_base" (core global (;3;))) |
| 563 |
(alias core export 3 "strlen" (core func (;0;))) |
| 564 |
(alias core export 3 "memcmp" (core func (;1;))) |
| 565 |
(core instance (;4;) |
| 566 |
(export "memory" (memory 0)) |
| 567 |
(export "__indirect_function_table" (table 0)) |
| 568 |
(export "__memory_base" (global 2)) |
| 569 |
(export "__table_base" (global 3)) |
| 570 |
(export "strlen" (func 0)) |
| 571 |
(export "memcmp" (func 1)) |
| 572 |
) |
| 573 |
(core instance (;5;) (instantiate 3 |
| 574 |
(with "env" (instance 4)) |
| 575 |
) |
| 576 |
) |
| 577 |
(alias export 0 "foo" (func (;0;))) |
| 578 |
(core func (;2;) (canon lower (func 0))) |
| 579 |
(core instance (;6;) |
| 580 |
(export "foo" (func 2)) |
| 581 |
) |
| 582 |
(alias core export 5 "dlopen" (core func (;3;))) |
| 583 |
(core instance (;7;) |
| 584 |
(export "dlopen" (func 3)) |
| 585 |
) |
| 586 |
(core instance (;8;) (instantiate 4 |
| 587 |
(with "test:test/test" (instance 6)) |
| 588 |
(with "env" (instance 7)) |
| 589 |
) |
| 590 |
) |
| 591 |
(core instance (;9;) (instantiate 5 |
| 592 |
(with "env" (instance 0)) |
| 593 |
(with "foo" (instance 8)) |
| 594 |
(with "libdl.so" (instance 5)) |
| 595 |
) |
| 596 |
) |
| 597 |
(type (;1;) (func (param "v" s32) (result s32))) |
| 598 |
(alias core export 8 "test:test/test#foo" (core func (;4;))) |
| 599 |
(func (;1;) (type 1) (canon lift (core func 4))) |
| 600 |
(component (;0;) |
| 601 |
(type (;0;) (func (param "v" s32) (result s32))) |
| 602 |
(import "import-func-foo" (func (;0;) (type 0))) |
| 603 |
(type (;1;) (func (param "v" s32) (result s32))) |
| 604 |
(export (;1;) "foo" (func 0) (func (type 1))) |
| 605 |
) |
| 606 |
(instance (;1;) (instantiate 0 |
| 607 |
(with "import-func-foo" (func 1)) |
| 608 |
) |
| 609 |
) |
| 610 |
(export (;2;) "test:test/test" (instance 1)) |
| 611 |
(@producers |
| 612 |
(processed-by "wit-component" "$CARGO_PKG_VERSION") |
| 613 |
) |
| 614 |
) |