| 1 |
(component |
| 2 |
(core type (;0;) |
| 3 |
(module |
| 4 |
(export "memory" (memory 1)) |
| 5 |
(export "table" (table 0 funcref)) |
| 6 |
(type (;0;) (func)) |
| 7 |
(export "func" (func (type 0))) |
| 8 |
(export "global" (global i32)) |
| 9 |
(export "global mut" (global (mut i64))) |
| 10 |
) |
| 11 |
) |
| 12 |
(import "a" (core module $libc (;0;) (type 0))) |
| 13 |
(core type (;1;) |
| 14 |
(module |
| 15 |
(import "" "memory" (memory 1)) |
| 16 |
(import "" "table" (table 0 funcref)) |
| 17 |
(type (;0;) (func)) |
| 18 |
(import "" "func" (func (type 0))) |
| 19 |
(import "" "global" (global i32)) |
| 20 |
(import "" "global mut" (global (mut i64))) |
| 21 |
) |
| 22 |
) |
| 23 |
(import "b" (core module $needs_libc (;1;) (type 1))) |
| 24 |
(core instance $libc (;0;) (instantiate $libc)) |
| 25 |
(alias core export $libc "memory" (core memory (;0;))) |
| 26 |
(alias core export $libc "table" (core table (;0;))) |
| 27 |
(alias core export $libc "func" (core func (;0;))) |
| 28 |
(alias core export $libc "global" (core global (;0;))) |
| 29 |
(alias core export $libc "global mut" (core global (;1;))) |
| 30 |
(core instance (;1;) |
| 31 |
(export "memory" (memory 0)) |
| 32 |
(export "table" (table 0)) |
| 33 |
(export "func" (func 0)) |
| 34 |
(export "global" (global 0)) |
| 35 |
(export "global mut" (global 1)) |
| 36 |
) |
| 37 |
(core instance (;2;) (instantiate $needs_libc |
| 38 |
(with "" (instance 1)) |
| 39 |
) |
| 40 |
) |
| 41 |
) |