Debian Codegraph @

crates/wit-component/tests/components/lift-options/component.wat

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