Debian Codegraph @

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

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