Debian Codegraph @

tests/snapshots/testsuite/proposals/wasm-3.0/try_table.wast.json

raw
1 {
2 "source_filename": "tests/testsuite/proposals/wasm-3.0/try_table.wast",
3 "commands": [
4 {
5 "type": "module",
6 "line": 3,
7 "filename": "try_table.0.wasm",
8 "module_type": "binary"
9 },
10 {
11 "type": "register",
12 "line": 8,
13 "as": "test"
14 },
15 {
16 "type": "module",
17 "line": 10,
18 "filename": "try_table.1.wasm",
19 "module_type": "binary"
20 },
21 {
22 "type": "assert_return",
23 "line": 258,
24 "action": {
25 "type": "invoke",
26 "field": "simple-throw-catch",
27 "args": [
28 {
29 "type": "i32",
30 "value": "0"
31 }
32 ]
33 },
34 "expected": [
35 {
36 "type": "i32",
37 "value": "23"
38 }
39 ]
40 },
41 {
42 "type": "assert_return",
43 "line": 259,
44 "action": {
45 "type": "invoke",
46 "field": "simple-throw-catch",
47 "args": [
48 {
49 "type": "i32",
50 "value": "1"
51 }
52 ]
53 },
54 "expected": [
55 {
56 "type": "i32",
57 "value": "42"
58 }
59 ]
60 },
61 {
62 "type": "assert_trap",
63 "line": 261,
64 "action": {
65 "type": "invoke",
66 "field": "unreachable-not-caught",
67 "args": []
68 },
69 "text": "unreachable"
70 },
71 {
72 "type": "assert_return",
73 "line": 263,
74 "action": {
75 "type": "invoke",
76 "field": "trap-in-callee",
77 "args": [
78 {
79 "type": "i32",
80 "value": "7"
81 },
82 {
83 "type": "i32",
84 "value": "2"
85 }
86 ]
87 },
88 "expected": [
89 {
90 "type": "i32",
91 "value": "3"
92 }
93 ]
94 },
95 {
96 "type": "assert_trap",
97 "line": 264,
98 "action": {
99 "type": "invoke",
100 "field": "trap-in-callee",
101 "args": [
102 {
103 "type": "i32",
104 "value": "1"
105 },
106 {
107 "type": "i32",
108 "value": "0"
109 }
110 ]
111 },
112 "text": "integer divide by zero"
113 },
114 {
115 "type": "assert_return",
116 "line": 266,
117 "action": {
118 "type": "invoke",
119 "field": "catch-complex-1",
120 "args": [
121 {
122 "type": "i32",
123 "value": "0"
124 }
125 ]
126 },
127 "expected": [
128 {
129 "type": "i32",
130 "value": "3"
131 }
132 ]
133 },
134 {
135 "type": "assert_return",
136 "line": 267,
137 "action": {
138 "type": "invoke",
139 "field": "catch-complex-1",
140 "args": [
141 {
142 "type": "i32",
143 "value": "1"
144 }
145 ]
146 },
147 "expected": [
148 {
149 "type": "i32",
150 "value": "4"
151 }
152 ]
153 },
154 {
155 "type": "assert_exception",
156 "line": 268,
157 "action": {
158 "type": "invoke",
159 "field": "catch-complex-1",
160 "args": [
161 {
162 "type": "i32",
163 "value": "2"
164 }
165 ]
166 }
167 },
168 {
169 "type": "assert_return",
170 "line": 270,
171 "action": {
172 "type": "invoke",
173 "field": "catch-complex-2",
174 "args": [
175 {
176 "type": "i32",
177 "value": "0"
178 }
179 ]
180 },
181 "expected": [
182 {
183 "type": "i32",
184 "value": "3"
185 }
186 ]
187 },
188 {
189 "type": "assert_return",
190 "line": 271,
191 "action": {
192 "type": "invoke",
193 "field": "catch-complex-2",
194 "args": [
195 {
196 "type": "i32",
197 "value": "1"
198 }
199 ]
200 },
201 "expected": [
202 {
203 "type": "i32",
204 "value": "4"
205 }
206 ]
207 },
208 {
209 "type": "assert_exception",
210 "line": 272,
211 "action": {
212 "type": "invoke",
213 "field": "catch-complex-2",
214 "args": [
215 {
216 "type": "i32",
217 "value": "2"
218 }
219 ]
220 }
221 },
222 {
223 "type": "assert_return",
224 "line": 274,
225 "action": {
226 "type": "invoke",
227 "field": "throw-catch-param-i32",
228 "args": [
229 {
230 "type": "i32",
231 "value": "0"
232 }
233 ]
234 },
235 "expected": [
236 {
237 "type": "i32",
238 "value": "0"
239 }
240 ]
241 },
242 {
243 "type": "assert_return",
244 "line": 275,
245 "action": {
246 "type": "invoke",
247 "field": "throw-catch-param-i32",
248 "args": [
249 {
250 "type": "i32",
251 "value": "1"
252 }
253 ]
254 },
255 "expected": [
256 {
257 "type": "i32",
258 "value": "1"
259 }
260 ]
261 },
262 {
263 "type": "assert_return",
264 "line": 276,
265 "action": {
266 "type": "invoke",
267 "field": "throw-catch-param-i32",
268 "args": [
269 {
270 "type": "i32",
271 "value": "10"
272 }
273 ]
274 },
275 "expected": [
276 {
277 "type": "i32",
278 "value": "10"
279 }
280 ]
281 },
282 {
283 "type": "assert_return",
284 "line": 278,
285 "action": {
286 "type": "invoke",
287 "field": "throw-catch-param-f32",
288 "args": [
289 {
290 "type": "f32",
291 "value": "1084227584"
292 }
293 ]
294 },
295 "expected": [
296 {
297 "type": "f32",
298 "value": "1084227584"
299 }
300 ]
301 },
302 {
303 "type": "assert_return",
304 "line": 279,
305 "action": {
306 "type": "invoke",
307 "field": "throw-catch-param-f32",
308 "args": [
309 {
310 "type": "f32",
311 "value": "1093140480"
312 }
313 ]
314 },
315 "expected": [
316 {
317 "type": "f32",
318 "value": "1093140480"
319 }
320 ]
321 },
322 {
323 "type": "assert_return",
324 "line": 281,
325 "action": {
326 "type": "invoke",
327 "field": "throw-catch-param-i64",
328 "args": [
329 {
330 "type": "i64",
331 "value": "5"
332 }
333 ]
334 },
335 "expected": [
336 {
337 "type": "i64",
338 "value": "5"
339 }
340 ]
341 },
342 {
343 "type": "assert_return",
344 "line": 282,
345 "action": {
346 "type": "invoke",
347 "field": "throw-catch-param-i64",
348 "args": [
349 {
350 "type": "i64",
351 "value": "0"
352 }
353 ]
354 },
355 "expected": [
356 {
357 "type": "i64",
358 "value": "0"
359 }
360 ]
361 },
362 {
363 "type": "assert_return",
364 "line": 283,
365 "action": {
366 "type": "invoke",
367 "field": "throw-catch-param-i64",
368 "args": [
369 {
370 "type": "i64",
371 "value": "-1"
372 }
373 ]
374 },
375 "expected": [
376 {
377 "type": "i64",
378 "value": "-1"
379 }
380 ]
381 },
382 {
383 "type": "assert_return",
384 "line": 285,
385 "action": {
386 "type": "invoke",
387 "field": "throw-catch-param-f64",
388 "args": [
389 {
390 "type": "f64",
391 "value": "4617315517961601024"
392 }
393 ]
394 },
395 "expected": [
396 {
397 "type": "f64",
398 "value": "4617315517961601024"
399 }
400 ]
401 },
402 {
403 "type": "assert_return",
404 "line": 286,
405 "action": {
406 "type": "invoke",
407 "field": "throw-catch-param-f64",
408 "args": [
409 {
410 "type": "f64",
411 "value": "4622100592565682176"
412 }
413 ]
414 },
415 "expected": [
416 {
417 "type": "f64",
418 "value": "4622100592565682176"
419 }
420 ]
421 },
422 {
423 "type": "assert_return",
424 "line": 288,
425 "action": {
426 "type": "invoke",
427 "field": "throw-catch_ref-param-i32",
428 "args": [
429 {
430 "type": "i32",
431 "value": "0"
432 }
433 ]
434 },
435 "expected": [
436 {
437 "type": "i32",
438 "value": "0"
439 }
440 ]
441 },
442 {
443 "type": "assert_return",
444 "line": 289,
445 "action": {
446 "type": "invoke",
447 "field": "throw-catch_ref-param-i32",
448 "args": [
449 {
450 "type": "i32",
451 "value": "1"
452 }
453 ]
454 },
455 "expected": [
456 {
457 "type": "i32",
458 "value": "1"
459 }
460 ]
461 },
462 {
463 "type": "assert_return",
464 "line": 290,
465 "action": {
466 "type": "invoke",
467 "field": "throw-catch_ref-param-i32",
468 "args": [
469 {
470 "type": "i32",
471 "value": "10"
472 }
473 ]
474 },
475 "expected": [
476 {
477 "type": "i32",
478 "value": "10"
479 }
480 ]
481 },
482 {
483 "type": "assert_return",
484 "line": 292,
485 "action": {
486 "type": "invoke",
487 "field": "throw-catch_ref-param-f32",
488 "args": [
489 {
490 "type": "f32",
491 "value": "1084227584"
492 }
493 ]
494 },
495 "expected": [
496 {
497 "type": "f32",
498 "value": "1084227584"
499 }
500 ]
501 },
502 {
503 "type": "assert_return",
504 "line": 293,
505 "action": {
506 "type": "invoke",
507 "field": "throw-catch_ref-param-f32",
508 "args": [
509 {
510 "type": "f32",
511 "value": "1093140480"
512 }
513 ]
514 },
515 "expected": [
516 {
517 "type": "f32",
518 "value": "1093140480"
519 }
520 ]
521 },
522 {
523 "type": "assert_return",
524 "line": 295,
525 "action": {
526 "type": "invoke",
527 "field": "throw-catch_ref-param-i64",
528 "args": [
529 {
530 "type": "i64",
531 "value": "5"
532 }
533 ]
534 },
535 "expected": [
536 {
537 "type": "i64",
538 "value": "5"
539 }
540 ]
541 },
542 {
543 "type": "assert_return",
544 "line": 296,
545 "action": {
546 "type": "invoke",
547 "field": "throw-catch_ref-param-i64",
548 "args": [
549 {
550 "type": "i64",
551 "value": "0"
552 }
553 ]
554 },
555 "expected": [
556 {
557 "type": "i64",
558 "value": "0"
559 }
560 ]
561 },
562 {
563 "type": "assert_return",
564 "line": 297,
565 "action": {
566 "type": "invoke",
567 "field": "throw-catch_ref-param-i64",
568 "args": [
569 {
570 "type": "i64",
571 "value": "-1"
572 }
573 ]
574 },
575 "expected": [
576 {
577 "type": "i64",
578 "value": "-1"
579 }
580 ]
581 },
582 {
583 "type": "assert_return",
584 "line": 299,
585 "action": {
586 "type": "invoke",
587 "field": "throw-catch_ref-param-f64",
588 "args": [
589 {
590 "type": "f64",
591 "value": "4617315517961601024"
592 }
593 ]
594 },
595 "expected": [
596 {
597 "type": "f64",
598 "value": "4617315517961601024"
599 }
600 ]
601 },
602 {
603 "type": "assert_return",
604 "line": 300,
605 "action": {
606 "type": "invoke",
607 "field": "throw-catch_ref-param-f64",
608 "args": [
609 {
610 "type": "f64",
611 "value": "4622100592565682176"
612 }
613 ]
614 },
615 "expected": [
616 {
617 "type": "f64",
618 "value": "4622100592565682176"
619 }
620 ]
621 },
622 {
623 "type": "assert_return",
624 "line": 302,
625 "action": {
626 "type": "invoke",
627 "field": "catch-param-i32",
628 "args": [
629 {
630 "type": "i32",
631 "value": "5"
632 }
633 ]
634 },
635 "expected": [
636 {
637 "type": "i32",
638 "value": "5"
639 }
640 ]
641 },
642 {
643 "type": "assert_return",
644 "line": 304,
645 "action": {
646 "type": "invoke",
647 "field": "catch-imported",
648 "args": []
649 },
650 "expected": [
651 {
652 "type": "i32",
653 "value": "2"
654 }
655 ]
656 },
657 {
658 "type": "assert_return",
659 "line": 305,
660 "action": {
661 "type": "invoke",
662 "field": "catch-imported-alias",
663 "args": []
664 },
665 "expected": [
666 {
667 "type": "i32",
668 "value": "2"
669 }
670 ]
671 },
672 {
673 "type": "assert_return",
674 "line": 307,
675 "action": {
676 "type": "invoke",
677 "field": "catchless-try",
678 "args": [
679 {
680 "type": "i32",
681 "value": "0"
682 }
683 ]
684 },
685 "expected": [
686 {
687 "type": "i32",
688 "value": "0"
689 }
690 ]
691 },
692 {
693 "type": "assert_return",
694 "line": 308,
695 "action": {
696 "type": "invoke",
697 "field": "catchless-try",
698 "args": [
699 {
700 "type": "i32",
701 "value": "1"
702 }
703 ]
704 },
705 "expected": [
706 {
707 "type": "i32",
708 "value": "1"
709 }
710 ]
711 },
712 {
713 "type": "assert_exception",
714 "line": 310,
715 "action": {
716 "type": "invoke",
717 "field": "return-call-in-try-catch",
718 "args": []
719 }
720 },
721 {
722 "type": "assert_exception",
723 "line": 311,
724 "action": {
725 "type": "invoke",
726 "field": "return-call-indirect-in-try-catch",
727 "args": []
728 }
729 },
730 {
731 "type": "assert_return",
732 "line": 313,
733 "action": {
734 "type": "invoke",
735 "field": "try-with-param",
736 "args": []
737 },
738 "expected": []
739 },
740 {
741 "type": "module",
742 "line": 315,
743 "filename": "try_table.2.wasm",
744 "module_type": "binary"
745 },
746 {
747 "type": "assert_return",
748 "line": 337,
749 "action": {
750 "type": "invoke",
751 "field": "imported-mismatch",
752 "args": []
753 },
754 "expected": [
755 {
756 "type": "i32",
757 "value": "3"
758 }
759 ]
760 },
761 {
762 "type": "assert_malformed",
763 "line": 340,
764 "filename": "try_table.3.wat",
765 "module_type": "text",
766 "text": "unexpected token"
767 },
768 {
769 "type": "assert_malformed",
770 "line": 345,
771 "filename": "try_table.4.wat",
772 "module_type": "text",
773 "text": "unexpected token"
774 },
775 {
776 "type": "module",
777 "line": 349,
778 "filename": "try_table.5.wasm",
779 "module_type": "binary"
780 },
781 {
782 "type": "assert_invalid",
783 "line": 360,
784 "filename": "try_table.6.wasm",
785 "module_type": "binary",
786 "text": "type mismatch"
787 },
788 {
789 "type": "assert_invalid",
790 "line": 364,
791 "filename": "try_table.7.wasm",
792 "module_type": "binary",
793 "text": "type mismatch"
794 },
795 {
796 "type": "assert_invalid",
797 "line": 369,
798 "filename": "try_table.8.wasm",
799 "module_type": "binary",
800 "text": "type mismatch"
801 },
802 {
803 "type": "assert_invalid",
804 "line": 373,
805 "filename": "try_table.9.wasm",
806 "module_type": "binary",
807 "text": "type mismatch"
808 },
809 {
810 "type": "assert_invalid",
811 "line": 377,
812 "filename": "try_table.10.wasm",
813 "module_type": "binary",
814 "text": "type mismatch"
815 },
816 {
817 "type": "assert_invalid",
818 "line": 381,
819 "filename": "try_table.11.wasm",
820 "module_type": "binary",
821 "text": "type mismatch"
822 },
823 {
824 "type": "assert_invalid",
825 "line": 385,
826 "filename": "try_table.12.wasm",
827 "module_type": "binary",
828 "text": "type mismatch"
829 },
830 {
831 "type": "module",
832 "line": 393,
833 "filename": "try_table.13.wasm",
834 "module_type": "binary"
835 },
836 {
837 "type": "assert_return",
838 "line": 437,
839 "action": {
840 "type": "invoke",
841 "field": "catch",
842 "args": []
843 },
844 "expected": [
845 {
846 "type": "funcref"
847 }
848 ]
849 },
850 {
851 "type": "assert_return",
852 "line": 438,
853 "action": {
854 "type": "invoke",
855 "field": "catch_ref1",
856 "args": []
857 },
858 "expected": [
859 {
860 "type": "funcref"
861 }
862 ]
863 },
864 {
865 "type": "assert_return",
866 "line": 439,
867 "action": {
868 "type": "invoke",
869 "field": "catch_ref2",
870 "args": []
871 },
872 "expected": [
873 {
874 "type": "funcref"
875 }
876 ]
877 },
878 {
879 "type": "assert_return",
880 "line": 440,
881 "action": {
882 "type": "invoke",
883 "field": "catch_all_ref1",
884 "args": []
885 },
886 "expected": []
887 },
888 {
889 "type": "assert_return",
890 "line": 441,
891 "action": {
892 "type": "invoke",
893 "field": "catch_all_ref2",
894 "args": []
895 },
896 "expected": []
897 },
898 {
899 "type": "assert_invalid",
900 "line": 444,
901 "filename": "try_table.14.wasm",
902 "module_type": "binary",
903 "text": "type mismatch"
904 },
905 {
906 "type": "assert_invalid",
907 "line": 457,
908 "filename": "try_table.15.wasm",
909 "module_type": "binary",
910 "text": "type mismatch"
911 }
912 ]
913 }