| 1 |
(component |
| 2 |
(import "name" (value $name (;0;) string)) |
| 3 |
(core type (;0;) |
| 4 |
(module |
| 5 |
(export "memory" (memory 1)) |
| 6 |
(type (;0;) (func (param i32 i32 i32 i32) (result i32))) |
| 7 |
(export "realloc" (func (type 0))) |
| 8 |
(type (;1;) (func (param i32 i32 i32))) |
| 9 |
(export "free" (func (type 1))) |
| 10 |
(type (;2;) (func (param i32 i32 i32 i32) (result i32))) |
| 11 |
(export "canonical_abi_realloc" (func (type 2))) |
| 12 |
) |
| 13 |
) |
| 14 |
(import "libc" (core module $Libc (;0;) (type 0))) |
| 15 |
(core instance $libc (;0;) (instantiate $Libc)) |
| 16 |
(core module $Main (;1;) |
| 17 |
(type (;0;) (func (param i32 i32) (result i32))) |
| 18 |
(type (;1;) (func (param i32))) |
| 19 |
(import "libc" "memory" (memory (;0;) 1)) |
| 20 |
(export "start" (func 0)) |
| 21 |
(export "start-post-return" (func 1)) |
| 22 |
(func (;0;) (type 0) (param i32 i32) (result i32) |
| 23 |
unreachable |
| 24 |
) |
| 25 |
(func (;1;) (type 1) (param i32)) |
| 26 |
) |
| 27 |
(core instance $main (;1;) (instantiate $Main |
| 28 |
(with "libc" (instance $libc)) |
| 29 |
) |
| 30 |
) |
| 31 |
(alias core export $main "start" (core func $main_func (;0;))) |
| 32 |
(type (;0;) (func (param "p1" string) (result string))) |
| 33 |
(alias core export $libc "memory" (core memory (;0;))) |
| 34 |
(alias core export $libc "canonical_abi_realloc" (core func (;1;))) |
| 35 |
(alias core export $main "start-post-return" (core func (;2;))) |
| 36 |
(func $start (;0;) (type 0) (canon lift (core func $main_func) (memory 0) (realloc 1) (post-return 2))) |
| 37 |
(start $start (value $name) (result (value (;1;)))) |
| 38 |
(export (;2;) "greeting" (value 1)) |
| 39 |
) |