| 1 |
(component |
| 2 |
(type (;0;) |
| 3 |
(instance |
| 4 |
(type (;0;) (record (field "s" string))) |
| 5 |
(export (;1;) "r" (type (eq 0))) |
| 6 |
(type (;2;) (variant (case "s" string))) |
| 7 |
(export (;3;) "v" (type (eq 2))) |
| 8 |
(type (;4;) (record (field "s" u32))) |
| 9 |
(export (;5;) "r-no-string" (type (eq 4))) |
| 10 |
(type (;6;) (variant (case "s" u32))) |
| 11 |
(export (;7;) "v-no-string" (type (eq 6))) |
| 12 |
(type (;8;) (func)) |
| 13 |
(export (;0;) "a" (func (type 8))) |
| 14 |
(type (;9;) (list string)) |
| 15 |
(type (;10;) (func (param "x" 9))) |
| 16 |
(export (;1;) "b" (func (type 10))) |
| 17 |
(type (;11;) (func (param "x" 1))) |
| 18 |
(export (;2;) "c" (func (type 11))) |
| 19 |
(type (;12;) (func (param "x" 3))) |
| 20 |
(export (;3;) "d" (func (type 12))) |
| 21 |
(type (;13;) (func (param "x" 5))) |
| 22 |
(export (;4;) "e" (func (type 13))) |
| 23 |
(type (;14;) (func (param "x" 7))) |
| 24 |
(export (;5;) "f" (func (type 14))) |
| 25 |
(type (;15;) (list 1)) |
| 26 |
(type (;16;) (func (param "x" 15))) |
| 27 |
(export (;6;) "g" (func (type 16))) |
| 28 |
(type (;17;) (list 3)) |
| 29 |
(type (;18;) (func (param "x" 17))) |
| 30 |
(export (;7;) "h" (func (type 18))) |
| 31 |
(type (;19;) (list u32)) |
| 32 |
(type (;20;) (func (param "x" 19))) |
| 33 |
(export (;8;) "i" (func (type 20))) |
| 34 |
(type (;21;) (func (param "x" u32))) |
| 35 |
(export (;9;) "j" (func (type 21))) |
| 36 |
(type (;22;) (tuple u32 u32)) |
| 37 |
(type (;23;) (func (result 22))) |
| 38 |
(export (;10;) "k" (func (type 23))) |
| 39 |
(type (;24;) (func (result string))) |
| 40 |
(export (;11;) "l" (func (type 24))) |
| 41 |
(type (;25;) (func (result 19))) |
| 42 |
(export (;12;) "m" (func (type 25))) |
| 43 |
(type (;26;) (func (result u32))) |
| 44 |
(export (;13;) "n" (func (type 26))) |
| 45 |
(type (;27;) (func (result 3))) |
| 46 |
(export (;14;) "o" (func (type 27))) |
| 47 |
(type (;28;) (list 7)) |
| 48 |
(type (;29;) (func (result 28))) |
| 49 |
(export (;15;) "p" (func (type 29))) |
| 50 |
) |
| 51 |
) |
| 52 |
(import "foo:foo/foo" (instance (;0;) (type 0))) |
| 53 |
(core module (;0;) |
| 54 |
(type (;0;) (func)) |
| 55 |
(type (;1;) (func (param i32 i32))) |
| 56 |
(type (;2;) (func (param i32 i32 i32))) |
| 57 |
(type (;3;) (func (param i32))) |
| 58 |
(type (;4;) (func (result i32))) |
| 59 |
(type (;5;) (func (param i32 i32 i32 i32) (result i32))) |
| 60 |
(import "foo:foo/foo" "a" (func (;0;) (type 0))) |
| 61 |
(import "foo:foo/foo" "b" (func (;1;) (type 1))) |
| 62 |
(import "foo:foo/foo" "c" (func (;2;) (type 1))) |
| 63 |
(import "foo:foo/foo" "d" (func (;3;) (type 2))) |
| 64 |
(import "foo:foo/foo" "e" (func (;4;) (type 3))) |
| 65 |
(import "foo:foo/foo" "f" (func (;5;) (type 1))) |
| 66 |
(import "foo:foo/foo" "g" (func (;6;) (type 1))) |
| 67 |
(import "foo:foo/foo" "h" (func (;7;) (type 1))) |
| 68 |
(import "foo:foo/foo" "i" (func (;8;) (type 1))) |
| 69 |
(import "foo:foo/foo" "j" (func (;9;) (type 3))) |
| 70 |
(import "foo:foo/foo" "k" (func (;10;) (type 3))) |
| 71 |
(import "foo:foo/foo" "l" (func (;11;) (type 3))) |
| 72 |
(import "foo:foo/foo" "m" (func (;12;) (type 3))) |
| 73 |
(import "foo:foo/foo" "n" (func (;13;) (type 4))) |
| 74 |
(import "foo:foo/foo" "o" (func (;14;) (type 3))) |
| 75 |
(import "foo:foo/foo" "p" (func (;15;) (type 3))) |
| 76 |
(memory (;0;) 1) |
| 77 |
(export "memory" (memory 0)) |
| 78 |
(export "cabi_realloc" (func 16)) |
| 79 |
(func (;16;) (type 5) (param i32 i32 i32 i32) (result i32) |
| 80 |
unreachable |
| 81 |
) |
| 82 |
(@producers |
| 83 |
(processed-by "wit-component" "$CARGO_PKG_VERSION") |
| 84 |
(processed-by "my-fake-bindgen" "123.45") |
| 85 |
) |
| 86 |
) |
| 87 |
(core module (;1;) |
| 88 |
(type (;0;) (func (param i32 i32))) |
| 89 |
(type (;1;) (func (param i32 i32 i32))) |
| 90 |
(type (;2;) (func (param i32))) |
| 91 |
(table (;0;) 11 11 funcref) |
| 92 |
(export "0" (func $indirect-foo:foo/foo-b)) |
| 93 |
(export "1" (func $indirect-foo:foo/foo-c)) |
| 94 |
(export "2" (func $indirect-foo:foo/foo-d)) |
| 95 |
(export "3" (func $indirect-foo:foo/foo-g)) |
| 96 |
(export "4" (func $indirect-foo:foo/foo-h)) |
| 97 |
(export "5" (func $indirect-foo:foo/foo-i)) |
| 98 |
(export "6" (func $indirect-foo:foo/foo-k)) |
| 99 |
(export "7" (func $indirect-foo:foo/foo-l)) |
| 100 |
(export "8" (func $indirect-foo:foo/foo-m)) |
| 101 |
(export "9" (func $indirect-foo:foo/foo-o)) |
| 102 |
(export "10" (func $indirect-foo:foo/foo-p)) |
| 103 |
(export "$imports" (table 0)) |
| 104 |
(func $indirect-foo:foo/foo-b (;0;) (type 0) (param i32 i32) |
| 105 |
local.get 0 |
| 106 |
local.get 1 |
| 107 |
i32.const 0 |
| 108 |
call_indirect (type 0) |
| 109 |
) |
| 110 |
(func $indirect-foo:foo/foo-c (;1;) (type 0) (param i32 i32) |
| 111 |
local.get 0 |
| 112 |
local.get 1 |
| 113 |
i32.const 1 |
| 114 |
call_indirect (type 0) |
| 115 |
) |
| 116 |
(func $indirect-foo:foo/foo-d (;2;) (type 1) (param i32 i32 i32) |
| 117 |
local.get 0 |
| 118 |
local.get 1 |
| 119 |
local.get 2 |
| 120 |
i32.const 2 |
| 121 |
call_indirect (type 1) |
| 122 |
) |
| 123 |
(func $indirect-foo:foo/foo-g (;3;) (type 0) (param i32 i32) |
| 124 |
local.get 0 |
| 125 |
local.get 1 |
| 126 |
i32.const 3 |
| 127 |
call_indirect (type 0) |
| 128 |
) |
| 129 |
(func $indirect-foo:foo/foo-h (;4;) (type 0) (param i32 i32) |
| 130 |
local.get 0 |
| 131 |
local.get 1 |
| 132 |
i32.const 4 |
| 133 |
call_indirect (type 0) |
| 134 |
) |
| 135 |
(func $indirect-foo:foo/foo-i (;5;) (type 0) (param i32 i32) |
| 136 |
local.get 0 |
| 137 |
local.get 1 |
| 138 |
i32.const 5 |
| 139 |
call_indirect (type 0) |
| 140 |
) |
| 141 |
(func $indirect-foo:foo/foo-k (;6;) (type 2) (param i32) |
| 142 |
local.get 0 |
| 143 |
i32.const 6 |
| 144 |
call_indirect (type 2) |
| 145 |
) |
| 146 |
(func $indirect-foo:foo/foo-l (;7;) (type 2) (param i32) |
| 147 |
local.get 0 |
| 148 |
i32.const 7 |
| 149 |
call_indirect (type 2) |
| 150 |
) |
| 151 |
(func $indirect-foo:foo/foo-m (;8;) (type 2) (param i32) |
| 152 |
local.get 0 |
| 153 |
i32.const 8 |
| 154 |
call_indirect (type 2) |
| 155 |
) |
| 156 |
(func $indirect-foo:foo/foo-o (;9;) (type 2) (param i32) |
| 157 |
local.get 0 |
| 158 |
i32.const 9 |
| 159 |
call_indirect (type 2) |
| 160 |
) |
| 161 |
(func $indirect-foo:foo/foo-p (;10;) (type 2) (param i32) |
| 162 |
local.get 0 |
| 163 |
i32.const 10 |
| 164 |
call_indirect (type 2) |
| 165 |
) |
| 166 |
(@producers |
| 167 |
(processed-by "wit-component" "$CARGO_PKG_VERSION") |
| 168 |
) |
| 169 |
) |
| 170 |
(core module (;2;) |
| 171 |
(type (;0;) (func (param i32 i32))) |
| 172 |
(type (;1;) (func (param i32 i32 i32))) |
| 173 |
(type (;2;) (func (param i32))) |
| 174 |
(import "" "0" (func (;0;) (type 0))) |
| 175 |
(import "" "1" (func (;1;) (type 0))) |
| 176 |
(import "" "2" (func (;2;) (type 1))) |
| 177 |
(import "" "3" (func (;3;) (type 0))) |
| 178 |
(import "" "4" (func (;4;) (type 0))) |
| 179 |
(import "" "5" (func (;5;) (type 0))) |
| 180 |
(import "" "6" (func (;6;) (type 2))) |
| 181 |
(import "" "7" (func (;7;) (type 2))) |
| 182 |
(import "" "8" (func (;8;) (type 2))) |
| 183 |
(import "" "9" (func (;9;) (type 2))) |
| 184 |
(import "" "10" (func (;10;) (type 2))) |
| 185 |
(import "" "$imports" (table (;0;) 11 11 funcref)) |
| 186 |
(elem (;0;) (i32.const 0) func 0 1 2 3 4 5 6 7 8 9 10) |
| 187 |
(@producers |
| 188 |
(processed-by "wit-component" "$CARGO_PKG_VERSION") |
| 189 |
) |
| 190 |
) |
| 191 |
(core instance (;0;) (instantiate 1)) |
| 192 |
(alias export 0 "a" (func (;0;))) |
| 193 |
(core func (;0;) (canon lower (func 0))) |
| 194 |
(alias core export 0 "0" (core func (;1;))) |
| 195 |
(alias core export 0 "1" (core func (;2;))) |
| 196 |
(alias core export 0 "2" (core func (;3;))) |
| 197 |
(alias export 0 "e" (func (;1;))) |
| 198 |
(core func (;4;) (canon lower (func 1))) |
| 199 |
(alias export 0 "f" (func (;2;))) |
| 200 |
(core func (;5;) (canon lower (func 2))) |
| 201 |
(alias core export 0 "3" (core func (;6;))) |
| 202 |
(alias core export 0 "4" (core func (;7;))) |
| 203 |
(alias core export 0 "5" (core func (;8;))) |
| 204 |
(alias export 0 "j" (func (;3;))) |
| 205 |
(core func (;9;) (canon lower (func 3))) |
| 206 |
(alias core export 0 "6" (core func (;10;))) |
| 207 |
(alias core export 0 "7" (core func (;11;))) |
| 208 |
(alias core export 0 "8" (core func (;12;))) |
| 209 |
(alias export 0 "n" (func (;4;))) |
| 210 |
(core func (;13;) (canon lower (func 4))) |
| 211 |
(alias core export 0 "9" (core func (;14;))) |
| 212 |
(alias core export 0 "10" (core func (;15;))) |
| 213 |
(core instance (;1;) |
| 214 |
(export "a" (func 0)) |
| 215 |
(export "b" (func 1)) |
| 216 |
(export "c" (func 2)) |
| 217 |
(export "d" (func 3)) |
| 218 |
(export "e" (func 4)) |
| 219 |
(export "f" (func 5)) |
| 220 |
(export "g" (func 6)) |
| 221 |
(export "h" (func 7)) |
| 222 |
(export "i" (func 8)) |
| 223 |
(export "j" (func 9)) |
| 224 |
(export "k" (func 10)) |
| 225 |
(export "l" (func 11)) |
| 226 |
(export "m" (func 12)) |
| 227 |
(export "n" (func 13)) |
| 228 |
(export "o" (func 14)) |
| 229 |
(export "p" (func 15)) |
| 230 |
) |
| 231 |
(core instance (;2;) (instantiate 0 |
| 232 |
(with "foo:foo/foo" (instance 1)) |
| 233 |
) |
| 234 |
) |
| 235 |
(alias core export 2 "memory" (core memory (;0;))) |
| 236 |
(alias core export 0 "$imports" (core table (;0;))) |
| 237 |
(alias export 0 "b" (func (;5;))) |
| 238 |
(alias core export 2 "cabi_realloc" (core func (;16;))) |
| 239 |
(core func (;17;) (canon lower (func 5) (memory 0) string-encoding=utf8)) |
| 240 |
(alias export 0 "c" (func (;6;))) |
| 241 |
(core func (;18;) (canon lower (func 6) (memory 0) string-encoding=utf8)) |
| 242 |
(alias export 0 "d" (func (;7;))) |
| 243 |
(core func (;19;) (canon lower (func 7) (memory 0) string-encoding=utf8)) |
| 244 |
(alias export 0 "g" (func (;8;))) |
| 245 |
(core func (;20;) (canon lower (func 8) (memory 0) string-encoding=utf8)) |
| 246 |
(alias export 0 "h" (func (;9;))) |
| 247 |
(core func (;21;) (canon lower (func 9) (memory 0) string-encoding=utf8)) |
| 248 |
(alias export 0 "i" (func (;10;))) |
| 249 |
(core func (;22;) (canon lower (func 10) (memory 0))) |
| 250 |
(alias export 0 "k" (func (;11;))) |
| 251 |
(core func (;23;) (canon lower (func 11) (memory 0))) |
| 252 |
(alias export 0 "l" (func (;12;))) |
| 253 |
(core func (;24;) (canon lower (func 12) (memory 0) (realloc 16) string-encoding=utf8)) |
| 254 |
(alias export 0 "m" (func (;13;))) |
| 255 |
(core func (;25;) (canon lower (func 13) (memory 0) (realloc 16))) |
| 256 |
(alias export 0 "o" (func (;14;))) |
| 257 |
(core func (;26;) (canon lower (func 14) (memory 0) (realloc 16) string-encoding=utf8)) |
| 258 |
(alias export 0 "p" (func (;15;))) |
| 259 |
(core func (;27;) (canon lower (func 15) (memory 0) (realloc 16))) |
| 260 |
(core instance (;3;) |
| 261 |
(export "$imports" (table 0)) |
| 262 |
(export "0" (func 17)) |
| 263 |
(export "1" (func 18)) |
| 264 |
(export "2" (func 19)) |
| 265 |
(export "3" (func 20)) |
| 266 |
(export "4" (func 21)) |
| 267 |
(export "5" (func 22)) |
| 268 |
(export "6" (func 23)) |
| 269 |
(export "7" (func 24)) |
| 270 |
(export "8" (func 25)) |
| 271 |
(export "9" (func 26)) |
| 272 |
(export "10" (func 27)) |
| 273 |
) |
| 274 |
(core instance (;4;) (instantiate 2 |
| 275 |
(with "" (instance 3)) |
| 276 |
) |
| 277 |
) |
| 278 |
(@producers |
| 279 |
(processed-by "wit-component" "$CARGO_PKG_VERSION") |
| 280 |
) |
| 281 |
) |