Debian Codegraph @

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

raw
1 {
2 "source_filename": "tests/testsuite/proposals/wasm-3.0/memory_grow.wast",
3 "commands": [
4 {
5 "type": "module",
6 "line": 1,
7 "filename": "memory_grow.0.wasm",
8 "module_type": "binary"
9 },
10 {
11 "type": "assert_return",
12 "line": 6,
13 "action": {
14 "type": "invoke",
15 "field": "grow",
16 "args": [
17 {
18 "type": "i32",
19 "value": "0"
20 }
21 ]
22 },
23 "expected": [
24 {
25 "type": "i32",
26 "value": "0"
27 }
28 ]
29 },
30 {
31 "type": "assert_return",
32 "line": 7,
33 "action": {
34 "type": "invoke",
35 "field": "grow",
36 "args": [
37 {
38 "type": "i32",
39 "value": "1"
40 }
41 ]
42 },
43 "expected": [
44 {
45 "type": "i32",
46 "value": "0"
47 }
48 ]
49 },
50 {
51 "type": "assert_return",
52 "line": 8,
53 "action": {
54 "type": "invoke",
55 "field": "grow",
56 "args": [
57 {
58 "type": "i32",
59 "value": "0"
60 }
61 ]
62 },
63 "expected": [
64 {
65 "type": "i32",
66 "value": "1"
67 }
68 ]
69 },
70 {
71 "type": "assert_return",
72 "line": 9,
73 "action": {
74 "type": "invoke",
75 "field": "grow",
76 "args": [
77 {
78 "type": "i32",
79 "value": "2"
80 }
81 ]
82 },
83 "expected": [
84 {
85 "type": "i32",
86 "value": "1"
87 }
88 ]
89 },
90 {
91 "type": "assert_return",
92 "line": 10,
93 "action": {
94 "type": "invoke",
95 "field": "grow",
96 "args": [
97 {
98 "type": "i32",
99 "value": "800"
100 }
101 ]
102 },
103 "expected": [
104 {
105 "type": "i32",
106 "value": "3"
107 }
108 ]
109 },
110 {
111 "type": "assert_return",
112 "line": 11,
113 "action": {
114 "type": "invoke",
115 "field": "grow",
116 "args": [
117 {
118 "type": "i32",
119 "value": "65536"
120 }
121 ]
122 },
123 "expected": [
124 {
125 "type": "i32",
126 "value": "-1"
127 }
128 ]
129 },
130 {
131 "type": "assert_return",
132 "line": 12,
133 "action": {
134 "type": "invoke",
135 "field": "grow",
136 "args": [
137 {
138 "type": "i32",
139 "value": "64736"
140 }
141 ]
142 },
143 "expected": [
144 {
145 "type": "i32",
146 "value": "-1"
147 }
148 ]
149 },
150 {
151 "type": "assert_return",
152 "line": 13,
153 "action": {
154 "type": "invoke",
155 "field": "grow",
156 "args": [
157 {
158 "type": "i32",
159 "value": "1"
160 }
161 ]
162 },
163 "expected": [
164 {
165 "type": "i32",
166 "value": "803"
167 }
168 ]
169 },
170 {
171 "type": "module",
172 "line": 15,
173 "filename": "memory_grow.1.wasm",
174 "module_type": "binary"
175 },
176 {
177 "type": "assert_return",
178 "line": 20,
179 "action": {
180 "type": "invoke",
181 "field": "grow",
182 "args": [
183 {
184 "type": "i32",
185 "value": "0"
186 }
187 ]
188 },
189 "expected": [
190 {
191 "type": "i32",
192 "value": "0"
193 }
194 ]
195 },
196 {
197 "type": "assert_return",
198 "line": 21,
199 "action": {
200 "type": "invoke",
201 "field": "grow",
202 "args": [
203 {
204 "type": "i32",
205 "value": "1"
206 }
207 ]
208 },
209 "expected": [
210 {
211 "type": "i32",
212 "value": "0"
213 }
214 ]
215 },
216 {
217 "type": "assert_return",
218 "line": 22,
219 "action": {
220 "type": "invoke",
221 "field": "grow",
222 "args": [
223 {
224 "type": "i32",
225 "value": "1"
226 }
227 ]
228 },
229 "expected": [
230 {
231 "type": "i32",
232 "value": "1"
233 }
234 ]
235 },
236 {
237 "type": "assert_return",
238 "line": 23,
239 "action": {
240 "type": "invoke",
241 "field": "grow",
242 "args": [
243 {
244 "type": "i32",
245 "value": "2"
246 }
247 ]
248 },
249 "expected": [
250 {
251 "type": "i32",
252 "value": "2"
253 }
254 ]
255 },
256 {
257 "type": "assert_return",
258 "line": 24,
259 "action": {
260 "type": "invoke",
261 "field": "grow",
262 "args": [
263 {
264 "type": "i32",
265 "value": "6"
266 }
267 ]
268 },
269 "expected": [
270 {
271 "type": "i32",
272 "value": "4"
273 }
274 ]
275 },
276 {
277 "type": "assert_return",
278 "line": 25,
279 "action": {
280 "type": "invoke",
281 "field": "grow",
282 "args": [
283 {
284 "type": "i32",
285 "value": "0"
286 }
287 ]
288 },
289 "expected": [
290 {
291 "type": "i32",
292 "value": "10"
293 }
294 ]
295 },
296 {
297 "type": "assert_return",
298 "line": 26,
299 "action": {
300 "type": "invoke",
301 "field": "grow",
302 "args": [
303 {
304 "type": "i32",
305 "value": "1"
306 }
307 ]
308 },
309 "expected": [
310 {
311 "type": "i32",
312 "value": "-1"
313 }
314 ]
315 },
316 {
317 "type": "assert_return",
318 "line": 27,
319 "action": {
320 "type": "invoke",
321 "field": "grow",
322 "args": [
323 {
324 "type": "i32",
325 "value": "65536"
326 }
327 ]
328 },
329 "expected": [
330 {
331 "type": "i32",
332 "value": "-1"
333 }
334 ]
335 },
336 {
337 "type": "module",
338 "line": 32,
339 "filename": "memory_grow.2.wasm",
340 "module_type": "binary"
341 },
342 {
343 "type": "assert_return",
344 "line": 53,
345 "action": {
346 "type": "invoke",
347 "field": "check-memory-zero",
348 "args": [
349 {
350 "type": "i32",
351 "value": "0"
352 },
353 {
354 "type": "i32",
355 "value": "65535"
356 }
357 ]
358 },
359 "expected": [
360 {
361 "type": "i32",
362 "value": "0"
363 }
364 ]
365 },
366 {
367 "type": "assert_return",
368 "line": 54,
369 "action": {
370 "type": "invoke",
371 "field": "grow",
372 "args": [
373 {
374 "type": "i32",
375 "value": "1"
376 }
377 ]
378 },
379 "expected": [
380 {
381 "type": "i32",
382 "value": "1"
383 }
384 ]
385 },
386 {
387 "type": "assert_return",
388 "line": 55,
389 "action": {
390 "type": "invoke",
391 "field": "check-memory-zero",
392 "args": [
393 {
394 "type": "i32",
395 "value": "65536"
396 },
397 {
398 "type": "i32",
399 "value": "131071"
400 }
401 ]
402 },
403 "expected": [
404 {
405 "type": "i32",
406 "value": "0"
407 }
408 ]
409 },
410 {
411 "type": "assert_return",
412 "line": 56,
413 "action": {
414 "type": "invoke",
415 "field": "grow",
416 "args": [
417 {
418 "type": "i32",
419 "value": "1"
420 }
421 ]
422 },
423 "expected": [
424 {
425 "type": "i32",
426 "value": "2"
427 }
428 ]
429 },
430 {
431 "type": "assert_return",
432 "line": 57,
433 "action": {
434 "type": "invoke",
435 "field": "check-memory-zero",
436 "args": [
437 {
438 "type": "i32",
439 "value": "131072"
440 },
441 {
442 "type": "i32",
443 "value": "196607"
444 }
445 ]
446 },
447 "expected": [
448 {
449 "type": "i32",
450 "value": "0"
451 }
452 ]
453 },
454 {
455 "type": "assert_return",
456 "line": 58,
457 "action": {
458 "type": "invoke",
459 "field": "grow",
460 "args": [
461 {
462 "type": "i32",
463 "value": "1"
464 }
465 ]
466 },
467 "expected": [
468 {
469 "type": "i32",
470 "value": "3"
471 }
472 ]
473 },
474 {
475 "type": "assert_return",
476 "line": 59,
477 "action": {
478 "type": "invoke",
479 "field": "check-memory-zero",
480 "args": [
481 {
482 "type": "i32",
483 "value": "196608"
484 },
485 {
486 "type": "i32",
487 "value": "262143"
488 }
489 ]
490 },
491 "expected": [
492 {
493 "type": "i32",
494 "value": "0"
495 }
496 ]
497 },
498 {
499 "type": "assert_return",
500 "line": 60,
501 "action": {
502 "type": "invoke",
503 "field": "grow",
504 "args": [
505 {
506 "type": "i32",
507 "value": "1"
508 }
509 ]
510 },
511 "expected": [
512 {
513 "type": "i32",
514 "value": "4"
515 }
516 ]
517 },
518 {
519 "type": "assert_return",
520 "line": 61,
521 "action": {
522 "type": "invoke",
523 "field": "check-memory-zero",
524 "args": [
525 {
526 "type": "i32",
527 "value": "262144"
528 },
529 {
530 "type": "i32",
531 "value": "327679"
532 }
533 ]
534 },
535 "expected": [
536 {
537 "type": "i32",
538 "value": "0"
539 }
540 ]
541 },
542 {
543 "type": "assert_return",
544 "line": 62,
545 "action": {
546 "type": "invoke",
547 "field": "grow",
548 "args": [
549 {
550 "type": "i32",
551 "value": "1"
552 }
553 ]
554 },
555 "expected": [
556 {
557 "type": "i32",
558 "value": "5"
559 }
560 ]
561 },
562 {
563 "type": "assert_return",
564 "line": 63,
565 "action": {
566 "type": "invoke",
567 "field": "check-memory-zero",
568 "args": [
569 {
570 "type": "i32",
571 "value": "327680"
572 },
573 {
574 "type": "i32",
575 "value": "393215"
576 }
577 ]
578 },
579 "expected": [
580 {
581 "type": "i32",
582 "value": "0"
583 }
584 ]
585 },
586 {
587 "type": "module",
588 "line": 68,
589 "filename": "memory_grow.3.wasm",
590 "module_type": "binary"
591 },
592 {
593 "type": "assert_return",
594 "line": 85,
595 "action": {
596 "type": "invoke",
597 "field": "size",
598 "args": []
599 },
600 "expected": [
601 {
602 "type": "i32",
603 "value": "0"
604 }
605 ]
606 },
607 {
608 "type": "assert_trap",
609 "line": 86,
610 "action": {
611 "type": "invoke",
612 "field": "store_at_zero",
613 "args": []
614 },
615 "text": "out of bounds memory access"
616 },
617 {
618 "type": "assert_trap",
619 "line": 87,
620 "action": {
621 "type": "invoke",
622 "field": "load_at_zero",
623 "args": []
624 },
625 "text": "out of bounds memory access"
626 },
627 {
628 "type": "assert_trap",
629 "line": 88,
630 "action": {
631 "type": "invoke",
632 "field": "store_at_page_size",
633 "args": []
634 },
635 "text": "out of bounds memory access"
636 },
637 {
638 "type": "assert_trap",
639 "line": 89,
640 "action": {
641 "type": "invoke",
642 "field": "load_at_page_size",
643 "args": []
644 },
645 "text": "out of bounds memory access"
646 },
647 {
648 "type": "assert_return",
649 "line": 90,
650 "action": {
651 "type": "invoke",
652 "field": "grow",
653 "args": [
654 {
655 "type": "i32",
656 "value": "1"
657 }
658 ]
659 },
660 "expected": [
661 {
662 "type": "i32",
663 "value": "0"
664 }
665 ]
666 },
667 {
668 "type": "assert_return",
669 "line": 91,
670 "action": {
671 "type": "invoke",
672 "field": "size",
673 "args": []
674 },
675 "expected": [
676 {
677 "type": "i32",
678 "value": "1"
679 }
680 ]
681 },
682 {
683 "type": "assert_return",
684 "line": 92,
685 "action": {
686 "type": "invoke",
687 "field": "load_at_zero",
688 "args": []
689 },
690 "expected": [
691 {
692 "type": "i32",
693 "value": "0"
694 }
695 ]
696 },
697 {
698 "type": "assert_return",
699 "line": 93,
700 "action": {
701 "type": "invoke",
702 "field": "store_at_zero",
703 "args": []
704 },
705 "expected": []
706 },
707 {
708 "type": "assert_return",
709 "line": 94,
710 "action": {
711 "type": "invoke",
712 "field": "load_at_zero",
713 "args": []
714 },
715 "expected": [
716 {
717 "type": "i32",
718 "value": "2"
719 }
720 ]
721 },
722 {
723 "type": "assert_trap",
724 "line": 95,
725 "action": {
726 "type": "invoke",
727 "field": "store_at_page_size",
728 "args": []
729 },
730 "text": "out of bounds memory access"
731 },
732 {
733 "type": "assert_trap",
734 "line": 96,
735 "action": {
736 "type": "invoke",
737 "field": "load_at_page_size",
738 "args": []
739 },
740 "text": "out of bounds memory access"
741 },
742 {
743 "type": "assert_return",
744 "line": 97,
745 "action": {
746 "type": "invoke",
747 "field": "grow",
748 "args": [
749 {
750 "type": "i32",
751 "value": "4"
752 }
753 ]
754 },
755 "expected": [
756 {
757 "type": "i32",
758 "value": "1"
759 }
760 ]
761 },
762 {
763 "type": "assert_return",
764 "line": 98,
765 "action": {
766 "type": "invoke",
767 "field": "size",
768 "args": []
769 },
770 "expected": [
771 {
772 "type": "i32",
773 "value": "5"
774 }
775 ]
776 },
777 {
778 "type": "assert_return",
779 "line": 99,
780 "action": {
781 "type": "invoke",
782 "field": "load_at_zero",
783 "args": []
784 },
785 "expected": [
786 {
787 "type": "i32",
788 "value": "2"
789 }
790 ]
791 },
792 {
793 "type": "assert_return",
794 "line": 100,
795 "action": {
796 "type": "invoke",
797 "field": "store_at_zero",
798 "args": []
799 },
800 "expected": []
801 },
802 {
803 "type": "assert_return",
804 "line": 101,
805 "action": {
806 "type": "invoke",
807 "field": "load_at_zero",
808 "args": []
809 },
810 "expected": [
811 {
812 "type": "i32",
813 "value": "2"
814 }
815 ]
816 },
817 {
818 "type": "assert_return",
819 "line": 102,
820 "action": {
821 "type": "invoke",
822 "field": "load_at_page_size",
823 "args": []
824 },
825 "expected": [
826 {
827 "type": "i32",
828 "value": "0"
829 }
830 ]
831 },
832 {
833 "type": "assert_return",
834 "line": 103,
835 "action": {
836 "type": "invoke",
837 "field": "store_at_page_size",
838 "args": []
839 },
840 "expected": []
841 },
842 {
843 "type": "assert_return",
844 "line": 104,
845 "action": {
846 "type": "invoke",
847 "field": "load_at_page_size",
848 "args": []
849 },
850 "expected": [
851 {
852 "type": "i32",
853 "value": "3"
854 }
855 ]
856 },
857 {
858 "type": "module",
859 "line": 109,
860 "filename": "memory_grow.4.wasm",
861 "module_type": "binary"
862 },
863 {
864 "type": "register",
865 "line": 113,
866 "as": "M"
867 },
868 {
869 "type": "module",
870 "line": 115,
871 "filename": "memory_grow.5.wasm",
872 "module_type": "binary"
873 },
874 {
875 "type": "assert_return",
876 "line": 140,
877 "action": {
878 "type": "invoke",
879 "field": "size1",
880 "args": []
881 },
882 "expected": [
883 {
884 "type": "i32",
885 "value": "2"
886 }
887 ]
888 },
889 {
890 "type": "assert_return",
891 "line": 141,
892 "action": {
893 "type": "invoke",
894 "field": "size2",
895 "args": []
896 },
897 "expected": [
898 {
899 "type": "i32",
900 "value": "0"
901 }
902 ]
903 },
904 {
905 "type": "assert_return",
906 "line": 142,
907 "action": {
908 "type": "invoke",
909 "field": "size3",
910 "args": []
911 },
912 "expected": [
913 {
914 "type": "i32",
915 "value": "3"
916 }
917 ]
918 },
919 {
920 "type": "assert_return",
921 "line": 143,
922 "action": {
923 "type": "invoke",
924 "field": "size4",
925 "args": []
926 },
927 "expected": [
928 {
929 "type": "i32",
930 "value": "4"
931 }
932 ]
933 },
934 {
935 "type": "assert_return",
936 "line": 145,
937 "action": {
938 "type": "invoke",
939 "field": "grow1",
940 "args": [
941 {
942 "type": "i32",
943 "value": "1"
944 }
945 ]
946 },
947 "expected": [
948 {
949 "type": "i32",
950 "value": "2"
951 }
952 ]
953 },
954 {
955 "type": "assert_return",
956 "line": 146,
957 "action": {
958 "type": "invoke",
959 "field": "size1",
960 "args": []
961 },
962 "expected": [
963 {
964 "type": "i32",
965 "value": "3"
966 }
967 ]
968 },
969 {
970 "type": "assert_return",
971 "line": 147,
972 "action": {
973 "type": "invoke",
974 "field": "size2",
975 "args": []
976 },
977 "expected": [
978 {
979 "type": "i32",
980 "value": "0"
981 }
982 ]
983 },
984 {
985 "type": "assert_return",
986 "line": 148,
987 "action": {
988 "type": "invoke",
989 "field": "size3",
990 "args": []
991 },
992 "expected": [
993 {
994 "type": "i32",
995 "value": "3"
996 }
997 ]
998 },
999 {
1000 "type": "assert_return",
1001 "line": 149,
1002 "action": {
1003 "type": "invoke",
1004 "field": "size4",
1005 "args": []
1006 },
1007 "expected": [
1008 {
1009 "type": "i32",
1010 "value": "4"
1011 }
1012 ]
1013 },
1014 {
1015 "type": "assert_return",
1016 "line": 151,
1017 "action": {
1018 "type": "invoke",
1019 "field": "grow1",
1020 "args": [
1021 {
1022 "type": "i32",
1023 "value": "2"
1024 }
1025 ]
1026 },
1027 "expected": [
1028 {
1029 "type": "i32",
1030 "value": "3"
1031 }
1032 ]
1033 },
1034 {
1035 "type": "assert_return",
1036 "line": 152,
1037 "action": {
1038 "type": "invoke",
1039 "field": "size1",
1040 "args": []
1041 },
1042 "expected": [
1043 {
1044 "type": "i32",
1045 "value": "5"
1046 }
1047 ]
1048 },
1049 {
1050 "type": "assert_return",
1051 "line": 153,
1052 "action": {
1053 "type": "invoke",
1054 "field": "size2",
1055 "args": []
1056 },
1057 "expected": [
1058 {
1059 "type": "i32",
1060 "value": "0"
1061 }
1062 ]
1063 },
1064 {
1065 "type": "assert_return",
1066 "line": 154,
1067 "action": {
1068 "type": "invoke",
1069 "field": "size3",
1070 "args": []
1071 },
1072 "expected": [
1073 {
1074 "type": "i32",
1075 "value": "3"
1076 }
1077 ]
1078 },
1079 {
1080 "type": "assert_return",
1081 "line": 155,
1082 "action": {
1083 "type": "invoke",
1084 "field": "size4",
1085 "args": []
1086 },
1087 "expected": [
1088 {
1089 "type": "i32",
1090 "value": "4"
1091 }
1092 ]
1093 },
1094 {
1095 "type": "assert_return",
1096 "line": 157,
1097 "action": {
1098 "type": "invoke",
1099 "field": "grow1",
1100 "args": [
1101 {
1102 "type": "i32",
1103 "value": "1"
1104 }
1105 ]
1106 },
1107 "expected": [
1108 {
1109 "type": "i32",
1110 "value": "-1"
1111 }
1112 ]
1113 },
1114 {
1115 "type": "assert_return",
1116 "line": 158,
1117 "action": {
1118 "type": "invoke",
1119 "field": "size1",
1120 "args": []
1121 },
1122 "expected": [
1123 {
1124 "type": "i32",
1125 "value": "5"
1126 }
1127 ]
1128 },
1129 {
1130 "type": "assert_return",
1131 "line": 159,
1132 "action": {
1133 "type": "invoke",
1134 "field": "size2",
1135 "args": []
1136 },
1137 "expected": [
1138 {
1139 "type": "i32",
1140 "value": "0"
1141 }
1142 ]
1143 },
1144 {
1145 "type": "assert_return",
1146 "line": 160,
1147 "action": {
1148 "type": "invoke",
1149 "field": "size3",
1150 "args": []
1151 },
1152 "expected": [
1153 {
1154 "type": "i32",
1155 "value": "3"
1156 }
1157 ]
1158 },
1159 {
1160 "type": "assert_return",
1161 "line": 161,
1162 "action": {
1163 "type": "invoke",
1164 "field": "size4",
1165 "args": []
1166 },
1167 "expected": [
1168 {
1169 "type": "i32",
1170 "value": "4"
1171 }
1172 ]
1173 },
1174 {
1175 "type": "assert_return",
1176 "line": 163,
1177 "action": {
1178 "type": "invoke",
1179 "field": "grow2",
1180 "args": [
1181 {
1182 "type": "i32",
1183 "value": "10"
1184 }
1185 ]
1186 },
1187 "expected": [
1188 {
1189 "type": "i32",
1190 "value": "0"
1191 }
1192 ]
1193 },
1194 {
1195 "type": "assert_return",
1196 "line": 164,
1197 "action": {
1198 "type": "invoke",
1199 "field": "size1",
1200 "args": []
1201 },
1202 "expected": [
1203 {
1204 "type": "i32",
1205 "value": "5"
1206 }
1207 ]
1208 },
1209 {
1210 "type": "assert_return",
1211 "line": 165,
1212 "action": {
1213 "type": "invoke",
1214 "field": "size2",
1215 "args": []
1216 },
1217 "expected": [
1218 {
1219 "type": "i32",
1220 "value": "10"
1221 }
1222 ]
1223 },
1224 {
1225 "type": "assert_return",
1226 "line": 166,
1227 "action": {
1228 "type": "invoke",
1229 "field": "size3",
1230 "args": []
1231 },
1232 "expected": [
1233 {
1234 "type": "i32",
1235 "value": "3"
1236 }
1237 ]
1238 },
1239 {
1240 "type": "assert_return",
1241 "line": 167,
1242 "action": {
1243 "type": "invoke",
1244 "field": "size4",
1245 "args": []
1246 },
1247 "expected": [
1248 {
1249 "type": "i32",
1250 "value": "4"
1251 }
1252 ]
1253 },
1254 {
1255 "type": "assert_return",
1256 "line": 169,
1257 "action": {
1258 "type": "invoke",
1259 "field": "grow3",
1260 "args": [
1261 {
1262 "type": "i32",
1263 "value": "268435456"
1264 }
1265 ]
1266 },
1267 "expected": [
1268 {
1269 "type": "i32",
1270 "value": "-1"
1271 }
1272 ]
1273 },
1274 {
1275 "type": "assert_return",
1276 "line": 170,
1277 "action": {
1278 "type": "invoke",
1279 "field": "size1",
1280 "args": []
1281 },
1282 "expected": [
1283 {
1284 "type": "i32",
1285 "value": "5"
1286 }
1287 ]
1288 },
1289 {
1290 "type": "assert_return",
1291 "line": 171,
1292 "action": {
1293 "type": "invoke",
1294 "field": "size2",
1295 "args": []
1296 },
1297 "expected": [
1298 {
1299 "type": "i32",
1300 "value": "10"
1301 }
1302 ]
1303 },
1304 {
1305 "type": "assert_return",
1306 "line": 172,
1307 "action": {
1308 "type": "invoke",
1309 "field": "size3",
1310 "args": []
1311 },
1312 "expected": [
1313 {
1314 "type": "i32",
1315 "value": "3"
1316 }
1317 ]
1318 },
1319 {
1320 "type": "assert_return",
1321 "line": 173,
1322 "action": {
1323 "type": "invoke",
1324 "field": "size4",
1325 "args": []
1326 },
1327 "expected": [
1328 {
1329 "type": "i32",
1330 "value": "4"
1331 }
1332 ]
1333 },
1334 {
1335 "type": "assert_return",
1336 "line": 175,
1337 "action": {
1338 "type": "invoke",
1339 "field": "grow3",
1340 "args": [
1341 {
1342 "type": "i32",
1343 "value": "3"
1344 }
1345 ]
1346 },
1347 "expected": [
1348 {
1349 "type": "i32",
1350 "value": "3"
1351 }
1352 ]
1353 },
1354 {
1355 "type": "assert_return",
1356 "line": 176,
1357 "action": {
1358 "type": "invoke",
1359 "field": "size1",
1360 "args": []
1361 },
1362 "expected": [
1363 {
1364 "type": "i32",
1365 "value": "5"
1366 }
1367 ]
1368 },
1369 {
1370 "type": "assert_return",
1371 "line": 177,
1372 "action": {
1373 "type": "invoke",
1374 "field": "size2",
1375 "args": []
1376 },
1377 "expected": [
1378 {
1379 "type": "i32",
1380 "value": "10"
1381 }
1382 ]
1383 },
1384 {
1385 "type": "assert_return",
1386 "line": 178,
1387 "action": {
1388 "type": "invoke",
1389 "field": "size3",
1390 "args": []
1391 },
1392 "expected": [
1393 {
1394 "type": "i32",
1395 "value": "6"
1396 }
1397 ]
1398 },
1399 {
1400 "type": "assert_return",
1401 "line": 179,
1402 "action": {
1403 "type": "invoke",
1404 "field": "size4",
1405 "args": []
1406 },
1407 "expected": [
1408 {
1409 "type": "i32",
1410 "value": "4"
1411 }
1412 ]
1413 },
1414 {
1415 "type": "assert_return",
1416 "line": 181,
1417 "action": {
1418 "type": "invoke",
1419 "field": "grow4",
1420 "args": [
1421 {
1422 "type": "i32",
1423 "value": "1"
1424 }
1425 ]
1426 },
1427 "expected": [
1428 {
1429 "type": "i32",
1430 "value": "4"
1431 }
1432 ]
1433 },
1434 {
1435 "type": "assert_return",
1436 "line": 182,
1437 "action": {
1438 "type": "invoke",
1439 "field": "grow4",
1440 "args": [
1441 {
1442 "type": "i32",
1443 "value": "1"
1444 }
1445 ]
1446 },
1447 "expected": [
1448 {
1449 "type": "i32",
1450 "value": "-1"
1451 }
1452 ]
1453 },
1454 {
1455 "type": "assert_return",
1456 "line": 183,
1457 "action": {
1458 "type": "invoke",
1459 "field": "size1",
1460 "args": []
1461 },
1462 "expected": [
1463 {
1464 "type": "i32",
1465 "value": "5"
1466 }
1467 ]
1468 },
1469 {
1470 "type": "assert_return",
1471 "line": 184,
1472 "action": {
1473 "type": "invoke",
1474 "field": "size2",
1475 "args": []
1476 },
1477 "expected": [
1478 {
1479 "type": "i32",
1480 "value": "10"
1481 }
1482 ]
1483 },
1484 {
1485 "type": "assert_return",
1486 "line": 185,
1487 "action": {
1488 "type": "invoke",
1489 "field": "size3",
1490 "args": []
1491 },
1492 "expected": [
1493 {
1494 "type": "i32",
1495 "value": "6"
1496 }
1497 ]
1498 },
1499 {
1500 "type": "assert_return",
1501 "line": 186,
1502 "action": {
1503 "type": "invoke",
1504 "field": "size4",
1505 "args": []
1506 },
1507 "expected": [
1508 {
1509 "type": "i32",
1510 "value": "5"
1511 }
1512 ]
1513 },
1514 {
1515 "type": "module",
1516 "line": 191,
1517 "filename": "memory_grow.6.wasm",
1518 "module_type": "binary"
1519 },
1520 {
1521 "type": "assert_return",
1522 "line": 349,
1523 "action": {
1524 "type": "invoke",
1525 "field": "as-br-value",
1526 "args": []
1527 },
1528 "expected": [
1529 {
1530 "type": "i32",
1531 "value": "1"
1532 }
1533 ]
1534 },
1535 {
1536 "type": "assert_return",
1537 "line": 351,
1538 "action": {
1539 "type": "invoke",
1540 "field": "as-br_if-cond",
1541 "args": []
1542 },
1543 "expected": []
1544 },
1545 {
1546 "type": "assert_return",
1547 "line": 352,
1548 "action": {
1549 "type": "invoke",
1550 "field": "as-br_if-value",
1551 "args": []
1552 },
1553 "expected": [
1554 {
1555 "type": "i32",
1556 "value": "1"
1557 }
1558 ]
1559 },
1560 {
1561 "type": "assert_return",
1562 "line": 353,
1563 "action": {
1564 "type": "invoke",
1565 "field": "as-br_if-value-cond",
1566 "args": []
1567 },
1568 "expected": [
1569 {
1570 "type": "i32",
1571 "value": "6"
1572 }
1573 ]
1574 },
1575 {
1576 "type": "assert_return",
1577 "line": 355,
1578 "action": {
1579 "type": "invoke",
1580 "field": "as-br_table-index",
1581 "args": []
1582 },
1583 "expected": []
1584 },
1585 {
1586 "type": "assert_return",
1587 "line": 356,
1588 "action": {
1589 "type": "invoke",
1590 "field": "as-br_table-value",
1591 "args": []
1592 },
1593 "expected": [
1594 {
1595 "type": "i32",
1596 "value": "1"
1597 }
1598 ]
1599 },
1600 {
1601 "type": "assert_return",
1602 "line": 357,
1603 "action": {
1604 "type": "invoke",
1605 "field": "as-br_table-value-index",
1606 "args": []
1607 },
1608 "expected": [
1609 {
1610 "type": "i32",
1611 "value": "6"
1612 }
1613 ]
1614 },
1615 {
1616 "type": "assert_return",
1617 "line": 359,
1618 "action": {
1619 "type": "invoke",
1620 "field": "as-return-value",
1621 "args": []
1622 },
1623 "expected": [
1624 {
1625 "type": "i32",
1626 "value": "1"
1627 }
1628 ]
1629 },
1630 {
1631 "type": "assert_return",
1632 "line": 361,
1633 "action": {
1634 "type": "invoke",
1635 "field": "as-if-cond",
1636 "args": []
1637 },
1638 "expected": [
1639 {
1640 "type": "i32",
1641 "value": "0"
1642 }
1643 ]
1644 },
1645 {
1646 "type": "assert_return",
1647 "line": 362,
1648 "action": {
1649 "type": "invoke",
1650 "field": "as-if-then",
1651 "args": []
1652 },
1653 "expected": [
1654 {
1655 "type": "i32",
1656 "value": "1"
1657 }
1658 ]
1659 },
1660 {
1661 "type": "assert_return",
1662 "line": 363,
1663 "action": {
1664 "type": "invoke",
1665 "field": "as-if-else",
1666 "args": []
1667 },
1668 "expected": [
1669 {
1670 "type": "i32",
1671 "value": "1"
1672 }
1673 ]
1674 },
1675 {
1676 "type": "assert_return",
1677 "line": 365,
1678 "action": {
1679 "type": "invoke",
1680 "field": "as-select-first",
1681 "args": [
1682 {
1683 "type": "i32",
1684 "value": "0"
1685 },
1686 {
1687 "type": "i32",
1688 "value": "1"
1689 }
1690 ]
1691 },
1692 "expected": [
1693 {
1694 "type": "i32",
1695 "value": "1"
1696 }
1697 ]
1698 },
1699 {
1700 "type": "assert_return",
1701 "line": 366,
1702 "action": {
1703 "type": "invoke",
1704 "field": "as-select-second",
1705 "args": [
1706 {
1707 "type": "i32",
1708 "value": "0"
1709 },
1710 {
1711 "type": "i32",
1712 "value": "0"
1713 }
1714 ]
1715 },
1716 "expected": [
1717 {
1718 "type": "i32",
1719 "value": "1"
1720 }
1721 ]
1722 },
1723 {
1724 "type": "assert_return",
1725 "line": 367,
1726 "action": {
1727 "type": "invoke",
1728 "field": "as-select-cond",
1729 "args": []
1730 },
1731 "expected": [
1732 {
1733 "type": "i32",
1734 "value": "0"
1735 }
1736 ]
1737 },
1738 {
1739 "type": "assert_return",
1740 "line": 369,
1741 "action": {
1742 "type": "invoke",
1743 "field": "as-call-first",
1744 "args": []
1745 },
1746 "expected": [
1747 {
1748 "type": "i32",
1749 "value": "-1"
1750 }
1751 ]
1752 },
1753 {
1754 "type": "assert_return",
1755 "line": 370,
1756 "action": {
1757 "type": "invoke",
1758 "field": "as-call-mid",
1759 "args": []
1760 },
1761 "expected": [
1762 {
1763 "type": "i32",
1764 "value": "-1"
1765 }
1766 ]
1767 },
1768 {
1769 "type": "assert_return",
1770 "line": 371,
1771 "action": {
1772 "type": "invoke",
1773 "field": "as-call-last",
1774 "args": []
1775 },
1776 "expected": [
1777 {
1778 "type": "i32",
1779 "value": "-1"
1780 }
1781 ]
1782 },
1783 {
1784 "type": "assert_return",
1785 "line": 373,
1786 "action": {
1787 "type": "invoke",
1788 "field": "as-call_indirect-first",
1789 "args": []
1790 },
1791 "expected": [
1792 {
1793 "type": "i32",
1794 "value": "-1"
1795 }
1796 ]
1797 },
1798 {
1799 "type": "assert_return",
1800 "line": 374,
1801 "action": {
1802 "type": "invoke",
1803 "field": "as-call_indirect-mid",
1804 "args": []
1805 },
1806 "expected": [
1807 {
1808 "type": "i32",
1809 "value": "-1"
1810 }
1811 ]
1812 },
1813 {
1814 "type": "assert_return",
1815 "line": 375,
1816 "action": {
1817 "type": "invoke",
1818 "field": "as-call_indirect-last",
1819 "args": []
1820 },
1821 "expected": [
1822 {
1823 "type": "i32",
1824 "value": "-1"
1825 }
1826 ]
1827 },
1828 {
1829 "type": "assert_trap",
1830 "line": 376,
1831 "action": {
1832 "type": "invoke",
1833 "field": "as-call_indirect-index",
1834 "args": []
1835 },
1836 "text": "undefined element"
1837 },
1838 {
1839 "type": "assert_return",
1840 "line": 378,
1841 "action": {
1842 "type": "invoke",
1843 "field": "as-local.set-value",
1844 "args": []
1845 },
1846 "expected": []
1847 },
1848 {
1849 "type": "assert_return",
1850 "line": 379,
1851 "action": {
1852 "type": "invoke",
1853 "field": "as-local.tee-value",
1854 "args": []
1855 },
1856 "expected": [
1857 {
1858 "type": "i32",
1859 "value": "1"
1860 }
1861 ]
1862 },
1863 {
1864 "type": "assert_return",
1865 "line": 380,
1866 "action": {
1867 "type": "invoke",
1868 "field": "as-global.set-value",
1869 "args": []
1870 },
1871 "expected": []
1872 },
1873 {
1874 "type": "assert_return",
1875 "line": 382,
1876 "action": {
1877 "type": "invoke",
1878 "field": "as-load-address",
1879 "args": []
1880 },
1881 "expected": [
1882 {
1883 "type": "i32",
1884 "value": "0"
1885 }
1886 ]
1887 },
1888 {
1889 "type": "assert_return",
1890 "line": 383,
1891 "action": {
1892 "type": "invoke",
1893 "field": "as-loadN-address",
1894 "args": []
1895 },
1896 "expected": [
1897 {
1898 "type": "i32",
1899 "value": "0"
1900 }
1901 ]
1902 },
1903 {
1904 "type": "assert_return",
1905 "line": 384,
1906 "action": {
1907 "type": "invoke",
1908 "field": "as-store-address",
1909 "args": []
1910 },
1911 "expected": []
1912 },
1913 {
1914 "type": "assert_return",
1915 "line": 385,
1916 "action": {
1917 "type": "invoke",
1918 "field": "as-store-value",
1919 "args": []
1920 },
1921 "expected": []
1922 },
1923 {
1924 "type": "assert_return",
1925 "line": 386,
1926 "action": {
1927 "type": "invoke",
1928 "field": "as-storeN-address",
1929 "args": []
1930 },
1931 "expected": []
1932 },
1933 {
1934 "type": "assert_return",
1935 "line": 387,
1936 "action": {
1937 "type": "invoke",
1938 "field": "as-storeN-value",
1939 "args": []
1940 },
1941 "expected": []
1942 },
1943 {
1944 "type": "assert_return",
1945 "line": 389,
1946 "action": {
1947 "type": "invoke",
1948 "field": "as-unary-operand",
1949 "args": []
1950 },
1951 "expected": [
1952 {
1953 "type": "i32",
1954 "value": "31"
1955 }
1956 ]
1957 },
1958 {
1959 "type": "assert_return",
1960 "line": 391,
1961 "action": {
1962 "type": "invoke",
1963 "field": "as-binary-left",
1964 "args": []
1965 },
1966 "expected": [
1967 {
1968 "type": "i32",
1969 "value": "11"
1970 }
1971 ]
1972 },
1973 {
1974 "type": "assert_return",
1975 "line": 392,
1976 "action": {
1977 "type": "invoke",
1978 "field": "as-binary-right",
1979 "args": []
1980 },
1981 "expected": [
1982 {
1983 "type": "i32",
1984 "value": "9"
1985 }
1986 ]
1987 },
1988 {
1989 "type": "assert_return",
1990 "line": 394,
1991 "action": {
1992 "type": "invoke",
1993 "field": "as-test-operand",
1994 "args": []
1995 },
1996 "expected": [
1997 {
1998 "type": "i32",
1999 "value": "0"
2000 }
2001 ]
2002 },
2003 {
2004 "type": "assert_return",
2005 "line": 396,
2006 "action": {
2007 "type": "invoke",
2008 "field": "as-compare-left",
2009 "args": []
2010 },
2011 "expected": [
2012 {
2013 "type": "i32",
2014 "value": "1"
2015 }
2016 ]
2017 },
2018 {
2019 "type": "assert_return",
2020 "line": 397,
2021 "action": {
2022 "type": "invoke",
2023 "field": "as-compare-right",
2024 "args": []
2025 },
2026 "expected": [
2027 {
2028 "type": "i32",
2029 "value": "1"
2030 }
2031 ]
2032 },
2033 {
2034 "type": "assert_return",
2035 "line": 399,
2036 "action": {
2037 "type": "invoke",
2038 "field": "as-memory.grow-size",
2039 "args": []
2040 },
2041 "expected": [
2042 {
2043 "type": "i32",
2044 "value": "1"
2045 }
2046 ]
2047 },
2048 {
2049 "type": "module",
2050 "line": 401,
2051 "name": "Mgm",
2052 "filename": "memory_grow.7.wasm",
2053 "module_type": "binary"
2054 },
2055 {
2056 "type": "register",
2057 "line": 405,
2058 "name": "Mgm",
2059 "as": "grown-memory"
2060 },
2061 {
2062 "type": "assert_return",
2063 "line": 406,
2064 "action": {
2065 "type": "invoke",
2066 "module": "Mgm",
2067 "field": "grow",
2068 "args": []
2069 },
2070 "expected": [
2071 {
2072 "type": "i32",
2073 "value": "1"
2074 }
2075 ]
2076 },
2077 {
2078 "type": "module",
2079 "line": 407,
2080 "name": "Mgim1",
2081 "filename": "memory_grow.8.wasm",
2082 "module_type": "binary"
2083 },
2084 {
2085 "type": "register",
2086 "line": 412,
2087 "name": "Mgim1",
2088 "as": "grown-imported-memory"
2089 },
2090 {
2091 "type": "assert_return",
2092 "line": 413,
2093 "action": {
2094 "type": "invoke",
2095 "module": "Mgim1",
2096 "field": "grow",
2097 "args": []
2098 },
2099 "expected": [
2100 {
2101 "type": "i32",
2102 "value": "2"
2103 }
2104 ]
2105 },
2106 {
2107 "type": "module",
2108 "line": 414,
2109 "name": "Mgim2",
2110 "filename": "memory_grow.9.wasm",
2111 "module_type": "binary"
2112 },
2113 {
2114 "type": "assert_return",
2115 "line": 419,
2116 "action": {
2117 "type": "invoke",
2118 "module": "Mgim2",
2119 "field": "size",
2120 "args": []
2121 },
2122 "expected": [
2123 {
2124 "type": "i32",
2125 "value": "3"
2126 }
2127 ]
2128 },
2129 {
2130 "type": "module",
2131 "line": 424,
2132 "filename": "memory_grow.10.wasm",
2133 "module_type": "binary"
2134 },
2135 {
2136 "type": "assert_return",
2137 "line": 439,
2138 "action": {
2139 "type": "invoke",
2140 "field": "size1",
2141 "args": []
2142 },
2143 "expected": [
2144 {
2145 "type": "i32",
2146 "value": "1"
2147 }
2148 ]
2149 },
2150 {
2151 "type": "assert_return",
2152 "line": 440,
2153 "action": {
2154 "type": "invoke",
2155 "field": "size2",
2156 "args": []
2157 },
2158 "expected": [
2159 {
2160 "type": "i32",
2161 "value": "2"
2162 }
2163 ]
2164 },
2165 {
2166 "type": "assert_return",
2167 "line": 441,
2168 "action": {
2169 "type": "invoke",
2170 "field": "grow1",
2171 "args": [
2172 {
2173 "type": "i32",
2174 "value": "3"
2175 }
2176 ]
2177 },
2178 "expected": [
2179 {
2180 "type": "i32",
2181 "value": "1"
2182 }
2183 ]
2184 },
2185 {
2186 "type": "assert_return",
2187 "line": 442,
2188 "action": {
2189 "type": "invoke",
2190 "field": "grow1",
2191 "args": [
2192 {
2193 "type": "i32",
2194 "value": "4"
2195 }
2196 ]
2197 },
2198 "expected": [
2199 {
2200 "type": "i32",
2201 "value": "4"
2202 }
2203 ]
2204 },
2205 {
2206 "type": "assert_return",
2207 "line": 443,
2208 "action": {
2209 "type": "invoke",
2210 "field": "grow1",
2211 "args": [
2212 {
2213 "type": "i32",
2214 "value": "1"
2215 }
2216 ]
2217 },
2218 "expected": [
2219 {
2220 "type": "i32",
2221 "value": "8"
2222 }
2223 ]
2224 },
2225 {
2226 "type": "assert_return",
2227 "line": 444,
2228 "action": {
2229 "type": "invoke",
2230 "field": "grow2",
2231 "args": [
2232 {
2233 "type": "i32",
2234 "value": "1"
2235 }
2236 ]
2237 },
2238 "expected": [
2239 {
2240 "type": "i32",
2241 "value": "2"
2242 }
2243 ]
2244 },
2245 {
2246 "type": "assert_return",
2247 "line": 445,
2248 "action": {
2249 "type": "invoke",
2250 "field": "grow2",
2251 "args": [
2252 {
2253 "type": "i32",
2254 "value": "1"
2255 }
2256 ]
2257 },
2258 "expected": [
2259 {
2260 "type": "i32",
2261 "value": "3"
2262 }
2263 ]
2264 },
2265 {
2266 "type": "assert_invalid",
2267 "line": 451,
2268 "filename": "memory_grow.11.wasm",
2269 "module_type": "binary",
2270 "text": "type mismatch"
2271 },
2272 {
2273 "type": "assert_invalid",
2274 "line": 460,
2275 "filename": "memory_grow.12.wasm",
2276 "module_type": "binary",
2277 "text": "type mismatch"
2278 },
2279 {
2280 "type": "assert_invalid",
2281 "line": 469,
2282 "filename": "memory_grow.13.wasm",
2283 "module_type": "binary",
2284 "text": "type mismatch"
2285 },
2286 {
2287 "type": "assert_invalid",
2288 "line": 479,
2289 "filename": "memory_grow.14.wasm",
2290 "module_type": "binary",
2291 "text": "type mismatch"
2292 },
2293 {
2294 "type": "assert_invalid",
2295 "line": 489,
2296 "filename": "memory_grow.15.wasm",
2297 "module_type": "binary",
2298 "text": "type mismatch"
2299 },
2300 {
2301 "type": "assert_invalid",
2302 "line": 500,
2303 "filename": "memory_grow.16.wasm",
2304 "module_type": "binary",
2305 "text": "type mismatch"
2306 },
2307 {
2308 "type": "assert_invalid",
2309 "line": 509,
2310 "filename": "memory_grow.17.wasm",
2311 "module_type": "binary",
2312 "text": "type mismatch"
2313 },
2314 {
2315 "type": "assert_invalid",
2316 "line": 519,
2317 "filename": "memory_grow.18.wasm",
2318 "module_type": "binary",
2319 "text": "type mismatch"
2320 },
2321 {
2322 "type": "assert_invalid",
2323 "line": 528,
2324 "filename": "memory_grow.19.wasm",
2325 "module_type": "binary",
2326 "text": "type mismatch"
2327 }
2328 ]
2329 }