Debian Codegraph @

tests/snapshots/testsuite/return.wast.json

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