Debian Codegraph @

tests/snapshots/testsuite/br.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 (result f64 f64)))
9 (type (;7;) (func (result i32 i64)))
10 (type (;8;) (func (param i32 i32) (result i32)))
11 (table (;0;) 1 1 funcref)
12 (memory (;0;) 1)
13 (global $a (;0;) (mut i32) i32.const 10)
14 (export "type-i32" (func 1))
15 (export "type-i64" (func 2))
16 (export "type-f32" (func 3))
17 (export "type-f64" (func 4))
18 (export "type-i32-i32" (func 5))
19 (export "type-i64-i64" (func 6))
20 (export "type-f32-f32" (func 7))
21 (export "type-f64-f64" (func 8))
22 (export "type-i32-value" (func 9))
23 (export "type-i64-value" (func 10))
24 (export "type-f32-value" (func 11))
25 (export "type-f64-value" (func 12))
26 (export "type-f64-f64-value" (func 13))
27 (export "as-block-first" (func 14))
28 (export "as-block-mid" (func 15))
29 (export "as-block-last" (func 16))
30 (export "as-block-value" (func 17))
31 (export "as-loop-first" (func 18))
32 (export "as-loop-mid" (func 19))
33 (export "as-loop-last" (func 20))
34 (export "as-br-value" (func 21))
35 (export "as-br_if-cond" (func 22))
36 (export "as-br_if-value" (func 23))
37 (export "as-br_if-value-cond" (func 24))
38 (export "as-br_table-index" (func 25))
39 (export "as-br_table-value" (func 26))
40 (export "as-br_table-value-index" (func 27))
41 (export "as-return-value" (func 28))
42 (export "as-return-values" (func 29))
43 (export "as-if-cond" (func 30))
44 (export "as-if-then" (func 31))
45 (export "as-if-else" (func 32))
46 (export "as-select-first" (func 33))
47 (export "as-select-second" (func 34))
48 (export "as-select-cond" (func 35))
49 (export "as-select-all" (func 36))
50 (export "as-call-first" (func 38))
51 (export "as-call-mid" (func 39))
52 (export "as-call-last" (func 40))
53 (export "as-call-all" (func 41))
54 (export "as-call_indirect-func" (func 42))
55 (export "as-call_indirect-first" (func 43))
56 (export "as-call_indirect-mid" (func 44))
57 (export "as-call_indirect-last" (func 45))
58 (export "as-call_indirect-all" (func 46))
59 (export "as-local.set-value" (func 47))
60 (export "as-local.tee-value" (func 48))
61 (export "as-global.set-value" (func 49))
62 (export "as-load-address" (func 50))
63 (export "as-loadN-address" (func 51))
64 (export "as-store-address" (func 52))
65 (export "as-store-value" (func 53))
66 (export "as-store-both" (func 54))
67 (export "as-storeN-address" (func 55))
68 (export "as-storeN-value" (func 56))
69 (export "as-storeN-both" (func 57))
70 (export "as-unary-operand" (func 58))
71 (export "as-binary-left" (func 59))
72 (export "as-binary-right" (func 60))
73 (export "as-binary-both" (func 61))
74 (export "as-test-operand" (func 62))
75 (export "as-compare-left" (func 63))
76 (export "as-compare-right" (func 64))
77 (export "as-compare-both" (func 65))
78 (export "as-convert-operand" (func 66))
79 (export "as-memory.grow-size" (func 67))
80 (export "nested-block-value" (func 68))
81 (export "nested-br-value" (func 69))
82 (export "nested-br_if-value" (func 70))
83 (export "nested-br_if-value-cond" (func 71))
84 (export "nested-br_table-value" (func 72))
85 (export "nested-br_table-value-index" (func 73))
86 (elem (;0;) (table 0) (i32.const 0) func $f)
87 (func $dummy (;0;) (type 1))
88 (func (;1;) (type 1)
89 block ;; label = @1
90 br 0 (;@1;)
91 i32.ctz
92 drop
93 end
94 )
95 (func (;2;) (type 1)
96 block ;; label = @1
97 br 0 (;@1;)
98 i64.ctz
99 drop
100 end
101 )
102 (func (;3;) (type 1)
103 block ;; label = @1
104 br 0 (;@1;)
105 f32.neg
106 drop
107 end
108 )
109 (func (;4;) (type 1)
110 block ;; label = @1
111 br 0 (;@1;)
112 f64.neg
113 drop
114 end
115 )
116 (func (;5;) (type 1)
117 block ;; label = @1
118 br 0 (;@1;)
119 i32.add
120 drop
121 end
122 )
123 (func (;6;) (type 1)
124 block ;; label = @1
125 br 0 (;@1;)
126 i64.add
127 drop
128 end
129 )
130 (func (;7;) (type 1)
131 block ;; label = @1
132 br 0 (;@1;)
133 f32.add
134 drop
135 end
136 )
137 (func (;8;) (type 1)
138 block ;; label = @1
139 br 0 (;@1;)
140 f64.add
141 drop
142 end
143 )
144 (func (;9;) (type 2) (result i32)
145 block (result i32) ;; label = @1
146 i32.const 1
147 br 0 (;@1;)
148 i32.ctz
149 end
150 )
151 (func (;10;) (type 3) (result i64)
152 block (result i64) ;; label = @1
153 i64.const 2
154 br 0 (;@1;)
155 i64.ctz
156 end
157 )
158 (func (;11;) (type 4) (result f32)
159 block (result f32) ;; label = @1
160 f32.const 0x1.8p+1 (;=3;)
161 br 0 (;@1;)
162 f32.neg
163 end
164 )
165 (func (;12;) (type 5) (result f64)
166 block (result f64) ;; label = @1
167 f64.const 0x1p+2 (;=4;)
168 br 0 (;@1;)
169 f64.neg
170 end
171 )
172 (func (;13;) (type 6) (result f64 f64)
173 block (type 6) (result f64 f64) ;; label = @1
174 f64.const 0x1p+2 (;=4;)
175 f64.const 0x1.4p+2 (;=5;)
176 br 0 (;@1;)
177 f64.add
178 f64.const 0x1.8p+2 (;=6;)
179 end
180 )
181 (func (;14;) (type 1)
182 block ;; label = @1
183 br 0 (;@1;)
184 call $dummy
185 end
186 )
187 (func (;15;) (type 1)
188 block ;; label = @1
189 call $dummy
190 br 0 (;@1;)
191 call $dummy
192 end
193 )
194 (func (;16;) (type 1)
195 block ;; label = @1
196 nop
197 call $dummy
198 br 0 (;@1;)
199 end
200 )
201 (func (;17;) (type 2) (result i32)
202 block (result i32) ;; label = @1
203 nop
204 call $dummy
205 i32.const 2
206 br 0 (;@1;)
207 end
208 )
209 (func (;18;) (type 2) (result i32)
210 block (result i32) ;; label = @1
211 loop (result i32) ;; label = @2
212 i32.const 3
213 br 1 (;@1;)
214 i32.const 2
215 end
216 end
217 )
218 (func (;19;) (type 2) (result i32)
219 block (result i32) ;; label = @1
220 loop (result i32) ;; label = @2
221 call $dummy
222 i32.const 4
223 br 1 (;@1;)
224 i32.const 2
225 end
226 end
227 )
228 (func (;20;) (type 2) (result i32)
229 block (result i32) ;; label = @1
230 loop (result i32) ;; label = @2
231 nop
232 call $dummy
233 i32.const 5
234 br 1 (;@1;)
235 end
236 end
237 )
238 (func (;21;) (type 2) (result i32)
239 block (result i32) ;; label = @1
240 i32.const 9
241 br 0 (;@1;)
242 br 0 (;@1;)
243 end
244 )
245 (func (;22;) (type 1)
246 block ;; label = @1
247 br 0 (;@1;)
248 br_if 0 (;@1;)
249 end
250 )
251 (func (;23;) (type 2) (result i32)
252 block (result i32) ;; label = @1
253 i32.const 8
254 br 0 (;@1;)
255 i32.const 1
256 br_if 0 (;@1;)
257 drop
258 i32.const 7
259 end
260 )
261 (func (;24;) (type 2) (result i32)
262 block (result i32) ;; label = @1
263 i32.const 6
264 i32.const 9
265 br 0 (;@1;)
266 br_if 0 (;@1;)
267 drop
268 i32.const 7
269 end
270 )
271 (func (;25;) (type 1)
272 block ;; label = @1
273 br 0 (;@1;)
274 br_table 0 (;@1;) 0 (;@1;) 0 (;@1;)
275 end
276 )
277 (func (;26;) (type 2) (result i32)
278 block (result i32) ;; label = @1
279 i32.const 10
280 br 0 (;@1;)
281 i32.const 1
282 br_table 0 (;@1;) 0 (;@1;) 0 (;@1;)
283 i32.const 7
284 end
285 )
286 (func (;27;) (type 2) (result i32)
287 block (result i32) ;; label = @1
288 i32.const 6
289 i32.const 11
290 br 0 (;@1;)
291 br_table 0 (;@1;) 0 (;@1;)
292 i32.const 7
293 end
294 )
295 (func (;28;) (type 3) (result i64)
296 block (result i64) ;; label = @1
297 i64.const 7
298 br 0 (;@1;)
299 return
300 end
301 )
302 (func (;29;) (type 7) (result i32 i64)
303 i32.const 2
304 block (result i64) ;; label = @1
305 i32.const 1
306 i64.const 7
307 br 0 (;@1;)
308 return
309 end
310 )
311 (func (;30;) (type 2) (result i32)
312 block (result i32) ;; label = @1
313 i32.const 2
314 br 0 (;@1;)
315 if (result i32) ;; label = @2
316 i32.const 0
317 else
318 i32.const 1
319 end
320 end
321 )
322 (func (;31;) (type 8) (param i32 i32) (result i32)
323 block (result i32) ;; label = @1
324 local.get 0
325 if (result i32) ;; label = @2
326 i32.const 3
327 br 1 (;@1;)
328 else
329 local.get 1
330 end
331 end
332 )
333 (func (;32;) (type 8) (param i32 i32) (result i32)
334 block (result i32) ;; label = @1
335 local.get 0
336 if (result i32) ;; label = @2
337 local.get 1
338 else
339 i32.const 4
340 br 1 (;@1;)
341 end
342 end
343 )
344 (func (;33;) (type 8) (param i32 i32) (result i32)
345 block (result i32) ;; label = @1
346 i32.const 5
347 br 0 (;@1;)
348 local.get 0
349 local.get 1
350 select
351 end
352 )
353 (func (;34;) (type 8) (param i32 i32) (result i32)
354 block (result i32) ;; label = @1
355 local.get 0
356 i32.const 6
357 br 0 (;@1;)
358 local.get 1
359 select
360 end
361 )
362 (func (;35;) (type 2) (result i32)
363 block (result i32) ;; label = @1
364 i32.const 0
365 i32.const 1
366 i32.const 7
367 br 0 (;@1;)
368 select
369 end
370 )
371 (func (;36;) (type 2) (result i32)
372 block (result i32) ;; label = @1
373 i32.const 8
374 br 0 (;@1;)
375 select
376 end
377 )
378 (func $f (;37;) (type $sig) (param i32 i32 i32) (result i32)
379 i32.const -1
380 )
381 (func (;38;) (type 2) (result i32)
382 block (result i32) ;; label = @1
383 i32.const 12
384 br 0 (;@1;)
385 i32.const 2
386 i32.const 3
387 call $f
388 end
389 )
390 (func (;39;) (type 2) (result i32)
391 block (result i32) ;; label = @1
392 i32.const 1
393 i32.const 13
394 br 0 (;@1;)
395 i32.const 3
396 call $f
397 end
398 )
399 (func (;40;) (type 2) (result i32)
400 block (result i32) ;; label = @1
401 i32.const 1
402 i32.const 2
403 i32.const 14
404 br 0 (;@1;)
405 call $f
406 end
407 )
408 (func (;41;) (type 2) (result i32)
409 block (result i32) ;; label = @1
410 i32.const 15
411 br 0 (;@1;)
412 call $f
413 end
414 )
415 (func (;42;) (type 2) (result i32)
416 block (result i32) ;; label = @1
417 i32.const 20
418 br 0 (;@1;)
419 i32.const 1
420 i32.const 2
421 i32.const 3
422 call_indirect (type $sig)
423 end
424 )
425 (func (;43;) (type 2) (result i32)
426 block (result i32) ;; label = @1
427 i32.const 0
428 i32.const 21
429 br 0 (;@1;)
430 i32.const 2
431 i32.const 3
432 call_indirect (type $sig)
433 end
434 )
435 (func (;44;) (type 2) (result i32)
436 block (result i32) ;; label = @1
437 i32.const 0
438 i32.const 1
439 i32.const 22
440 br 0 (;@1;)
441 i32.const 3
442 call_indirect (type $sig)
443 end
444 )
445 (func (;45;) (type 2) (result i32)
446 block (result i32) ;; label = @1
447 i32.const 0
448 i32.const 1
449 i32.const 2
450 i32.const 23
451 br 0 (;@1;)
452 call_indirect (type $sig)
453 end
454 )
455 (func (;46;) (type 2) (result i32)
456 block (result i32) ;; label = @1
457 i32.const 24
458 br 0 (;@1;)
459 call_indirect (type $sig)
460 end
461 )
462 (func (;47;) (type 2) (result i32)
463 (local f32)
464 block (result i32) ;; label = @1
465 i32.const 17
466 br 0 (;@1;)
467 local.set 0
468 i32.const -1
469 end
470 )
471 (func (;48;) (type 2) (result i32)
472 (local i32)
473 block (result i32) ;; label = @1
474 i32.const 1
475 br 0 (;@1;)
476 local.tee 0
477 end
478 )
479 (func (;49;) (type 2) (result i32)
480 block (result i32) ;; label = @1
481 i32.const 1
482 br 0 (;@1;)
483 global.set $a
484 end
485 )
486 (func (;50;) (type 4) (result f32)
487 block (result f32) ;; label = @1
488 f32.const 0x1.b33334p+0 (;=1.7;)
489 br 0 (;@1;)
490 f32.load
491 end
492 )
493 (func (;51;) (type 3) (result i64)
494 block (result i64) ;; label = @1
495 i64.const 30
496 br 0 (;@1;)
497 i64.load8_s
498 end
499 )
500 (func (;52;) (type 2) (result i32)
501 block (result i32) ;; label = @1
502 i32.const 30
503 br 0 (;@1;)
504 f64.const 0x1.cp+2 (;=7;)
505 f64.store
506 i32.const -1
507 end
508 )
509 (func (;53;) (type 2) (result i32)
510 block (result i32) ;; label = @1
511 i32.const 2
512 i32.const 31
513 br 0 (;@1;)
514 i64.store
515 i32.const -1
516 end
517 )
518 (func (;54;) (type 2) (result i32)
519 block (result i32) ;; label = @1
520 i32.const 32
521 br 0 (;@1;)
522 i64.store
523 i32.const -1
524 end
525 )
526 (func (;55;) (type 2) (result i32)
527 block (result i32) ;; label = @1
528 i32.const 32
529 br 0 (;@1;)
530 i32.const 7
531 i32.store8
532 i32.const -1
533 end
534 )
535 (func (;56;) (type 2) (result i32)
536 block (result i32) ;; label = @1
537 i32.const 2
538 i32.const 33
539 br 0 (;@1;)
540 i64.store16
541 i32.const -1
542 end
543 )
544 (func (;57;) (type 2) (result i32)
545 block (result i32) ;; label = @1
546 i32.const 34
547 br 0 (;@1;)
548 i64.store16
549 i32.const -1
550 end
551 )
552 (func (;58;) (type 4) (result f32)
553 block (result f32) ;; label = @1
554 f32.const 0x1.b33334p+1 (;=3.4;)
555 br 0 (;@1;)
556 f32.neg
557 end
558 )
559 (func (;59;) (type 2) (result i32)
560 block (result i32) ;; label = @1
561 i32.const 3
562 br 0 (;@1;)
563 i32.const 10
564 i32.add
565 end
566 )
567 (func (;60;) (type 3) (result i64)
568 block (result i64) ;; label = @1
569 i64.const 10
570 i64.const 45
571 br 0 (;@1;)
572 i64.sub
573 end
574 )
575 (func (;61;) (type 2) (result i32)
576 block (result i32) ;; label = @1
577 i32.const 46
578 br 0 (;@1;)
579 i32.add
580 end
581 )
582 (func (;62;) (type 2) (result i32)
583 block (result i32) ;; label = @1
584 i32.const 44
585 br 0 (;@1;)
586 i32.eqz
587 end
588 )
589 (func (;63;) (type 2) (result i32)
590 block (result i32) ;; label = @1
591 i32.const 43
592 br 0 (;@1;)
593 f64.const 0x1.4p+3 (;=10;)
594 f64.le
595 end
596 )
597 (func (;64;) (type 2) (result i32)
598 block (result i32) ;; label = @1
599 f32.const 0x1.4p+3 (;=10;)
600 i32.const 42
601 br 0 (;@1;)
602 f32.ne
603 end
604 )
605 (func (;65;) (type 2) (result i32)
606 block (result i32) ;; label = @1
607 i32.const 44
608 br 0 (;@1;)
609 f64.le
610 end
611 )
612 (func (;66;) (type 2) (result i32)
613 block (result i32) ;; label = @1
614 i32.const 41
615 br 0 (;@1;)
616 i32.wrap_i64
617 end
618 )
619 (func (;67;) (type 2) (result i32)
620 block (result i32) ;; label = @1
621 i32.const 40
622 br 0 (;@1;)
623 memory.grow
624 end
625 )
626 (func (;68;) (type 2) (result i32)
627 i32.const 1
628 block (result i32) ;; label = @1
629 call $dummy
630 i32.const 4
631 i32.const 8
632 br 0 (;@1;)
633 i32.add
634 end
635 i32.add
636 )
637 (func (;69;) (type 2) (result i32)
638 i32.const 1
639 block (result i32) ;; label = @1
640 i32.const 2
641 drop
642 block (result i32) ;; label = @2
643 i32.const 4
644 drop
645 i32.const 8
646 br 1 (;@1;)
647 br 0 (;@2;)
648 end
649 drop
650 i32.const 16
651 end
652 i32.add
653 )
654 (func (;70;) (type 2) (result i32)
655 i32.const 1
656 block (result i32) ;; label = @1
657 i32.const 2
658 drop
659 block (result i32) ;; label = @2
660 i32.const 4
661 drop
662 i32.const 8
663 br 1 (;@1;)
664 i32.const 1
665 br_if 0 (;@2;)
666 drop
667 i32.const 32
668 end
669 drop
670 i32.const 16
671 end
672 i32.add
673 )
674 (func (;71;) (type 2) (result i32)
675 i32.const 1
676 block (result i32) ;; label = @1
677 i32.const 2
678 drop
679 i32.const 4
680 i32.const 8
681 br 0 (;@1;)
682 br_if 0 (;@1;)
683 drop
684 i32.const 16
685 end
686 i32.add
687 )
688 (func (;72;) (type 2) (result i32)
689 i32.const 1
690 block (result i32) ;; label = @1
691 i32.const 2
692 drop
693 block (result i32) ;; label = @2
694 i32.const 4
695 drop
696 i32.const 8
697 br 1 (;@1;)
698 i32.const 1
699 br_table 0 (;@2;)
700 end
701 drop
702 i32.const 16
703 end
704 i32.add
705 )
706 (func (;73;) (type 2) (result i32)
707 i32.const 1
708 block (result i32) ;; label = @1
709 i32.const 2
710 drop
711 i32.const 4
712 i32.const 8
713 br 0 (;@1;)
714 br_table 0 (;@1;)
715 i32.const 16
716 end
717 i32.add
718 )
719 )