Debian Codegraph @

crates/wit-component/tests/components/cm32-names/component.wat

raw
1 (component
2 (type (;0;)
3 (instance
4 (export (;0;) "r" (type (sub resource)))
5 (type (;1;) (own 0))
6 (type (;2;) (func (param "s" string) (result 1)))
7 (export (;0;) "[constructor]r" (func (type 2)))
8 (type (;3;) (borrow 0))
9 (type (;4;) (func (param "self" 3) (result string)))
10 (export (;1;) "[method]r.m" (func (type 4)))
11 (type (;5;) (func (param "in" 1) (result 1)))
12 (export (;2;) "frob" (func (type 5)))
13 )
14 )
15 (import "ns:pkg/[email protected]" (instance (;0;) (type 0)))
16 (type (;1;)
17 (instance
18 (export (;0;) "r" (type (sub resource)))
19 (type (;1;) (own 0))
20 (type (;2;) (func (param "s" string) (result 1)))
21 (export (;0;) "[constructor]r" (func (type 2)))
22 (type (;3;) (borrow 0))
23 (type (;4;) (func (param "self" 3) (result string)))
24 (export (;1;) "[method]r.m" (func (type 4)))
25 (type (;5;) (func (param "in" 1) (result 1)))
26 (export (;2;) "frob" (func (type 5)))
27 )
28 )
29 (import "j" (instance (;1;) (type 1)))
30 (type (;2;) (func (result string)))
31 (import "f" (func (;0;) (type 2)))
32 (core module (;0;)
33 (type (;0;) (func (param i32)))
34 (type (;1;) (func (param i32 i32) (result i32)))
35 (type (;2;) (func (param i32 i32)))
36 (type (;3;) (func (param i32) (result i32)))
37 (type (;4;) (func (result i32)))
38 (type (;5;) (func (param i32 i32 i32 i32) (result i32)))
39 (type (;6;) (func))
40 (import "cm32p2" "f" (func (;0;) (type 0)))
41 (import "cm32p2|ns:pkg/[email protected]" "[constructor]r" (func (;1;) (type 1)))
42 (import "cm32p2|ns:pkg/[email protected]" "[method]r.m" (func (;2;) (type 2)))
43 (import "cm32p2|ns:pkg/[email protected]" "frob" (func (;3;) (type 3)))
44 (import "cm32p2|ns:pkg/[email protected]" "r_drop" (func (;4;) (type 0)))
45 (import "cm32p2|j" "[constructor]r" (func (;5;) (type 1)))
46 (import "cm32p2|j" "[method]r.m" (func (;6;) (type 2)))
47 (import "cm32p2|j" "frob" (func (;7;) (type 3)))
48 (import "cm32p2|j" "r_drop" (func (;8;) (type 0)))
49 (import "cm32p2|_ex_ns:pkg/[email protected]" "r_drop" (func (;9;) (type 0)))
50 (import "cm32p2|_ex_ns:pkg/[email protected]" "r_new" (func (;10;) (type 3)))
51 (import "cm32p2|_ex_ns:pkg/[email protected]" "r_rep" (func (;11;) (type 3)))
52 (import "cm32p2|_ex_j" "r_drop" (func (;12;) (type 0)))
53 (import "cm32p2|_ex_j" "r_new" (func (;13;) (type 3)))
54 (import "cm32p2|_ex_j" "r_rep" (func (;14;) (type 3)))
55 (memory (;0;) 0)
56 (export "cm32p2_memory" (memory 0))
57 (export "cm32p2||g" (func 15))
58 (export "cm32p2||g_post" (func 16))
59 (export "cm32p2|ns:pkg/[email protected]|[constructor]r" (func 17))
60 (export "cm32p2|ns:pkg/[email protected]|[method]r.m" (func 18))
61 (export "cm32p2|ns:pkg/[email protected]|frob" (func 19))
62 (export "cm32p2|ns:pkg/[email protected]|r_dtor" (func 20))
63 (export "cm32p2|j|[constructor]r" (func 21))
64 (export "cm32p2|j|[method]r.m" (func 22))
65 (export "cm32p2|j|frob" (func 23))
66 (export "cm32p2|j|r_dtor" (func 24))
67 (export "cm32p2_realloc" (func 25))
68 (export "cm32p2_initialize" (func 26))
69 (func (;15;) (type 4) (result i32)
70 unreachable
71 )
72 (func (;16;) (type 0) (param i32)
73 unreachable
74 )
75 (func (;17;) (type 1) (param i32 i32) (result i32)
76 unreachable
77 )
78 (func (;18;) (type 3) (param i32) (result i32)
79 unreachable
80 )
81 (func (;19;) (type 3) (param i32) (result i32)
82 unreachable
83 )
84 (func (;20;) (type 0) (param i32)
85 unreachable
86 )
87 (func (;21;) (type 1) (param i32 i32) (result i32)
88 unreachable
89 )
90 (func (;22;) (type 3) (param i32) (result i32)
91 unreachable
92 )
93 (func (;23;) (type 3) (param i32) (result i32)
94 unreachable
95 )
96 (func (;24;) (type 0) (param i32)
97 unreachable
98 )
99 (func (;25;) (type 5) (param i32 i32 i32 i32) (result i32)
100 unreachable
101 )
102 (func (;26;) (type 6))
103 (@producers
104 (processed-by "wit-component" "$CARGO_PKG_VERSION")
105 (processed-by "my-fake-bindgen" "123.45")
106 )
107 )
108 (core module (;1;)
109 (type (;0;) (func (param i32)))
110 (type (;1;) (func (param i32 i32) (result i32)))
111 (type (;2;) (func (param i32 i32)))
112 (type (;3;) (func (param i32)))
113 (table (;0;) 7 7 funcref)
114 (export "0" (func $indirect-cm32p2-f))
115 (export "1" (func $"indirect-cm32p2|ns:pkg/[email protected][constructor]r"))
116 (export "2" (func $"indirect-cm32p2|ns:pkg/[email protected][method]r.m"))
117 (export "3" (func $"indirect-cm32p2|j-[constructor]r"))
118 (export "4" (func $"indirect-cm32p2|j-[method]r.m"))
119 (export "5" (func $dtor-r))
120 (export "6" (func $"#func6 dtor-r"))
121 (export "$imports" (table 0))
122 (func $indirect-cm32p2-f (;0;) (type 0) (param i32)
123 local.get 0
124 i32.const 0
125 call_indirect (type 0)
126 )
127 (func $"indirect-cm32p2|ns:pkg/[email protected][constructor]r" (;1;) (type 1) (param i32 i32) (result i32)
128 local.get 0
129 local.get 1
130 i32.const 1
131 call_indirect (type 1)
132 )
133 (func $"indirect-cm32p2|ns:pkg/[email protected][method]r.m" (;2;) (type 2) (param i32 i32)
134 local.get 0
135 local.get 1
136 i32.const 2
137 call_indirect (type 2)
138 )
139 (func $"indirect-cm32p2|j-[constructor]r" (;3;) (type 1) (param i32 i32) (result i32)
140 local.get 0
141 local.get 1
142 i32.const 3
143 call_indirect (type 1)
144 )
145 (func $"indirect-cm32p2|j-[method]r.m" (;4;) (type 2) (param i32 i32)
146 local.get 0
147 local.get 1
148 i32.const 4
149 call_indirect (type 2)
150 )
151 (func $dtor-r (;5;) (type 3) (param i32)
152 local.get 0
153 i32.const 5
154 call_indirect (type 3)
155 )
156 (func $"#func6 dtor-r" (@name "dtor-r") (;6;) (type 3) (param i32)
157 local.get 0
158 i32.const 6
159 call_indirect (type 3)
160 )
161 (@producers
162 (processed-by "wit-component" "$CARGO_PKG_VERSION")
163 )
164 )
165 (core module (;2;)
166 (type (;0;) (func (param i32)))
167 (type (;1;) (func (param i32 i32) (result i32)))
168 (type (;2;) (func (param i32 i32)))
169 (type (;3;) (func (param i32)))
170 (import "" "0" (func (;0;) (type 0)))
171 (import "" "1" (func (;1;) (type 1)))
172 (import "" "2" (func (;2;) (type 2)))
173 (import "" "3" (func (;3;) (type 1)))
174 (import "" "4" (func (;4;) (type 2)))
175 (import "" "5" (func (;5;) (type 3)))
176 (import "" "6" (func (;6;) (type 3)))
177 (import "" "$imports" (table (;0;) 7 7 funcref))
178 (elem (;0;) (i32.const 0) func 0 1 2 3 4 5 6)
179 (@producers
180 (processed-by "wit-component" "$CARGO_PKG_VERSION")
181 )
182 )
183 (core instance (;0;) (instantiate 1))
184 (alias core export 0 "5" (core func (;0;)))
185 (type (;3;) (resource (rep i32) (dtor (func 0))))
186 (alias core export 0 "6" (core func (;1;)))
187 (type (;4;) (resource (rep i32) (dtor (func 1))))
188 (alias core export 0 "0" (core func (;2;)))
189 (core instance (;1;)
190 (export "f" (func 2))
191 )
192 (alias core export 0 "1" (core func (;3;)))
193 (alias core export 0 "2" (core func (;4;)))
194 (alias export 0 "frob" (func (;1;)))
195 (core func (;5;) (canon lower (func 1)))
196 (alias export 0 "r" (type (;5;)))
197 (core func (;6;) (canon resource.drop 5))
198 (core instance (;2;)
199 (export "[constructor]r" (func 3))
200 (export "[method]r.m" (func 4))
201 (export "frob" (func 5))
202 (export "r_drop" (func 6))
203 )
204 (alias core export 0 "3" (core func (;7;)))
205 (alias core export 0 "4" (core func (;8;)))
206 (alias export 1 "frob" (func (;2;)))
207 (core func (;9;) (canon lower (func 2)))
208 (alias export 1 "r" (type (;6;)))
209 (core func (;10;) (canon resource.drop 6))
210 (core instance (;3;)
211 (export "[constructor]r" (func 7))
212 (export "[method]r.m" (func 8))
213 (export "frob" (func 9))
214 (export "r_drop" (func 10))
215 )
216 (core func (;11;) (canon resource.drop 3))
217 (core func (;12;) (canon resource.new 3))
218 (core func (;13;) (canon resource.rep 3))
219 (core instance (;4;)
220 (export "r_drop" (func 11))
221 (export "r_new" (func 12))
222 (export "r_rep" (func 13))
223 )
224 (core func (;14;) (canon resource.drop 4))
225 (core func (;15;) (canon resource.new 4))
226 (core func (;16;) (canon resource.rep 4))
227 (core instance (;5;)
228 (export "r_drop" (func 14))
229 (export "r_new" (func 15))
230 (export "r_rep" (func 16))
231 )
232 (core instance (;6;) (instantiate 0
233 (with "cm32p2" (instance 1))
234 (with "cm32p2|ns:pkg/[email protected]" (instance 2))
235 (with "cm32p2|j" (instance 3))
236 (with "cm32p2|_ex_ns:pkg/[email protected]" (instance 4))
237 (with "cm32p2|_ex_j" (instance 5))
238 )
239 )
240 (alias core export 6 "cm32p2_memory" (core memory (;0;)))
241 (alias core export 0 "$imports" (core table (;0;)))
242 (alias core export 6 "cm32p2_realloc" (core func (;17;)))
243 (core func (;18;) (canon lower (func 0) (memory 0) (realloc 17) string-encoding=utf8))
244 (alias export 0 "[constructor]r" (func (;3;)))
245 (core func (;19;) (canon lower (func 3) (memory 0) string-encoding=utf8))
246 (alias export 0 "[method]r.m" (func (;4;)))
247 (core func (;20;) (canon lower (func 4) (memory 0) (realloc 17) string-encoding=utf8))
248 (alias export 1 "[constructor]r" (func (;5;)))
249 (core func (;21;) (canon lower (func 5) (memory 0) string-encoding=utf8))
250 (alias export 1 "[method]r.m" (func (;6;)))
251 (core func (;22;) (canon lower (func 6) (memory 0) (realloc 17) string-encoding=utf8))
252 (alias core export 6 "cm32p2|ns:pkg/[email protected]|r_dtor" (core func (;23;)))
253 (alias core export 6 "cm32p2|j|r_dtor" (core func (;24;)))
254 (core instance (;7;)
255 (export "$imports" (table 0))
256 (export "0" (func 18))
257 (export "1" (func 19))
258 (export "2" (func 20))
259 (export "3" (func 21))
260 (export "4" (func 22))
261 (export "5" (func 23))
262 (export "6" (func 24))
263 )
264 (core instance (;8;) (instantiate 2
265 (with "" (instance 7))
266 )
267 )
268 (alias core export 6 "cm32p2_initialize" (core func (;25;)))
269 (core module (;3;)
270 (type (;0;) (func))
271 (import "" "" (func (;0;) (type 0)))
272 (start 0)
273 )
274 (core instance (;9;)
275 (export "" (func 25))
276 )
277 (core instance (;10;) (instantiate 3
278 (with "" (instance 9))
279 )
280 )
281 (alias core export 6 "cm32p2||g" (core func (;26;)))
282 (alias core export 6 "cm32p2||g_post" (core func (;27;)))
283 (func (;7;) (type 2) (canon lift (core func 26) (memory 0) string-encoding=utf8 (post-return 27)))
284 (export (;8;) "g" (func 7))
285 (type (;7;) (own 3))
286 (type (;8;) (func (param "s" string) (result 7)))
287 (alias core export 6 "cm32p2|ns:pkg/[email protected]|[constructor]r" (core func (;28;)))
288 (func (;9;) (type 8) (canon lift (core func 28) (memory 0) (realloc 17) string-encoding=utf8))
289 (type (;9;) (borrow 3))
290 (type (;10;) (func (param "self" 9) (result string)))
291 (alias core export 6 "cm32p2|ns:pkg/[email protected]|[method]r.m" (core func (;29;)))
292 (func (;10;) (type 10) (canon lift (core func 29) (memory 0) string-encoding=utf8))
293 (type (;11;) (func (param "in" 7) (result 7)))
294 (alias core export 6 "cm32p2|ns:pkg/[email protected]|frob" (core func (;30;)))
295 (func (;11;) (type 11) (canon lift (core func 30)))
296 (component (;0;)
297 (import "import-type-r" (type (;0;) (sub resource)))
298 (type (;1;) (own 0))
299 (type (;2;) (func (param "s" string) (result 1)))
300 (import "import-constructor-r" (func (;0;) (type 2)))
301 (type (;3;) (borrow 0))
302 (type (;4;) (func (param "self" 3) (result string)))
303 (import "import-method-r-m" (func (;1;) (type 4)))
304 (type (;5;) (func (param "in" 1) (result 1)))
305 (import "import-func-frob" (func (;2;) (type 5)))
306 (export (;6;) "r" (type 0))
307 (type (;7;) (own 6))
308 (type (;8;) (func (param "s" string) (result 7)))
309 (export (;3;) "[constructor]r" (func 0) (func (type 8)))
310 (type (;9;) (borrow 6))
311 (type (;10;) (func (param "self" 9) (result string)))
312 (export (;4;) "[method]r.m" (func 1) (func (type 10)))
313 (type (;11;) (func (param "in" 7) (result 7)))
314 (export (;5;) "frob" (func 2) (func (type 11)))
315 )
316 (instance (;2;) (instantiate 0
317 (with "import-constructor-r" (func 9))
318 (with "import-method-r-m" (func 10))
319 (with "import-func-frob" (func 11))
320 (with "import-type-r" (type 3))
321 )
322 )
323 (export (;3;) "ns:pkg/[email protected]" (instance 2))
324 (type (;12;) (own 4))
325 (type (;13;) (func (param "s" string) (result 12)))
326 (alias core export 6 "cm32p2|j|[constructor]r" (core func (;31;)))
327 (func (;12;) (type 13) (canon lift (core func 31) (memory 0) (realloc 17) string-encoding=utf8))
328 (type (;14;) (borrow 4))
329 (type (;15;) (func (param "self" 14) (result string)))
330 (alias core export 6 "cm32p2|j|[method]r.m" (core func (;32;)))
331 (func (;13;) (type 15) (canon lift (core func 32) (memory 0) string-encoding=utf8))
332 (type (;16;) (func (param "in" 12) (result 12)))
333 (alias core export 6 "cm32p2|j|frob" (core func (;33;)))
334 (func (;14;) (type 16) (canon lift (core func 33)))
335 (component (;1;)
336 (import "import-type-r" (type (;0;) (sub resource)))
337 (type (;1;) (own 0))
338 (type (;2;) (func (param "s" string) (result 1)))
339 (import "import-constructor-r" (func (;0;) (type 2)))
340 (type (;3;) (borrow 0))
341 (type (;4;) (func (param "self" 3) (result string)))
342 (import "import-method-r-m" (func (;1;) (type 4)))
343 (type (;5;) (func (param "in" 1) (result 1)))
344 (import "import-func-frob" (func (;2;) (type 5)))
345 (export (;6;) "r" (type 0))
346 (type (;7;) (own 6))
347 (type (;8;) (func (param "s" string) (result 7)))
348 (export (;3;) "[constructor]r" (func 0) (func (type 8)))
349 (type (;9;) (borrow 6))
350 (type (;10;) (func (param "self" 9) (result string)))
351 (export (;4;) "[method]r.m" (func 1) (func (type 10)))
352 (type (;11;) (func (param "in" 7) (result 7)))
353 (export (;5;) "frob" (func 2) (func (type 11)))
354 )
355 (instance (;4;) (instantiate 1
356 (with "import-constructor-r" (func 12))
357 (with "import-method-r-m" (func 13))
358 (with "import-func-frob" (func 14))
359 (with "import-type-r" (type 4))
360 )
361 )
362 (export (;5;) "j" (instance 4))
363 (@producers
364 (processed-by "wit-component" "$CARGO_PKG_VERSION")
365 )
366 )