Debian Codegraph @

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

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