Debian Codegraph @

tests/snapshots/testsuite/proposals/wasm-3.0/type-subtyping.wast.json

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