| 1 |
(component |
| 2 |
(type (;0;) |
| 3 |
(instance |
| 4 |
(type (;0;) (record (field "a" u8))) |
| 5 |
(export (;1;) "x" (type (eq 0))) |
| 6 |
(type (;2;) (func (param "x" string))) |
| 7 |
(export (;0;) "bar1" (func (type 2))) |
| 8 |
(type (;3;) (func (param "x" 1))) |
| 9 |
(export (;1;) "bar2" (func (type 3))) |
| 10 |
) |
| 11 |
) |
| 12 |
(import "bar" (instance (;0;) (type 0))) |
| 13 |
(type (;1;) |
| 14 |
(instance |
| 15 |
(type (;0;) s8) |
| 16 |
(export (;1;) "x" (type (eq 0))) |
| 17 |
(type (;2;) (list string)) |
| 18 |
(type (;3;) (func (param "x" 2))) |
| 19 |
(export (;0;) "baz1" (func (type 3))) |
| 20 |
(type (;4;) (func)) |
| 21 |
(export (;1;) "baz2" (func (type 4))) |
| 22 |
(type (;5;) (func (param "x" 1))) |
| 23 |
(export (;2;) "baz3" (func (type 5))) |
| 24 |
) |
| 25 |
) |
| 26 |
(import "baz" (instance (;1;) (type 1))) |
| 27 |
(type (;2;) |
| 28 |
(instance |
| 29 |
(type (;0;) (func)) |
| 30 |
(export (;0;) "foo1" (func (type 0))) |
| 31 |
(type (;1;) (func (param "x" u8))) |
| 32 |
(export (;1;) "foo2" (func (type 1))) |
| 33 |
(type (;2;) (func (param "x" f32))) |
| 34 |
(export (;2;) "foo3" (func (type 2))) |
| 35 |
) |
| 36 |
) |
| 37 |
(import "foo" (instance (;2;) (type 2))) |
| 38 |
(core module (;0;) |
| 39 |
(type (;0;) (func)) |
| 40 |
(type (;1;) (func (param i32))) |
| 41 |
(type (;2;) (func (param f32))) |
| 42 |
(type (;3;) (func (param i32 i32))) |
| 43 |
(type (;4;) (func (param i32 i32 i32 i32) (result i32))) |
| 44 |
(import "foo" "foo1" (func (;0;) (type 0))) |
| 45 |
(import "foo" "foo2" (func (;1;) (type 1))) |
| 46 |
(import "foo" "foo3" (func (;2;) (type 2))) |
| 47 |
(import "bar" "bar1" (func (;3;) (type 3))) |
| 48 |
(import "bar" "bar2" (func (;4;) (type 1))) |
| 49 |
(import "baz" "baz1" (func (;5;) (type 3))) |
| 50 |
(import "baz" "baz2" (func (;6;) (type 0))) |
| 51 |
(import "baz" "baz3" (func (;7;) (type 1))) |
| 52 |
(memory (;0;) 1) |
| 53 |
(export "memory" (memory 0)) |
| 54 |
(export "cabi_realloc" (func 8)) |
| 55 |
(func (;8;) (type 4) (param i32 i32 i32 i32) (result i32) |
| 56 |
unreachable |
| 57 |
) |
| 58 |
(@producers |
| 59 |
(processed-by "wit-component" "$CARGO_PKG_VERSION") |
| 60 |
(processed-by "my-fake-bindgen" "123.45") |
| 61 |
) |
| 62 |
) |
| 63 |
(core module (;1;) |
| 64 |
(type (;0;) (func (param i32 i32))) |
| 65 |
(table (;0;) 2 2 funcref) |
| 66 |
(export "0" (func $indirect-bar-bar1)) |
| 67 |
(export "1" (func $indirect-baz-baz1)) |
| 68 |
(export "$imports" (table 0)) |
| 69 |
(func $indirect-bar-bar1 (;0;) (type 0) (param i32 i32) |
| 70 |
local.get 0 |
| 71 |
local.get 1 |
| 72 |
i32.const 0 |
| 73 |
call_indirect (type 0) |
| 74 |
) |
| 75 |
(func $indirect-baz-baz1 (;1;) (type 0) (param i32 i32) |
| 76 |
local.get 0 |
| 77 |
local.get 1 |
| 78 |
i32.const 1 |
| 79 |
call_indirect (type 0) |
| 80 |
) |
| 81 |
(@producers |
| 82 |
(processed-by "wit-component" "$CARGO_PKG_VERSION") |
| 83 |
) |
| 84 |
) |
| 85 |
(core module (;2;) |
| 86 |
(type (;0;) (func (param i32 i32))) |
| 87 |
(import "" "0" (func (;0;) (type 0))) |
| 88 |
(import "" "1" (func (;1;) (type 0))) |
| 89 |
(import "" "$imports" (table (;0;) 2 2 funcref)) |
| 90 |
(elem (;0;) (i32.const 0) func 0 1) |
| 91 |
(@producers |
| 92 |
(processed-by "wit-component" "$CARGO_PKG_VERSION") |
| 93 |
) |
| 94 |
) |
| 95 |
(core instance (;0;) (instantiate 1)) |
| 96 |
(alias export 2 "foo1" (func (;0;))) |
| 97 |
(core func (;0;) (canon lower (func 0))) |
| 98 |
(alias export 2 "foo2" (func (;1;))) |
| 99 |
(core func (;1;) (canon lower (func 1))) |
| 100 |
(alias export 2 "foo3" (func (;2;))) |
| 101 |
(core func (;2;) (canon lower (func 2))) |
| 102 |
(core instance (;1;) |
| 103 |
(export "foo1" (func 0)) |
| 104 |
(export "foo2" (func 1)) |
| 105 |
(export "foo3" (func 2)) |
| 106 |
) |
| 107 |
(alias core export 0 "0" (core func (;3;))) |
| 108 |
(alias export 0 "bar2" (func (;3;))) |
| 109 |
(core func (;4;) (canon lower (func 3))) |
| 110 |
(core instance (;2;) |
| 111 |
(export "bar1" (func 3)) |
| 112 |
(export "bar2" (func 4)) |
| 113 |
) |
| 114 |
(alias core export 0 "1" (core func (;5;))) |
| 115 |
(alias export 1 "baz2" (func (;4;))) |
| 116 |
(core func (;6;) (canon lower (func 4))) |
| 117 |
(alias export 1 "baz3" (func (;5;))) |
| 118 |
(core func (;7;) (canon lower (func 5))) |
| 119 |
(core instance (;3;) |
| 120 |
(export "baz1" (func 5)) |
| 121 |
(export "baz2" (func 6)) |
| 122 |
(export "baz3" (func 7)) |
| 123 |
) |
| 124 |
(core instance (;4;) (instantiate 0 |
| 125 |
(with "foo" (instance 1)) |
| 126 |
(with "bar" (instance 2)) |
| 127 |
(with "baz" (instance 3)) |
| 128 |
) |
| 129 |
) |
| 130 |
(alias core export 4 "memory" (core memory (;0;))) |
| 131 |
(alias core export 0 "$imports" (core table (;0;))) |
| 132 |
(alias export 0 "bar1" (func (;6;))) |
| 133 |
(alias core export 4 "cabi_realloc" (core func (;8;))) |
| 134 |
(core func (;9;) (canon lower (func 6) (memory 0) string-encoding=utf8)) |
| 135 |
(alias export 1 "baz1" (func (;7;))) |
| 136 |
(core func (;10;) (canon lower (func 7) (memory 0) string-encoding=utf8)) |
| 137 |
(core instance (;5;) |
| 138 |
(export "$imports" (table 0)) |
| 139 |
(export "0" (func 9)) |
| 140 |
(export "1" (func 10)) |
| 141 |
) |
| 142 |
(core instance (;6;) (instantiate 2 |
| 143 |
(with "" (instance 5)) |
| 144 |
) |
| 145 |
) |
| 146 |
(@producers |
| 147 |
(processed-by "wit-component" "$CARGO_PKG_VERSION") |
| 148 |
) |
| 149 |
) |