| 1 |
(component |
| 2 |
(core module (;0;) |
| 3 |
(type (;0;) (func (result i32))) |
| 4 |
(type (;1;) (func)) |
| 5 |
(import "old" "nargs" (func (;0;) (type 0))) |
| 6 |
(export "the_entrypoint" (func 1)) |
| 7 |
(func (;1;) (type 1)) |
| 8 |
(@producers |
| 9 |
(processed-by "wit-component" "$CARGO_PKG_VERSION") |
| 10 |
(processed-by "my-fake-bindgen" "123.45") |
| 11 |
) |
| 12 |
) |
| 13 |
(core module (;1;) |
| 14 |
(type (;0;) (func)) |
| 15 |
(type (;1;) (func (param i32))) |
| 16 |
(type (;2;) (func (result i32))) |
| 17 |
(import "__main_module__" "the_entrypoint" (func $entry (;0;) (type 0))) |
| 18 |
(global $nargs (;0;) (mut i32) i32.const 0) |
| 19 |
(export "entrypoint" (func 1)) |
| 20 |
(export "nargs" (func 2)) |
| 21 |
(func (;1;) (type 1) (param i32) |
| 22 |
local.get 0 |
| 23 |
global.set $nargs |
| 24 |
call $entry |
| 25 |
) |
| 26 |
(func (;2;) (type 2) (result i32) |
| 27 |
global.get $nargs |
| 28 |
) |
| 29 |
) |
| 30 |
(core module (;2;) |
| 31 |
(type (;0;) (func (result i32))) |
| 32 |
(table (;0;) 1 1 funcref) |
| 33 |
(export "0" (func $adapt-old-nargs)) |
| 34 |
(export "$imports" (table 0)) |
| 35 |
(func $adapt-old-nargs (;0;) (type 0) (result i32) |
| 36 |
i32.const 0 |
| 37 |
call_indirect (type 0) |
| 38 |
) |
| 39 |
(@producers |
| 40 |
(processed-by "wit-component" "$CARGO_PKG_VERSION") |
| 41 |
) |
| 42 |
) |
| 43 |
(core module (;3;) |
| 44 |
(type (;0;) (func (result i32))) |
| 45 |
(import "" "0" (func (;0;) (type 0))) |
| 46 |
(import "" "$imports" (table (;0;) 1 1 funcref)) |
| 47 |
(elem (;0;) (i32.const 0) func 0) |
| 48 |
(@producers |
| 49 |
(processed-by "wit-component" "$CARGO_PKG_VERSION") |
| 50 |
) |
| 51 |
) |
| 52 |
(core instance (;0;) (instantiate 2)) |
| 53 |
(alias core export 0 "0" (core func (;0;))) |
| 54 |
(core instance (;1;) |
| 55 |
(export "nargs" (func 0)) |
| 56 |
) |
| 57 |
(core instance (;2;) (instantiate 0 |
| 58 |
(with "old" (instance 1)) |
| 59 |
) |
| 60 |
) |
| 61 |
(alias core export 2 "the_entrypoint" (core func (;1;))) |
| 62 |
(core instance (;3;) |
| 63 |
(export "the_entrypoint" (func 1)) |
| 64 |
) |
| 65 |
(core instance (;4;) (instantiate 1 |
| 66 |
(with "__main_module__" (instance 3)) |
| 67 |
) |
| 68 |
) |
| 69 |
(alias core export 0 "$imports" (core table (;0;))) |
| 70 |
(alias core export 4 "nargs" (core func (;2;))) |
| 71 |
(core instance (;5;) |
| 72 |
(export "$imports" (table 0)) |
| 73 |
(export "0" (func 2)) |
| 74 |
) |
| 75 |
(core instance (;6;) (instantiate 3 |
| 76 |
(with "" (instance 5)) |
| 77 |
) |
| 78 |
) |
| 79 |
(type (;0;) (func (param "nargs" u32))) |
| 80 |
(alias core export 4 "entrypoint" (core func (;3;))) |
| 81 |
(func (;0;) (type 0) (canon lift (core func 3))) |
| 82 |
(export (;1;) "entrypoint" (func 0)) |
| 83 |
(@producers |
| 84 |
(processed-by "wit-component" "$CARGO_PKG_VERSION") |
| 85 |
) |
| 86 |
) |