Debian Codegraph @

tests/snapshots/testsuite/return.wast/0.print

raw
1 (module
2 (type $sig (;0;) (func (param i32 i32 i32) (result i32)))
3 (type (;1;) (func))
4 (type (;2;) (func (result i32)))
5 (type (;3;) (func (result i64)))
6 (type (;4;) (func (result f32)))
7 (type (;5;) (func (result f64)))
8 (type (;6;) (func (param i32 i32) (result i32)))
9 (table (;0;) 1 1 funcref)
10 (memory (;0;) 1)
11 (global $a (;0;) (mut i32) i32.const 0)
12 (export "type-i32" (func 1))
13 (export "type-i64" (func 2))
14 (export "type-f32" (func 3))
15 (export "type-f64" (func 4))
16 (export "type-i32-value" (func 5))
17 (export "type-i64-value" (func 6))
18 (export "type-f32-value" (func 7))
19 (export "type-f64-value" (func 8))
20 (export "nullary" (func 9))
21 (export "unary" (func 10))
22 (export "as-func-first" (func 11))
23 (export "as-func-mid" (func 12))
24 (export "as-func-last" (func 13))
25 (export "as-func-value" (func 14))
26 (export "as-block-first" (func 15))
27 (export "as-block-mid" (func 16))
28 (export "as-block-last" (func 17))
29 (export "as-block-value" (func 18))
30 (export "as-loop-first" (func 19))
31 (export "as-loop-mid" (func 20))
32 (export "as-loop-last" (func 21))
33 (export "as-br-value" (func 22))
34 (export "as-br_if-cond" (func 23))
35 (export "as-br_if-value" (func 24))
36 (export "as-br_if-value-cond" (func 25))
37 (export "as-br_table-index" (func 26))
38 (export "as-br_table-value" (func 27))
39 (export "as-br_table-value-index" (func 28))
40 (export "as-return-value" (func 29))
41 (export "as-if-cond" (func 30))
42 (export "as-if-then" (func 31))
43 (export "as-if-else" (func 32))
44 (export "as-select-first" (func 33))
45 (export "as-select-second" (func 34))
46 (export "as-select-cond" (func 35))
47 (export "as-call-first" (func 37))
48 (export "as-call-mid" (func 38))
49 (export "as-call-last" (func 39))
50 (export "as-call_indirect-func" (func 40))
51 (export "as-call_indirect-first" (func 41))
52 (export "as-call_indirect-mid" (func 42))
53 (export "as-call_indirect-last" (func 43))
54 (export "as-local.set-value" (func 44))
55 (export "as-local.tee-value" (func 45))
56 (export "as-global.set-value" (func 46))
57 (export "as-load-address" (func 47))
58 (export "as-loadN-address" (func 48))
59 (export "as-store-address" (func 49))
60 (export "as-store-value" (func 50))
61 (export "as-storeN-address" (func 51))
62 (export "as-storeN-value" (func 52))
63 (export "as-unary-operand" (func 53))
64 (export "as-binary-left" (func 54))
65 (export "as-binary-right" (func 55))
66 (export "as-test-operand" (func 56))
67 (export "as-compare-left" (func 57))
68 (export "as-compare-right" (func 58))
69 (export "as-convert-operand" (func 59))
70 (export "as-memory.grow-size" (func 60))
71 (elem (;0;) (table 0) (i32.const 0) func $f)
72 (func $dummy (;0;) (type 1))
73 (func (;1;) (type 1)
74 return
75 i32.ctz
76 drop
77 )
78 (func (;2;) (type 1)
79 return
80 i64.ctz
81 drop
82 )
83 (func (;3;) (type 1)
84 return
85 f32.neg
86 drop
87 )
88 (func (;4;) (type 1)
89 return
90 f64.neg
91 drop
92 )
93 (func (;5;) (type 2) (result i32)
94 block (result i32) ;; label = @1
95 i32.const 1
96 return
97 i32.ctz
98 end
99 )
100 (func (;6;) (type 3) (result i64)
101 block (result i64) ;; label = @1
102 i64.const 2
103 return
104 i64.ctz
105 end
106 )
107 (func (;7;) (type 4) (result f32)
108 block (result f32) ;; label = @1
109 f32.const 0x1.8p+1 (;=3;)
110 return
111 f32.neg
112 end
113 )
114 (func (;8;) (type 5) (result f64)
115 block (result f64) ;; label = @1
116 f64.const 0x1p+2 (;=4;)
117 return
118 f64.neg
119 end
120 )
121 (func (;9;) (type 1)
122 return
123 )
124 (func (;10;) (type 5) (result f64)
125 f64.const 0x1.8p+1 (;=3;)
126 return
127 )
128 (func (;11;) (type 2) (result i32)
129 i32.const 1
130 return
131 i32.const 2
132 )
133 (func (;12;) (type 2) (result i32)
134 call $dummy
135 i32.const 2
136 return
137 i32.const 3
138 )
139 (func (;13;) (type 1)
140 nop
141 call $dummy
142 return
143 )
144 (func (;14;) (type 2) (result i32)
145 nop
146 call $dummy
147 i32.const 3
148 return
149 )
150 (func (;15;) (type 1)
151 block ;; label = @1
152 return
153 call $dummy
154 end
155 )
156 (func (;16;) (type 1)
157 block ;; label = @1
158 call $dummy
159 return
160 call $dummy
161 end
162 )
163 (func (;17;) (type 1)
164 block ;; label = @1
165 nop
166 call $dummy
167 return
168 end
169 )
170 (func (;18;) (type 2) (result i32)
171 block (result i32) ;; label = @1
172 nop
173 call $dummy
174 i32.const 2
175 return
176 end
177 )
178 (func (;19;) (type 2) (result i32)
179 loop (result i32) ;; label = @1
180 i32.const 3
181 return
182 i32.const 2
183 end
184 )
185 (func (;20;) (type 2) (result i32)
186 loop (result i32) ;; label = @1
187 call $dummy
188 i32.const 4
189 return
190 i32.const 2
191 end
192 )
193 (func (;21;) (type 2) (result i32)
194 loop (result i32) ;; label = @1
195 nop
196 call $dummy
197 i32.const 5
198 return
199 end
200 )
201 (func (;22;) (type 2) (result i32)
202 block (result i32) ;; label = @1
203 i32.const 9
204 return
205 br 0 (;@1;)
206 end
207 )
208 (func (;23;) (type 1)
209 block ;; label = @1
210 return
211 br_if 0 (;@1;)
212 end
213 )
214 (func (;24;) (type 2) (result i32)
215 block (result i32) ;; label = @1
216 i32.const 8
217 return
218 i32.const 1
219 br_if 0 (;@1;)
220 drop
221 i32.const 7
222 end
223 )
224 (func (;25;) (type 2) (result i32)
225 block (result i32) ;; label = @1
226 i32.const 6
227 i32.const 9
228 return
229 br_if 0 (;@1;)
230 drop
231 i32.const 7
232 end
233 )
234 (func (;26;) (type 3) (result i64)
235 block ;; label = @1
236 i64.const 9
237 return
238 br_table 0 (;@1;) 0 (;@1;) 0 (;@1;)
239 end
240 i64.const -1
241 )
242 (func (;27;) (type 2) (result i32)
243 block (result i32) ;; label = @1
244 i32.const 10
245 return
246 i32.const 1
247 br_table 0 (;@1;) 0 (;@1;) 0 (;@1;)
248 i32.const 7
249 end
250 )
251 (func (;28;) (type 2) (result i32)
252 block (result i32) ;; label = @1
253 i32.const 6
254 i32.const 11
255 return
256 br_table 0 (;@1;) 0 (;@1;)
257 i32.const 7
258 end
259 )
260 (func (;29;) (type 3) (result i64)
261 i64.const 7
262 return
263 return
264 )
265 (func (;30;) (type 2) (result i32)
266 i32.const 2
267 return
268 if (result i32) ;; label = @1
269 i32.const 0
270 else
271 i32.const 1
272 end
273 )
274 (func (;31;) (type 6) (param i32 i32) (result i32)
275 local.get 0
276 if (result i32) ;; label = @1
277 i32.const 3
278 return
279 else
280 local.get 1
281 end
282 )
283 (func (;32;) (type 6) (param i32 i32) (result i32)
284 local.get 0
285 if (result i32) ;; label = @1
286 local.get 1
287 else
288 i32.const 4
289 return
290 end
291 )
292 (func (;33;) (type 6) (param i32 i32) (result i32)
293 i32.const 5
294 return
295 local.get 0
296 local.get 1
297 select
298 )
299 (func (;34;) (type 6) (param i32 i32) (result i32)
300 local.get 0
301 i32.const 6
302 return
303 local.get 1
304 select
305 )
306 (func (;35;) (type 2) (result i32)
307 i32.const 0
308 i32.const 1
309 i32.const 7
310 return
311 select
312 )
313 (func $f (;36;) (type $sig) (param i32 i32 i32) (result i32)
314 i32.const -1
315 )
316 (func (;37;) (type 2) (result i32)
317 i32.const 12
318 return
319 i32.const 2
320 i32.const 3
321 call $f
322 )
323 (func (;38;) (type 2) (result i32)
324 i32.const 1
325 i32.const 13
326 return
327 i32.const 3
328 call $f
329 )
330 (func (;39;) (type 2) (result i32)
331 i32.const 1
332 i32.const 2
333 i32.const 14
334 return
335 call $f
336 )
337 (func (;40;) (type 2) (result i32)
338 i32.const 20
339 return
340 i32.const 1
341 i32.const 2
342 i32.const 3
343 call_indirect (type $sig)
344 )
345 (func (;41;) (type 2) (result i32)
346 i32.const 0
347 i32.const 21
348 return
349 i32.const 2
350 i32.const 3
351 call_indirect (type $sig)
352 )
353 (func (;42;) (type 2) (result i32)
354 i32.const 0
355 i32.const 1
356 i32.const 22
357 return
358 i32.const 3
359 call_indirect (type $sig)
360 )
361 (func (;43;) (type 2) (result i32)
362 i32.const 0
363 i32.const 1
364 i32.const 2
365 i32.const 23
366 return
367 call_indirect (type $sig)
368 )
369 (func (;44;) (type 2) (result i32)
370 (local f32)
371 i32.const 17
372 return
373 local.set 0
374 i32.const -1
375 )
376 (func (;45;) (type 2) (result i32)
377 (local i32)
378 i32.const 1
379 return
380 local.tee 0
381 )
382 (func (;46;) (type 2) (result i32)
383 i32.const 1
384 return
385 global.set $a
386 )
387 (func (;47;) (type 4) (result f32)
388 f32.const 0x1.b33334p+0 (;=1.7;)
389 return
390 f32.load
391 )
392 (func (;48;) (type 3) (result i64)
393 i64.const 30
394 return
395 i64.load8_s
396 )
397 (func (;49;) (type 2) (result i32)
398 i32.const 30
399 return
400 f64.const 0x1.cp+2 (;=7;)
401 f64.store
402 i32.const -1
403 )
404 (func (;50;) (type 2) (result i32)
405 i32.const 2
406 i32.const 31
407 return
408 i64.store
409 i32.const -1
410 )
411 (func (;51;) (type 2) (result i32)
412 i32.const 32
413 return
414 i32.const 7
415 i32.store8
416 i32.const -1
417 )
418 (func (;52;) (type 2) (result i32)
419 i32.const 2
420 i32.const 33
421 return
422 i64.store16
423 i32.const -1
424 )
425 (func (;53;) (type 4) (result f32)
426 f32.const 0x1.b33334p+1 (;=3.4;)
427 return
428 f32.neg
429 )
430 (func (;54;) (type 2) (result i32)
431 i32.const 3
432 return
433 i32.const 10
434 i32.add
435 )
436 (func (;55;) (type 3) (result i64)
437 i64.const 10
438 i64.const 45
439 return
440 i64.sub
441 )
442 (func (;56;) (type 2) (result i32)
443 i32.const 44
444 return
445 i32.eqz
446 )
447 (func (;57;) (type 2) (result i32)
448 i32.const 43
449 return
450 f64.const 0x1.4p+3 (;=10;)
451 f64.le
452 )
453 (func (;58;) (type 2) (result i32)
454 f32.const 0x1.4p+3 (;=10;)
455 i32.const 42
456 return
457 f32.ne
458 )
459 (func (;59;) (type 2) (result i32)
460 i32.const 41
461 return
462 i32.wrap_i64
463 )
464 (func (;60;) (type 2) (result i32)
465 i32.const 40
466 return
467 memory.grow
468 )
469 )