Debian Codegraph @

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

raw
1 (module
2 (type $check (;0;) (func (param i32 i32) (result i32)))
3 (type (;1;) (func (result i32)))
4 (type (;2;) (func (result i64)))
5 (type (;3;) (func (result f32)))
6 (type (;4;) (func (result f64)))
7 (type (;5;) (func (result i32 i64)))
8 (type (;6;) (func (param i32) (result i32)))
9 (type (;7;) (func (param i64) (result i64)))
10 (type (;8;) (func (param f32) (result f32)))
11 (type (;9;) (func (param f64) (result f64)))
12 (type (;10;) (func (param i32 f64) (result i32 f64)))
13 (type (;11;) (func (param i32 i32) (result i32 i32)))
14 (type (;12;) (func (param f32 f64) (result f64 f32)))
15 (type (;13;) (func (param f64 i32) (result i32 f64)))
16 (type (;14;) (func (param f32 i32) (result i32)))
17 (type (;15;) (func (param i32 i64) (result i64)))
18 (type (;16;) (func (param f64 f32) (result f32)))
19 (type (;17;) (func (param i64 f64) (result f64)))
20 (type (;18;) (func (result i32 f64)))
21 (type (;19;) (func (result i32 i32)))
22 (type (;20;) (func (result f64 f32)))
23 (type (;21;) (func (param i64 i64) (result i64)))
24 (type (;22;) (func (param i64) (result i32)))
25 (type (;23;) (func))
26 (type (;24;) (func (param f32 i32 i32 f64 f32 f32 f32 f64 f32 i32 i32 f32 f64 i64 i64 i32 i64 i64 f32 i64 i64 i64 i32 f32 f32 f32 f64 f32 i32 i64 f32 f64 f64 f32 i32 f32 f32 f64 i64 f64 i32 i64 f32 f64 i32 i32 i32 i64 f64 i32 i64 i64 f64 f64 f64 f64 f64 f64 i32 f32 f64 f64 i32 i64 f32 f32 f32 i32 f64 f64 f64 f64 f64 f32 i64 i64 i32 i32 i32 f32 f64 i32 i64 f32 f32 f32 i32 i32 f32 f64 i64 f32 f64 f32 f32 f32 i32 f32 i64 i32) (result i32)))
27 (table (;0;) 1 1 funcref)
28 (memory (;0;) 1)
29 (global $a (;0;) (mut i32) i32.const 10)
30 (export "type-i32" (func 17))
31 (export "type-i64" (func 18))
32 (export "type-f32" (func 19))
33 (export "type-f64" (func 20))
34 (export "type-i32-i64" (func 21))
35 (export "type-first-i32" (func 22))
36 (export "type-first-i64" (func 23))
37 (export "type-first-f32" (func 24))
38 (export "type-first-f64" (func 25))
39 (export "type-second-i32" (func 26))
40 (export "type-second-i64" (func 27))
41 (export "type-second-f32" (func 28))
42 (export "type-second-f64" (func 29))
43 (export "type-all-i32-f64" (func 30))
44 (export "type-all-i32-i32" (func 31))
45 (export "type-all-f32-f64" (func 32))
46 (export "type-all-f64-i32" (func 33))
47 (export "as-binary-all-operands" (func 34))
48 (export "as-mixed-operands" (func 35))
49 (export "as-call-all-operands" (func 36))
50 (export "fac" (func $fac))
51 (export "fac-acc" (func $fac-acc))
52 (export "fib" (func $fib))
53 (export "even" (func $even))
54 (export "odd" (func $odd))
55 (export "runaway" (func $runaway))
56 (export "mutual-runaway" (func $mutual-runaway1))
57 (export "as-select-first" (func 45))
58 (export "as-select-mid" (func 46))
59 (export "as-select-last" (func 47))
60 (export "as-if-condition" (func 48))
61 (export "as-br_if-first" (func 49))
62 (export "as-br_if-last" (func 50))
63 (export "as-br_table-first" (func 51))
64 (export "as-br_table-last" (func 52))
65 (export "as-call_indirect-first" (func 54))
66 (export "as-call_indirect-mid" (func 55))
67 (export "as-call_indirect-last" (func 56))
68 (export "as-store-first" (func 57))
69 (export "as-store-last" (func 58))
70 (export "as-memory.grow-value" (func 59))
71 (export "as-return-value" (func 60))
72 (export "as-drop-operand" (func 61))
73 (export "as-br-value" (func 62))
74 (export "as-local.set-value" (func 63))
75 (export "as-local.tee-value" (func 64))
76 (export "as-global.set-value" (func 65))
77 (export "as-load-operand" (func 66))
78 (export "as-unary-operand" (func 69))
79 (export "as-binary-left" (func 70))
80 (export "as-binary-right" (func 71))
81 (export "as-test-operand" (func 72))
82 (export "as-compare-left" (func 73))
83 (export "as-compare-right" (func 74))
84 (export "as-convert-operand" (func 75))
85 (export "return-from-long-argument-list" (func 77))
86 (elem (;0;) (table 0) (i32.const 0) func $func)
87 (func $const-i32 (;0;) (type 1) (result i32)
88 i32.const 306
89 )
90 (func $const-i64 (;1;) (type 2) (result i64)
91 i64.const 356
92 )
93 (func $const-f32 (;2;) (type 3) (result f32)
94 f32.const 0x1.e64p+11 (;=3890;)
95 )
96 (func $const-f64 (;3;) (type 4) (result f64)
97 f64.const 0x1.ec8p+11 (;=3940;)
98 )
99 (func $const-i32-i64 (;4;) (type 5) (result i32 i64)
100 i32.const 306
101 i64.const 356
102 )
103 (func $id-i32 (;5;) (type 6) (param i32) (result i32)
104 local.get 0
105 )
106 (func $id-i64 (;6;) (type 7) (param i64) (result i64)
107 local.get 0
108 )
109 (func $id-f32 (;7;) (type 8) (param f32) (result f32)
110 local.get 0
111 )
112 (func $id-f64 (;8;) (type 9) (param f64) (result f64)
113 local.get 0
114 )
115 (func $id-i32-f64 (;9;) (type 10) (param i32 f64) (result i32 f64)
116 local.get 0
117 local.get 1
118 )
119 (func $swap-i32-i32 (;10;) (type 11) (param i32 i32) (result i32 i32)
120 local.get 1
121 local.get 0
122 )
123 (func $swap-f32-f64 (;11;) (type 12) (param f32 f64) (result f64 f32)
124 local.get 1
125 local.get 0
126 )
127 (func $swap-f64-i32 (;12;) (type 13) (param f64 i32) (result i32 f64)
128 local.get 1
129 local.get 0
130 )
131 (func $f32-i32 (;13;) (type 14) (param f32 i32) (result i32)
132 local.get 1
133 )
134 (func $i32-i64 (;14;) (type 15) (param i32 i64) (result i64)
135 local.get 1
136 )
137 (func $f64-f32 (;15;) (type 16) (param f64 f32) (result f32)
138 local.get 1
139 )
140 (func $i64-f64 (;16;) (type 17) (param i64 f64) (result f64)
141 local.get 1
142 )
143 (func (;17;) (type 1) (result i32)
144 call $const-i32
145 )
146 (func (;18;) (type 2) (result i64)
147 call $const-i64
148 )
149 (func (;19;) (type 3) (result f32)
150 call $const-f32
151 )
152 (func (;20;) (type 4) (result f64)
153 call $const-f64
154 )
155 (func (;21;) (type 5) (result i32 i64)
156 call $const-i32-i64
157 )
158 (func (;22;) (type 1) (result i32)
159 i32.const 32
160 call $id-i32
161 )
162 (func (;23;) (type 2) (result i64)
163 i64.const 64
164 call $id-i64
165 )
166 (func (;24;) (type 3) (result f32)
167 f32.const 0x1.51eb86p+0 (;=1.32;)
168 call $id-f32
169 )
170 (func (;25;) (type 4) (result f64)
171 f64.const 0x1.a3d70a3d70a3dp+0 (;=1.64;)
172 call $id-f64
173 )
174 (func (;26;) (type 1) (result i32)
175 f32.const 0x1.00ccccp+5 (;=32.1;)
176 i32.const 32
177 call $f32-i32
178 )
179 (func (;27;) (type 2) (result i64)
180 i32.const 32
181 i64.const 64
182 call $i32-i64
183 )
184 (func (;28;) (type 3) (result f32)
185 f64.const 0x1p+6 (;=64;)
186 f32.const 0x1p+5 (;=32;)
187 call $f64-f32
188 )
189 (func (;29;) (type 4) (result f64)
190 i64.const 64
191 f64.const 0x1.0066666666666p+6 (;=64.1;)
192 call $i64-f64
193 )
194 (func (;30;) (type 18) (result i32 f64)
195 i32.const 32
196 f64.const 0x1.a3d70a3d70a3dp+0 (;=1.64;)
197 call $id-i32-f64
198 )
199 (func (;31;) (type 19) (result i32 i32)
200 i32.const 1
201 i32.const 2
202 call $swap-i32-i32
203 )
204 (func (;32;) (type 20) (result f64 f32)
205 f32.const 0x1p+0 (;=1;)
206 f64.const 0x1p+1 (;=2;)
207 call $swap-f32-f64
208 )
209 (func (;33;) (type 18) (result i32 f64)
210 f64.const 0x1p+0 (;=1;)
211 i32.const 2
212 call $swap-f64-i32
213 )
214 (func (;34;) (type 1) (result i32)
215 i32.const 3
216 i32.const 4
217 call $swap-i32-i32
218 i32.add
219 )
220 (func (;35;) (type 1) (result i32)
221 i32.const 3
222 i32.const 4
223 call $swap-i32-i32
224 i32.const 5
225 i32.add
226 i32.mul
227 )
228 (func (;36;) (type 19) (result i32 i32)
229 i32.const 3
230 i32.const 4
231 call $swap-i32-i32
232 call $swap-i32-i32
233 )
234 (func $fac (;37;) (type 7) (param i64) (result i64)
235 local.get 0
236 i64.eqz
237 if (result i64) ;; label = @1
238 i64.const 1
239 else
240 local.get 0
241 local.get 0
242 i64.const 1
243 i64.sub
244 call $fac
245 i64.mul
246 end
247 )
248 (func $fac-acc (;38;) (type 21) (param i64 i64) (result i64)
249 local.get 0
250 i64.eqz
251 if (result i64) ;; label = @1
252 local.get 1
253 else
254 local.get 0
255 i64.const 1
256 i64.sub
257 local.get 0
258 local.get 1
259 i64.mul
260 call $fac-acc
261 end
262 )
263 (func $fib (;39;) (type 7) (param i64) (result i64)
264 local.get 0
265 i64.const 1
266 i64.le_u
267 if (result i64) ;; label = @1
268 i64.const 1
269 else
270 local.get 0
271 i64.const 2
272 i64.sub
273 call $fib
274 local.get 0
275 i64.const 1
276 i64.sub
277 call $fib
278 i64.add
279 end
280 )
281 (func $even (;40;) (type 22) (param i64) (result i32)
282 local.get 0
283 i64.eqz
284 if (result i32) ;; label = @1
285 i32.const 44
286 else
287 local.get 0
288 i64.const 1
289 i64.sub
290 call $odd
291 end
292 )
293 (func $odd (;41;) (type 22) (param i64) (result i32)
294 local.get 0
295 i64.eqz
296 if (result i32) ;; label = @1
297 i32.const 99
298 else
299 local.get 0
300 i64.const 1
301 i64.sub
302 call $even
303 end
304 )
305 (func $runaway (;42;) (type 23)
306 call $runaway
307 )
308 (func $mutual-runaway1 (;43;) (type 23)
309 call $mutual-runaway2
310 )
311 (func $mutual-runaway2 (;44;) (type 23)
312 call $mutual-runaway1
313 )
314 (func (;45;) (type 1) (result i32)
315 call $const-i32
316 i32.const 2
317 i32.const 3
318 select
319 )
320 (func (;46;) (type 1) (result i32)
321 i32.const 2
322 call $const-i32
323 i32.const 3
324 select
325 )
326 (func (;47;) (type 1) (result i32)
327 i32.const 2
328 i32.const 3
329 call $const-i32
330 select
331 )
332 (func (;48;) (type 1) (result i32)
333 call $const-i32
334 if (result i32) ;; label = @1
335 i32.const 1
336 else
337 i32.const 2
338 end
339 )
340 (func (;49;) (type 1) (result i32)
341 block (result i32) ;; label = @1
342 call $const-i32
343 i32.const 2
344 br_if 0 (;@1;)
345 end
346 )
347 (func (;50;) (type 1) (result i32)
348 block (result i32) ;; label = @1
349 i32.const 2
350 call $const-i32
351 br_if 0 (;@1;)
352 end
353 )
354 (func (;51;) (type 1) (result i32)
355 block (result i32) ;; label = @1
356 call $const-i32
357 i32.const 2
358 br_table 0 (;@1;) 0 (;@1;)
359 end
360 )
361 (func (;52;) (type 1) (result i32)
362 block (result i32) ;; label = @1
363 i32.const 2
364 call $const-i32
365 br_table 0 (;@1;) 0 (;@1;)
366 end
367 )
368 (func $func (;53;) (type $check) (param i32 i32) (result i32)
369 local.get 0
370 )
371 (func (;54;) (type 1) (result i32)
372 block (result i32) ;; label = @1
373 call $const-i32
374 i32.const 2
375 i32.const 0
376 call_indirect (type $check)
377 end
378 )
379 (func (;55;) (type 1) (result i32)
380 block (result i32) ;; label = @1
381 i32.const 2
382 call $const-i32
383 i32.const 0
384 call_indirect (type $check)
385 end
386 )
387 (func (;56;) (type 1) (result i32)
388 block (result i32) ;; label = @1
389 i32.const 1
390 i32.const 2
391 call $const-i32
392 call_indirect (type $check)
393 end
394 )
395 (func (;57;) (type 23)
396 call $const-i32
397 i32.const 1
398 i32.store
399 )
400 (func (;58;) (type 23)
401 i32.const 10
402 call $const-i32
403 i32.store
404 )
405 (func (;59;) (type 1) (result i32)
406 call $const-i32
407 memory.grow
408 )
409 (func (;60;) (type 1) (result i32)
410 call $const-i32
411 return
412 )
413 (func (;61;) (type 23)
414 call $const-i32
415 drop
416 )
417 (func (;62;) (type 1) (result i32)
418 block (result i32) ;; label = @1
419 call $const-i32
420 br 0 (;@1;)
421 end
422 )
423 (func (;63;) (type 1) (result i32)
424 (local i32)
425 call $const-i32
426 local.set 0
427 local.get 0
428 )
429 (func (;64;) (type 1) (result i32)
430 (local i32)
431 call $const-i32
432 local.tee 0
433 )
434 (func (;65;) (type 1) (result i32)
435 call $const-i32
436 global.set $a
437 global.get $a
438 )
439 (func (;66;) (type 1) (result i32)
440 call $const-i32
441 i32.load
442 )
443 (func $dummy (;67;) (type 6) (param i32) (result i32)
444 local.get 0
445 )
446 (func $du (;68;) (type 8) (param f32) (result f32)
447 local.get 0
448 )
449 (func (;69;) (type 3) (result f32)
450 block (result f32) ;; label = @1
451 f32.const 0x0p+0 (;=0;)
452 call $du
453 f32.sqrt
454 end
455 )
456 (func (;70;) (type 1) (result i32)
457 block (result i32) ;; label = @1
458 i32.const 1
459 call $dummy
460 i32.const 10
461 i32.add
462 end
463 )
464 (func (;71;) (type 1) (result i32)
465 block (result i32) ;; label = @1
466 i32.const 10
467 i32.const 1
468 call $dummy
469 i32.sub
470 end
471 )
472 (func (;72;) (type 1) (result i32)
473 block (result i32) ;; label = @1
474 i32.const 1
475 call $dummy
476 i32.eqz
477 end
478 )
479 (func (;73;) (type 1) (result i32)
480 block (result i32) ;; label = @1
481 i32.const 1
482 call $dummy
483 i32.const 10
484 i32.le_u
485 end
486 )
487 (func (;74;) (type 1) (result i32)
488 block (result i32) ;; label = @1
489 i32.const 10
490 i32.const 1
491 call $dummy
492 i32.ne
493 end
494 )
495 (func (;75;) (type 2) (result i64)
496 block (result i64) ;; label = @1
497 i32.const 1
498 call $dummy
499 i64.extend_i32_s
500 end
501 )
502 (func $return-from-long-argument-list-helper (;76;) (type 24) (param f32 i32 i32 f64 f32 f32 f32 f64 f32 i32 i32 f32 f64 i64 i64 i32 i64 i64 f32 i64 i64 i64 i32 f32 f32 f32 f64 f32 i32 i64 f32 f64 f64 f32 i32 f32 f32 f64 i64 f64 i32 i64 f32 f64 i32 i32 i32 i64 f64 i32 i64 i64 f64 f64 f64 f64 f64 f64 i32 f32 f64 f64 i32 i64 f32 f32 f32 i32 f64 f64 f64 f64 f64 f32 i64 i64 i32 i32 i32 f32 f64 i32 i64 f32 f32 f32 i32 i32 f32 f64 i64 f32 f64 f32 f32 f32 i32 f32 i64 i32) (result i32)
503 local.get 99
504 )
505 (func (;77;) (type 6) (param i32) (result i32)
506 f32.const 0x0p+0 (;=0;)
507 i32.const 0
508 i32.const 0
509 f64.const 0x0p+0 (;=0;)
510 f32.const 0x0p+0 (;=0;)
511 f32.const 0x0p+0 (;=0;)
512 f32.const 0x0p+0 (;=0;)
513 f64.const 0x0p+0 (;=0;)
514 f32.const 0x0p+0 (;=0;)
515 i32.const 0
516 i32.const 0
517 f32.const 0x0p+0 (;=0;)
518 f64.const 0x0p+0 (;=0;)
519 i64.const 0
520 i64.const 0
521 i32.const 0
522 i64.const 0
523 i64.const 0
524 f32.const 0x0p+0 (;=0;)
525 i64.const 0
526 i64.const 0
527 i64.const 0
528 i32.const 0
529 f32.const 0x0p+0 (;=0;)
530 f32.const 0x0p+0 (;=0;)
531 f32.const 0x0p+0 (;=0;)
532 f64.const 0x0p+0 (;=0;)
533 f32.const 0x0p+0 (;=0;)
534 i32.const 0
535 i64.const 0
536 f32.const 0x0p+0 (;=0;)
537 f64.const 0x0p+0 (;=0;)
538 f64.const 0x0p+0 (;=0;)
539 f32.const 0x0p+0 (;=0;)
540 i32.const 0
541 f32.const 0x0p+0 (;=0;)
542 f32.const 0x0p+0 (;=0;)
543 f64.const 0x0p+0 (;=0;)
544 i64.const 0
545 f64.const 0x0p+0 (;=0;)
546 i32.const 0
547 i64.const 0
548 f32.const 0x0p+0 (;=0;)
549 f64.const 0x0p+0 (;=0;)
550 i32.const 0
551 i32.const 0
552 i32.const 0
553 i64.const 0
554 f64.const 0x0p+0 (;=0;)
555 i32.const 0
556 i64.const 0
557 i64.const 0
558 f64.const 0x0p+0 (;=0;)
559 f64.const 0x0p+0 (;=0;)
560 f64.const 0x0p+0 (;=0;)
561 f64.const 0x0p+0 (;=0;)
562 f64.const 0x0p+0 (;=0;)
563 f64.const 0x0p+0 (;=0;)
564 i32.const 0
565 f32.const 0x0p+0 (;=0;)
566 f64.const 0x0p+0 (;=0;)
567 f64.const 0x0p+0 (;=0;)
568 i32.const 0
569 i64.const 0
570 f32.const 0x0p+0 (;=0;)
571 f32.const 0x0p+0 (;=0;)
572 f32.const 0x0p+0 (;=0;)
573 i32.const 0
574 f64.const 0x0p+0 (;=0;)
575 f64.const 0x0p+0 (;=0;)
576 f64.const 0x0p+0 (;=0;)
577 f64.const 0x0p+0 (;=0;)
578 f64.const 0x0p+0 (;=0;)
579 f32.const 0x0p+0 (;=0;)
580 i64.const 0
581 i64.const 0
582 i32.const 0
583 i32.const 0
584 i32.const 0
585 f32.const 0x0p+0 (;=0;)
586 f64.const 0x0p+0 (;=0;)
587 i32.const 0
588 i64.const 0
589 f32.const 0x0p+0 (;=0;)
590 f32.const 0x0p+0 (;=0;)
591 f32.const 0x0p+0 (;=0;)
592 i32.const 0
593 i32.const 0
594 f32.const 0x0p+0 (;=0;)
595 f64.const 0x0p+0 (;=0;)
596 i64.const 0
597 f32.const 0x0p+0 (;=0;)
598 f64.const 0x0p+0 (;=0;)
599 f32.const 0x0p+0 (;=0;)
600 f32.const 0x0p+0 (;=0;)
601 f32.const 0x0p+0 (;=0;)
602 i32.const 0
603 f32.const 0x0p+0 (;=0;)
604 i64.const 0
605 local.get 0
606 call $return-from-long-argument-list-helper
607 )
608 )