Debian Codegraph @

crates/wit-component/tests/components/async-streams-and-futures/component.wat

raw
1 (component
2 (type (;0;)
3 (instance
4 (type (;0;) (future u32))
5 (type (;1;) (future 0))
6 (type (;2;) (stream string))
7 (type (;3;) (func (param "x" 1) (param "y" u32) (result 2)))
8 (export (;0;) "foo" (func (type 3)))
9 )
10 )
11 (import "foo:foo/bar" (instance (;0;) (type 0)))
12 (type (;1;) (future u32))
13 (type (;2;) (future 1))
14 (type (;3;) (stream string))
15 (type (;4;) (func (param "x" 2) (param "y" u32) (result 3)))
16 (import "foo" (func (;0;) (type 4)))
17 (core module (;0;)
18 (type (;0;) (func (param i32 i32 i32) (result i32)))
19 (type (;1;) (func (result i64)))
20 (type (;2;) (func (param i32) (result i32)))
21 (type (;3;) (func (param i32)))
22 (type (;4;) (func (param i32 i32) (result i32)))
23 (type (;5;) (func (param i32 i32)))
24 (type (;6;) (func (param i32 i32 i32 i32) (result i32)))
25 (import "$root" "[async-lower]foo" (func (;0;) (type 0)))
26 (import "foo:foo/bar" "[async-lower]foo" (func (;1;) (type 0)))
27 (import "$root" "[stream-new-2]foo" (func (;2;) (type 1)))
28 (import "$root" "[stream-read-2]foo" (func (;3;) (type 0)))
29 (import "$root" "[stream-write-2]foo" (func (;4;) (type 0)))
30 (import "$root" "[stream-cancel-read-2]foo" (func (;5;) (type 2)))
31 (import "$root" "[stream-cancel-write-2]foo" (func (;6;) (type 2)))
32 (import "$root" "[stream-drop-readable-2]foo" (func (;7;) (type 3)))
33 (import "$root" "[stream-drop-writable-2]foo" (func (;8;) (type 3)))
34 (import "foo:foo/bar" "[stream-new-2]foo" (func (;9;) (type 1)))
35 (import "foo:foo/bar" "[stream-read-2]foo" (func (;10;) (type 0)))
36 (import "foo:foo/bar" "[stream-write-2]foo" (func (;11;) (type 0)))
37 (import "foo:foo/bar" "[stream-cancel-read-2]foo" (func (;12;) (type 2)))
38 (import "foo:foo/bar" "[stream-cancel-write-2]foo" (func (;13;) (type 2)))
39 (import "foo:foo/bar" "[stream-drop-readable-2]foo" (func (;14;) (type 3)))
40 (import "foo:foo/bar" "[stream-drop-writable-2]foo" (func (;15;) (type 3)))
41 (import "$root" "[future-new-0]foo" (func (;16;) (type 1)))
42 (import "$root" "[future-read-0]foo" (func (;17;) (type 4)))
43 (import "$root" "[future-write-0]foo" (func (;18;) (type 4)))
44 (import "$root" "[future-cancel-read-0]foo" (func (;19;) (type 2)))
45 (import "$root" "[future-cancel-write-0]foo" (func (;20;) (type 2)))
46 (import "$root" "[future-drop-readable-0]foo" (func (;21;) (type 3)))
47 (import "$root" "[future-drop-writable-0]foo" (func (;22;) (type 3)))
48 (import "foo:foo/bar" "[future-new-0]foo" (func (;23;) (type 1)))
49 (import "foo:foo/bar" "[future-read-0]foo" (func (;24;) (type 4)))
50 (import "foo:foo/bar" "[future-write-0]foo" (func (;25;) (type 4)))
51 (import "foo:foo/bar" "[future-cancel-read-0]foo" (func (;26;) (type 2)))
52 (import "foo:foo/bar" "[future-cancel-write-0]foo" (func (;27;) (type 2)))
53 (import "foo:foo/bar" "[future-drop-readable-0]foo" (func (;28;) (type 3)))
54 (import "foo:foo/bar" "[future-drop-writable-0]foo" (func (;29;) (type 3)))
55 (import "$root" "[future-new-1]foo" (func (;30;) (type 1)))
56 (import "$root" "[future-read-1]foo" (func (;31;) (type 4)))
57 (import "$root" "[future-write-1]foo" (func (;32;) (type 4)))
58 (import "$root" "[future-cancel-read-1]foo" (func (;33;) (type 2)))
59 (import "$root" "[future-cancel-write-1]foo" (func (;34;) (type 2)))
60 (import "$root" "[future-drop-readable-1]foo" (func (;35;) (type 3)))
61 (import "$root" "[future-drop-writable-1]foo" (func (;36;) (type 3)))
62 (import "foo:foo/bar" "[future-new-1]foo" (func (;37;) (type 1)))
63 (import "foo:foo/bar" "[future-read-1]foo" (func (;38;) (type 4)))
64 (import "foo:foo/bar" "[future-write-1]foo" (func (;39;) (type 4)))
65 (import "foo:foo/bar" "[future-cancel-read-1]foo" (func (;40;) (type 2)))
66 (import "foo:foo/bar" "[future-cancel-write-1]foo" (func (;41;) (type 2)))
67 (import "foo:foo/bar" "[future-drop-readable-1]foo" (func (;42;) (type 3)))
68 (import "foo:foo/bar" "[future-drop-writable-1]foo" (func (;43;) (type 3)))
69 (import "[export]$root" "[stream-new-2]foo" (func (;44;) (type 1)))
70 (import "[export]$root" "[stream-read-2]foo" (func (;45;) (type 0)))
71 (import "[export]$root" "[stream-write-2]foo" (func (;46;) (type 0)))
72 (import "[export]$root" "[stream-cancel-read-2]foo" (func (;47;) (type 2)))
73 (import "[export]$root" "[stream-cancel-write-2]foo" (func (;48;) (type 2)))
74 (import "[export]$root" "[stream-drop-readable-2]foo" (func (;49;) (type 3)))
75 (import "[export]$root" "[stream-drop-writable-2]foo" (func (;50;) (type 3)))
76 (import "[export]foo:foo/bar" "[stream-new-2]foo" (func (;51;) (type 1)))
77 (import "[export]foo:foo/bar" "[stream-read-2]foo" (func (;52;) (type 0)))
78 (import "[export]foo:foo/bar" "[stream-write-2]foo" (func (;53;) (type 0)))
79 (import "[export]foo:foo/bar" "[stream-cancel-read-2]foo" (func (;54;) (type 2)))
80 (import "[export]foo:foo/bar" "[stream-cancel-write-2]foo" (func (;55;) (type 2)))
81 (import "[export]foo:foo/bar" "[stream-drop-readable-2]foo" (func (;56;) (type 3)))
82 (import "[export]foo:foo/bar" "[stream-drop-writable-2]foo" (func (;57;) (type 3)))
83 (import "[export]$root" "[future-new-0]foo" (func (;58;) (type 1)))
84 (import "[export]$root" "[future-read-0]foo" (func (;59;) (type 4)))
85 (import "[export]$root" "[future-write-0]foo" (func (;60;) (type 4)))
86 (import "[export]$root" "[future-cancel-read-0]foo" (func (;61;) (type 2)))
87 (import "[export]$root" "[future-cancel-write-0]foo" (func (;62;) (type 2)))
88 (import "[export]$root" "[future-drop-readable-0]foo" (func (;63;) (type 3)))
89 (import "[export]$root" "[future-drop-writable-0]foo" (func (;64;) (type 3)))
90 (import "[export]foo:foo/bar" "[future-new-0]foo" (func (;65;) (type 1)))
91 (import "[export]foo:foo/bar" "[future-read-0]foo" (func (;66;) (type 4)))
92 (import "[export]foo:foo/bar" "[future-write-0]foo" (func (;67;) (type 4)))
93 (import "[export]foo:foo/bar" "[future-cancel-read-0]foo" (func (;68;) (type 2)))
94 (import "[export]foo:foo/bar" "[future-cancel-write-0]foo" (func (;69;) (type 2)))
95 (import "[export]foo:foo/bar" "[future-drop-readable-0]foo" (func (;70;) (type 3)))
96 (import "[export]foo:foo/bar" "[future-drop-writable-0]foo" (func (;71;) (type 3)))
97 (import "[export]$root" "[future-new-1]foo" (func (;72;) (type 1)))
98 (import "[export]$root" "[future-read-1]foo" (func (;73;) (type 4)))
99 (import "[export]$root" "[future-write-1]foo" (func (;74;) (type 4)))
100 (import "[export]$root" "[future-cancel-read-1]foo" (func (;75;) (type 2)))
101 (import "[export]$root" "[future-cancel-write-1]foo" (func (;76;) (type 2)))
102 (import "[export]$root" "[future-drop-readable-1]foo" (func (;77;) (type 3)))
103 (import "[export]$root" "[future-drop-writable-1]foo" (func (;78;) (type 3)))
104 (import "[export]foo:foo/bar" "[future-new-1]foo" (func (;79;) (type 1)))
105 (import "[export]foo:foo/bar" "[future-read-1]foo" (func (;80;) (type 4)))
106 (import "[export]foo:foo/bar" "[future-write-1]foo" (func (;81;) (type 4)))
107 (import "[export]foo:foo/bar" "[future-cancel-read-1]foo" (func (;82;) (type 2)))
108 (import "[export]foo:foo/bar" "[future-cancel-write-1]foo" (func (;83;) (type 2)))
109 (import "[export]foo:foo/bar" "[future-drop-readable-1]foo" (func (;84;) (type 3)))
110 (import "[export]foo:foo/bar" "[future-drop-writable-1]foo" (func (;85;) (type 3)))
111 (memory (;0;) 1)
112 (export "[async-lift-stackful]foo" (func 86))
113 (export "[async-lift-stackful]foo:foo/bar#foo" (func 87))
114 (export "memory" (memory 0))
115 (export "cabi_realloc" (func 88))
116 (func (;86;) (type 5) (param i32 i32)
117 unreachable
118 )
119 (func (;87;) (type 5) (param i32 i32)
120 unreachable
121 )
122 (func (;88;) (type 6) (param i32 i32 i32 i32) (result i32)
123 unreachable
124 )
125 (@producers
126 (processed-by "wit-component" "$CARGO_PKG_VERSION")
127 (processed-by "my-fake-bindgen" "123.45")
128 )
129 )
130 (core module (;1;)
131 (type (;0;) (func (param i32 i32 i32) (result i32)))
132 (type (;1;) (func (param i32 i32 i32) (result i32)))
133 (type (;2;) (func (param i32 i32) (result i32)))
134 (table (;0;) 26 26 funcref)
135 (export "0" (func $"indirect-$root-[async-lower]foo"))
136 (export "1" (func $"$root-[stream-read-2]foo"))
137 (export "2" (func $"$root-[stream-write-2]foo"))
138 (export "3" (func $"$root-[future-read-0]foo"))
139 (export "4" (func $"$root-[future-write-0]foo"))
140 (export "5" (func $"$root-[future-read-1]foo"))
141 (export "6" (func $"$root-[future-write-1]foo"))
142 (export "7" (func $"indirect-foo:foo/bar-[async-lower]foo"))
143 (export "8" (func $"foo:foo/bar-[stream-read-2]foo"))
144 (export "9" (func $"foo:foo/bar-[stream-write-2]foo"))
145 (export "10" (func $"foo:foo/bar-[future-read-0]foo"))
146 (export "11" (func $"foo:foo/bar-[future-write-0]foo"))
147 (export "12" (func $"foo:foo/bar-[future-read-1]foo"))
148 (export "13" (func $"foo:foo/bar-[future-write-1]foo"))
149 (export "14" (func $"[export]$root-[stream-read-2]foo"))
150 (export "15" (func $"[export]$root-[stream-write-2]foo"))
151 (export "16" (func $"[export]$root-[future-read-0]foo"))
152 (export "17" (func $"[export]$root-[future-write-0]foo"))
153 (export "18" (func $"[export]$root-[future-read-1]foo"))
154 (export "19" (func $"[export]$root-[future-write-1]foo"))
155 (export "20" (func $"[export]foo:foo/bar-[stream-read-2]foo"))
156 (export "21" (func $"[export]foo:foo/bar-[stream-write-2]foo"))
157 (export "22" (func $"[export]foo:foo/bar-[future-read-0]foo"))
158 (export "23" (func $"[export]foo:foo/bar-[future-write-0]foo"))
159 (export "24" (func $"[export]foo:foo/bar-[future-read-1]foo"))
160 (export "25" (func $"[export]foo:foo/bar-[future-write-1]foo"))
161 (export "$imports" (table 0))
162 (func $"indirect-$root-[async-lower]foo" (;0;) (type 0) (param i32 i32 i32) (result i32)
163 local.get 0
164 local.get 1
165 local.get 2
166 i32.const 0
167 call_indirect (type 0)
168 )
169 (func $"$root-[stream-read-2]foo" (;1;) (type 1) (param i32 i32 i32) (result i32)
170 local.get 0
171 local.get 1
172 local.get 2
173 i32.const 1
174 call_indirect (type 1)
175 )
176 (func $"$root-[stream-write-2]foo" (;2;) (type 1) (param i32 i32 i32) (result i32)
177 local.get 0
178 local.get 1
179 local.get 2
180 i32.const 2
181 call_indirect (type 1)
182 )
183 (func $"$root-[future-read-0]foo" (;3;) (type 2) (param i32 i32) (result i32)
184 local.get 0
185 local.get 1
186 i32.const 3
187 call_indirect (type 2)
188 )
189 (func $"$root-[future-write-0]foo" (;4;) (type 2) (param i32 i32) (result i32)
190 local.get 0
191 local.get 1
192 i32.const 4
193 call_indirect (type 2)
194 )
195 (func $"$root-[future-read-1]foo" (;5;) (type 2) (param i32 i32) (result i32)
196 local.get 0
197 local.get 1
198 i32.const 5
199 call_indirect (type 2)
200 )
201 (func $"$root-[future-write-1]foo" (;6;) (type 2) (param i32 i32) (result i32)
202 local.get 0
203 local.get 1
204 i32.const 6
205 call_indirect (type 2)
206 )
207 (func $"indirect-foo:foo/bar-[async-lower]foo" (;7;) (type 0) (param i32 i32 i32) (result i32)
208 local.get 0
209 local.get 1
210 local.get 2
211 i32.const 7
212 call_indirect (type 0)
213 )
214 (func $"foo:foo/bar-[stream-read-2]foo" (;8;) (type 1) (param i32 i32 i32) (result i32)
215 local.get 0
216 local.get 1
217 local.get 2
218 i32.const 8
219 call_indirect (type 1)
220 )
221 (func $"foo:foo/bar-[stream-write-2]foo" (;9;) (type 1) (param i32 i32 i32) (result i32)
222 local.get 0
223 local.get 1
224 local.get 2
225 i32.const 9
226 call_indirect (type 1)
227 )
228 (func $"foo:foo/bar-[future-read-0]foo" (;10;) (type 2) (param i32 i32) (result i32)
229 local.get 0
230 local.get 1
231 i32.const 10
232 call_indirect (type 2)
233 )
234 (func $"foo:foo/bar-[future-write-0]foo" (;11;) (type 2) (param i32 i32) (result i32)
235 local.get 0
236 local.get 1
237 i32.const 11
238 call_indirect (type 2)
239 )
240 (func $"foo:foo/bar-[future-read-1]foo" (;12;) (type 2) (param i32 i32) (result i32)
241 local.get 0
242 local.get 1
243 i32.const 12
244 call_indirect (type 2)
245 )
246 (func $"foo:foo/bar-[future-write-1]foo" (;13;) (type 2) (param i32 i32) (result i32)
247 local.get 0
248 local.get 1
249 i32.const 13
250 call_indirect (type 2)
251 )
252 (func $"[export]$root-[stream-read-2]foo" (;14;) (type 1) (param i32 i32 i32) (result i32)
253 local.get 0
254 local.get 1
255 local.get 2
256 i32.const 14
257 call_indirect (type 1)
258 )
259 (func $"[export]$root-[stream-write-2]foo" (;15;) (type 1) (param i32 i32 i32) (result i32)
260 local.get 0
261 local.get 1
262 local.get 2
263 i32.const 15
264 call_indirect (type 1)
265 )
266 (func $"[export]$root-[future-read-0]foo" (;16;) (type 2) (param i32 i32) (result i32)
267 local.get 0
268 local.get 1
269 i32.const 16
270 call_indirect (type 2)
271 )
272 (func $"[export]$root-[future-write-0]foo" (;17;) (type 2) (param i32 i32) (result i32)
273 local.get 0
274 local.get 1
275 i32.const 17
276 call_indirect (type 2)
277 )
278 (func $"[export]$root-[future-read-1]foo" (;18;) (type 2) (param i32 i32) (result i32)
279 local.get 0
280 local.get 1
281 i32.const 18
282 call_indirect (type 2)
283 )
284 (func $"[export]$root-[future-write-1]foo" (;19;) (type 2) (param i32 i32) (result i32)
285 local.get 0
286 local.get 1
287 i32.const 19
288 call_indirect (type 2)
289 )
290 (func $"[export]foo:foo/bar-[stream-read-2]foo" (;20;) (type 1) (param i32 i32 i32) (result i32)
291 local.get 0
292 local.get 1
293 local.get 2
294 i32.const 20
295 call_indirect (type 1)
296 )
297 (func $"[export]foo:foo/bar-[stream-write-2]foo" (;21;) (type 1) (param i32 i32 i32) (result i32)
298 local.get 0
299 local.get 1
300 local.get 2
301 i32.const 21
302 call_indirect (type 1)
303 )
304 (func $"[export]foo:foo/bar-[future-read-0]foo" (;22;) (type 2) (param i32 i32) (result i32)
305 local.get 0
306 local.get 1
307 i32.const 22
308 call_indirect (type 2)
309 )
310 (func $"[export]foo:foo/bar-[future-write-0]foo" (;23;) (type 2) (param i32 i32) (result i32)
311 local.get 0
312 local.get 1
313 i32.const 23
314 call_indirect (type 2)
315 )
316 (func $"[export]foo:foo/bar-[future-read-1]foo" (;24;) (type 2) (param i32 i32) (result i32)
317 local.get 0
318 local.get 1
319 i32.const 24
320 call_indirect (type 2)
321 )
322 (func $"[export]foo:foo/bar-[future-write-1]foo" (;25;) (type 2) (param i32 i32) (result i32)
323 local.get 0
324 local.get 1
325 i32.const 25
326 call_indirect (type 2)
327 )
328 (@producers
329 (processed-by "wit-component" "$CARGO_PKG_VERSION")
330 )
331 )
332 (core module (;2;)
333 (type (;0;) (func (param i32 i32 i32) (result i32)))
334 (type (;1;) (func (param i32 i32 i32) (result i32)))
335 (type (;2;) (func (param i32 i32) (result i32)))
336 (import "" "0" (func (;0;) (type 0)))
337 (import "" "1" (func (;1;) (type 1)))
338 (import "" "2" (func (;2;) (type 1)))
339 (import "" "3" (func (;3;) (type 2)))
340 (import "" "4" (func (;4;) (type 2)))
341 (import "" "5" (func (;5;) (type 2)))
342 (import "" "6" (func (;6;) (type 2)))
343 (import "" "7" (func (;7;) (type 0)))
344 (import "" "8" (func (;8;) (type 1)))
345 (import "" "9" (func (;9;) (type 1)))
346 (import "" "10" (func (;10;) (type 2)))
347 (import "" "11" (func (;11;) (type 2)))
348 (import "" "12" (func (;12;) (type 2)))
349 (import "" "13" (func (;13;) (type 2)))
350 (import "" "14" (func (;14;) (type 1)))
351 (import "" "15" (func (;15;) (type 1)))
352 (import "" "16" (func (;16;) (type 2)))
353 (import "" "17" (func (;17;) (type 2)))
354 (import "" "18" (func (;18;) (type 2)))
355 (import "" "19" (func (;19;) (type 2)))
356 (import "" "20" (func (;20;) (type 1)))
357 (import "" "21" (func (;21;) (type 1)))
358 (import "" "22" (func (;22;) (type 2)))
359 (import "" "23" (func (;23;) (type 2)))
360 (import "" "24" (func (;24;) (type 2)))
361 (import "" "25" (func (;25;) (type 2)))
362 (import "" "$imports" (table (;0;) 26 26 funcref))
363 (elem (;0;) (i32.const 0) func 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25)
364 (@producers
365 (processed-by "wit-component" "$CARGO_PKG_VERSION")
366 )
367 )
368 (core instance (;0;) (instantiate 1))
369 (alias core export 0 "0" (core func (;0;)))
370 (core func (;1;) (canon stream.new 3))
371 (alias core export 0 "1" (core func (;2;)))
372 (alias core export 0 "2" (core func (;3;)))
373 (core func (;4;) (canon stream.cancel-read 3))
374 (core func (;5;) (canon stream.cancel-write 3))
375 (core func (;6;) (canon stream.drop-readable 3))
376 (core func (;7;) (canon stream.drop-writable 3))
377 (core func (;8;) (canon future.new 1))
378 (alias core export 0 "3" (core func (;9;)))
379 (alias core export 0 "4" (core func (;10;)))
380 (core func (;11;) (canon future.cancel-read 1))
381 (core func (;12;) (canon future.cancel-write 1))
382 (core func (;13;) (canon future.drop-readable 1))
383 (core func (;14;) (canon future.drop-writable 1))
384 (core func (;15;) (canon future.new 2))
385 (alias core export 0 "5" (core func (;16;)))
386 (alias core export 0 "6" (core func (;17;)))
387 (core func (;18;) (canon future.cancel-read 2))
388 (core func (;19;) (canon future.cancel-write 2))
389 (core func (;20;) (canon future.drop-readable 2))
390 (core func (;21;) (canon future.drop-writable 2))
391 (core instance (;1;)
392 (export "[async-lower]foo" (func 0))
393 (export "[stream-new-2]foo" (func 1))
394 (export "[stream-read-2]foo" (func 2))
395 (export "[stream-write-2]foo" (func 3))
396 (export "[stream-cancel-read-2]foo" (func 4))
397 (export "[stream-cancel-write-2]foo" (func 5))
398 (export "[stream-drop-readable-2]foo" (func 6))
399 (export "[stream-drop-writable-2]foo" (func 7))
400 (export "[future-new-0]foo" (func 8))
401 (export "[future-read-0]foo" (func 9))
402 (export "[future-write-0]foo" (func 10))
403 (export "[future-cancel-read-0]foo" (func 11))
404 (export "[future-cancel-write-0]foo" (func 12))
405 (export "[future-drop-readable-0]foo" (func 13))
406 (export "[future-drop-writable-0]foo" (func 14))
407 (export "[future-new-1]foo" (func 15))
408 (export "[future-read-1]foo" (func 16))
409 (export "[future-write-1]foo" (func 17))
410 (export "[future-cancel-read-1]foo" (func 18))
411 (export "[future-cancel-write-1]foo" (func 19))
412 (export "[future-drop-readable-1]foo" (func 20))
413 (export "[future-drop-writable-1]foo" (func 21))
414 )
415 (alias core export 0 "7" (core func (;22;)))
416 (core func (;23;) (canon stream.new 3))
417 (alias core export 0 "8" (core func (;24;)))
418 (alias core export 0 "9" (core func (;25;)))
419 (core func (;26;) (canon stream.cancel-read 3))
420 (core func (;27;) (canon stream.cancel-write 3))
421 (core func (;28;) (canon stream.drop-readable 3))
422 (core func (;29;) (canon stream.drop-writable 3))
423 (core func (;30;) (canon future.new 1))
424 (alias core export 0 "10" (core func (;31;)))
425 (alias core export 0 "11" (core func (;32;)))
426 (core func (;33;) (canon future.cancel-read 1))
427 (core func (;34;) (canon future.cancel-write 1))
428 (core func (;35;) (canon future.drop-readable 1))
429 (core func (;36;) (canon future.drop-writable 1))
430 (type (;5;) (future 1))
431 (core func (;37;) (canon future.new 5))
432 (alias core export 0 "12" (core func (;38;)))
433 (alias core export 0 "13" (core func (;39;)))
434 (core func (;40;) (canon future.cancel-read 5))
435 (core func (;41;) (canon future.cancel-write 5))
436 (core func (;42;) (canon future.drop-readable 5))
437 (core func (;43;) (canon future.drop-writable 5))
438 (core instance (;2;)
439 (export "[async-lower]foo" (func 22))
440 (export "[stream-new-2]foo" (func 23))
441 (export "[stream-read-2]foo" (func 24))
442 (export "[stream-write-2]foo" (func 25))
443 (export "[stream-cancel-read-2]foo" (func 26))
444 (export "[stream-cancel-write-2]foo" (func 27))
445 (export "[stream-drop-readable-2]foo" (func 28))
446 (export "[stream-drop-writable-2]foo" (func 29))
447 (export "[future-new-0]foo" (func 30))
448 (export "[future-read-0]foo" (func 31))
449 (export "[future-write-0]foo" (func 32))
450 (export "[future-cancel-read-0]foo" (func 33))
451 (export "[future-cancel-write-0]foo" (func 34))
452 (export "[future-drop-readable-0]foo" (func 35))
453 (export "[future-drop-writable-0]foo" (func 36))
454 (export "[future-new-1]foo" (func 37))
455 (export "[future-read-1]foo" (func 38))
456 (export "[future-write-1]foo" (func 39))
457 (export "[future-cancel-read-1]foo" (func 40))
458 (export "[future-cancel-write-1]foo" (func 41))
459 (export "[future-drop-readable-1]foo" (func 42))
460 (export "[future-drop-writable-1]foo" (func 43))
461 )
462 (core func (;44;) (canon stream.new 3))
463 (alias core export 0 "14" (core func (;45;)))
464 (alias core export 0 "15" (core func (;46;)))
465 (core func (;47;) (canon stream.cancel-read 3))
466 (core func (;48;) (canon stream.cancel-write 3))
467 (core func (;49;) (canon stream.drop-readable 3))
468 (core func (;50;) (canon stream.drop-writable 3))
469 (core func (;51;) (canon future.new 1))
470 (alias core export 0 "16" (core func (;52;)))
471 (alias core export 0 "17" (core func (;53;)))
472 (core func (;54;) (canon future.cancel-read 1))
473 (core func (;55;) (canon future.cancel-write 1))
474 (core func (;56;) (canon future.drop-readable 1))
475 (core func (;57;) (canon future.drop-writable 1))
476 (core func (;58;) (canon future.new 2))
477 (alias core export 0 "18" (core func (;59;)))
478 (alias core export 0 "19" (core func (;60;)))
479 (core func (;61;) (canon future.cancel-read 2))
480 (core func (;62;) (canon future.cancel-write 2))
481 (core func (;63;) (canon future.drop-readable 2))
482 (core func (;64;) (canon future.drop-writable 2))
483 (core instance (;3;)
484 (export "[stream-new-2]foo" (func 44))
485 (export "[stream-read-2]foo" (func 45))
486 (export "[stream-write-2]foo" (func 46))
487 (export "[stream-cancel-read-2]foo" (func 47))
488 (export "[stream-cancel-write-2]foo" (func 48))
489 (export "[stream-drop-readable-2]foo" (func 49))
490 (export "[stream-drop-writable-2]foo" (func 50))
491 (export "[future-new-0]foo" (func 51))
492 (export "[future-read-0]foo" (func 52))
493 (export "[future-write-0]foo" (func 53))
494 (export "[future-cancel-read-0]foo" (func 54))
495 (export "[future-cancel-write-0]foo" (func 55))
496 (export "[future-drop-readable-0]foo" (func 56))
497 (export "[future-drop-writable-0]foo" (func 57))
498 (export "[future-new-1]foo" (func 58))
499 (export "[future-read-1]foo" (func 59))
500 (export "[future-write-1]foo" (func 60))
501 (export "[future-cancel-read-1]foo" (func 61))
502 (export "[future-cancel-write-1]foo" (func 62))
503 (export "[future-drop-readable-1]foo" (func 63))
504 (export "[future-drop-writable-1]foo" (func 64))
505 )
506 (type (;6;) (stream string))
507 (core func (;65;) (canon stream.new 6))
508 (alias core export 0 "20" (core func (;66;)))
509 (alias core export 0 "21" (core func (;67;)))
510 (core func (;68;) (canon stream.cancel-read 6))
511 (core func (;69;) (canon stream.cancel-write 6))
512 (core func (;70;) (canon stream.drop-readable 6))
513 (core func (;71;) (canon stream.drop-writable 6))
514 (type (;7;) (future u32))
515 (core func (;72;) (canon future.new 7))
516 (alias core export 0 "22" (core func (;73;)))
517 (alias core export 0 "23" (core func (;74;)))
518 (core func (;75;) (canon future.cancel-read 7))
519 (core func (;76;) (canon future.cancel-write 7))
520 (core func (;77;) (canon future.drop-readable 7))
521 (core func (;78;) (canon future.drop-writable 7))
522 (type (;8;) (future 7))
523 (core func (;79;) (canon future.new 8))
524 (alias core export 0 "24" (core func (;80;)))
525 (alias core export 0 "25" (core func (;81;)))
526 (core func (;82;) (canon future.cancel-read 8))
527 (core func (;83;) (canon future.cancel-write 8))
528 (core func (;84;) (canon future.drop-readable 8))
529 (core func (;85;) (canon future.drop-writable 8))
530 (core instance (;4;)
531 (export "[stream-new-2]foo" (func 65))
532 (export "[stream-read-2]foo" (func 66))
533 (export "[stream-write-2]foo" (func 67))
534 (export "[stream-cancel-read-2]foo" (func 68))
535 (export "[stream-cancel-write-2]foo" (func 69))
536 (export "[stream-drop-readable-2]foo" (func 70))
537 (export "[stream-drop-writable-2]foo" (func 71))
538 (export "[future-new-0]foo" (func 72))
539 (export "[future-read-0]foo" (func 73))
540 (export "[future-write-0]foo" (func 74))
541 (export "[future-cancel-read-0]foo" (func 75))
542 (export "[future-cancel-write-0]foo" (func 76))
543 (export "[future-drop-readable-0]foo" (func 77))
544 (export "[future-drop-writable-0]foo" (func 78))
545 (export "[future-new-1]foo" (func 79))
546 (export "[future-read-1]foo" (func 80))
547 (export "[future-write-1]foo" (func 81))
548 (export "[future-cancel-read-1]foo" (func 82))
549 (export "[future-cancel-write-1]foo" (func 83))
550 (export "[future-drop-readable-1]foo" (func 84))
551 (export "[future-drop-writable-1]foo" (func 85))
552 )
553 (core instance (;5;) (instantiate 0
554 (with "$root" (instance 1))
555 (with "foo:foo/bar" (instance 2))
556 (with "[export]$root" (instance 3))
557 (with "[export]foo:foo/bar" (instance 4))
558 )
559 )
560 (alias core export 5 "memory" (core memory (;0;)))
561 (alias core export 0 "$imports" (core table (;0;)))
562 (alias core export 5 "cabi_realloc" (core func (;86;)))
563 (core func (;87;) (canon lower (func 0) (memory 0) async))
564 (core func (;88;) (canon stream.read 3 (memory 0) (realloc 86) string-encoding=utf8))
565 (core func (;89;) (canon stream.write 3 (memory 0) string-encoding=utf8))
566 (core func (;90;) (canon future.read 1 (memory 0)))
567 (core func (;91;) (canon future.write 1 (memory 0)))
568 (core func (;92;) (canon future.read 2 (memory 0)))
569 (core func (;93;) (canon future.write 2 (memory 0)))
570 (alias export 0 "foo" (func (;1;)))
571 (core func (;94;) (canon lower (func 1) (memory 0) async))
572 (core func (;95;) (canon stream.read 3 (memory 0) (realloc 86) string-encoding=utf8))
573 (core func (;96;) (canon stream.write 3 (memory 0) string-encoding=utf8))
574 (core func (;97;) (canon future.read 1 (memory 0)))
575 (core func (;98;) (canon future.write 1 (memory 0)))
576 (core func (;99;) (canon future.read 5 (memory 0)))
577 (core func (;100;) (canon future.write 5 (memory 0)))
578 (core func (;101;) (canon stream.read 3 (memory 0) (realloc 86) string-encoding=utf8))
579 (core func (;102;) (canon stream.write 3 (memory 0) string-encoding=utf8))
580 (core func (;103;) (canon future.read 1 (memory 0)))
581 (core func (;104;) (canon future.write 1 (memory 0)))
582 (core func (;105;) (canon future.read 2 (memory 0)))
583 (core func (;106;) (canon future.write 2 (memory 0)))
584 (core func (;107;) (canon stream.read 6 (memory 0) (realloc 86) string-encoding=utf8))
585 (core func (;108;) (canon stream.write 6 (memory 0) string-encoding=utf8))
586 (core func (;109;) (canon future.read 7 (memory 0)))
587 (core func (;110;) (canon future.write 7 (memory 0)))
588 (core func (;111;) (canon future.read 8 (memory 0)))
589 (core func (;112;) (canon future.write 8 (memory 0)))
590 (core instance (;6;)
591 (export "$imports" (table 0))
592 (export "0" (func 87))
593 (export "1" (func 88))
594 (export "2" (func 89))
595 (export "3" (func 90))
596 (export "4" (func 91))
597 (export "5" (func 92))
598 (export "6" (func 93))
599 (export "7" (func 94))
600 (export "8" (func 95))
601 (export "9" (func 96))
602 (export "10" (func 97))
603 (export "11" (func 98))
604 (export "12" (func 99))
605 (export "13" (func 100))
606 (export "14" (func 101))
607 (export "15" (func 102))
608 (export "16" (func 103))
609 (export "17" (func 104))
610 (export "18" (func 105))
611 (export "19" (func 106))
612 (export "20" (func 107))
613 (export "21" (func 108))
614 (export "22" (func 109))
615 (export "23" (func 110))
616 (export "24" (func 111))
617 (export "25" (func 112))
618 )
619 (core instance (;7;) (instantiate 2
620 (with "" (instance 6))
621 )
622 )
623 (alias core export 5 "[async-lift-stackful]foo" (core func (;113;)))
624 (func (;2;) (type 4) (canon lift (core func 113) async))
625 (export (;3;) "foo" (func 2))
626 (type (;9;) (func (param "x" 8) (param "y" u32) (result 6)))
627 (alias core export 5 "[async-lift-stackful]foo:foo/bar#foo" (core func (;114;)))
628 (func (;4;) (type 9) (canon lift (core func 114) async))
629 (component (;0;)
630 (type (;0;) (future u32))
631 (type (;1;) (future 0))
632 (type (;2;) (stream string))
633 (type (;3;) (func (param "x" 1) (param "y" u32) (result 2)))
634 (import "import-func-foo" (func (;0;) (type 3)))
635 (type (;4;) (future u32))
636 (type (;5;) (future 4))
637 (type (;6;) (stream string))
638 (type (;7;) (func (param "x" 5) (param "y" u32) (result 6)))
639 (export (;1;) "foo" (func 0) (func (type 7)))
640 )
641 (instance (;1;) (instantiate 0
642 (with "import-func-foo" (func 4))
643 )
644 )
645 (export (;2;) "foo:foo/bar" (instance 1))
646 (@producers
647 (processed-by "wit-component" "$CARGO_PKG_VERSION")
648 )
649 )