Debian Codegraph @

tests/snapshots/testsuite/linking.wast.json

raw
1 {
2 "source_filename": "tests/testsuite/linking.wast",
3 "commands": [
4 {
5 "type": "module",
6 "line": 3,
7 "name": "Mf",
8 "filename": "linking.0.wasm",
9 "module_type": "binary"
10 },
11 {
12 "type": "register",
13 "line": 7,
14 "name": "Mf",
15 "as": "Mf"
16 },
17 {
18 "type": "module",
19 "line": 9,
20 "name": "Nf",
21 "filename": "linking.1.wasm",
22 "module_type": "binary"
23 },
24 {
25 "type": "assert_return",
26 "line": 17,
27 "action": {
28 "type": "invoke",
29 "module": "Mf",
30 "field": "call",
31 "args": []
32 },
33 "expected": [
34 {
35 "type": "i32",
36 "value": "2"
37 }
38 ]
39 },
40 {
41 "type": "assert_return",
42 "line": 18,
43 "action": {
44 "type": "invoke",
45 "module": "Nf",
46 "field": "Mf.call",
47 "args": []
48 },
49 "expected": [
50 {
51 "type": "i32",
52 "value": "2"
53 }
54 ]
55 },
56 {
57 "type": "assert_return",
58 "line": 19,
59 "action": {
60 "type": "invoke",
61 "module": "Nf",
62 "field": "call",
63 "args": []
64 },
65 "expected": [
66 {
67 "type": "i32",
68 "value": "3"
69 }
70 ]
71 },
72 {
73 "type": "assert_return",
74 "line": 20,
75 "action": {
76 "type": "invoke",
77 "module": "Nf",
78 "field": "call Mf.call",
79 "args": []
80 },
81 "expected": [
82 {
83 "type": "i32",
84 "value": "2"
85 }
86 ]
87 },
88 {
89 "type": "module",
90 "line": 22,
91 "filename": "linking.2.wasm",
92 "module_type": "binary"
93 },
94 {
95 "type": "register",
96 "line": 26,
97 "as": "reexport_f"
98 },
99 {
100 "type": "assert_unlinkable",
101 "line": 28,
102 "filename": "linking.3.wasm",
103 "module_type": "binary",
104 "text": "incompatible import type"
105 },
106 {
107 "type": "assert_unlinkable",
108 "line": 32,
109 "filename": "linking.4.wasm",
110 "module_type": "binary",
111 "text": "incompatible import type"
112 },
113 {
114 "type": "module",
115 "line": 39,
116 "name": "Mg",
117 "filename": "linking.5.wasm",
118 "module_type": "binary"
119 },
120 {
121 "type": "register",
122 "line": 48,
123 "name": "Mg",
124 "as": "Mg"
125 },
126 {
127 "type": "module",
128 "line": 50,
129 "name": "Ng",
130 "filename": "linking.6.wasm",
131 "module_type": "binary"
132 },
133 {
134 "type": "assert_return",
135 "line": 67,
136 "action": {
137 "type": "get",
138 "module": "Mg",
139 "field": "glob"
140 },
141 "expected": [
142 {
143 "type": "i32",
144 "value": "42"
145 }
146 ]
147 },
148 {
149 "type": "assert_return",
150 "line": 68,
151 "action": {
152 "type": "get",
153 "module": "Ng",
154 "field": "Mg.glob"
155 },
156 "expected": [
157 {
158 "type": "i32",
159 "value": "42"
160 }
161 ]
162 },
163 {
164 "type": "assert_return",
165 "line": 69,
166 "action": {
167 "type": "get",
168 "module": "Ng",
169 "field": "glob"
170 },
171 "expected": [
172 {
173 "type": "i32",
174 "value": "43"
175 }
176 ]
177 },
178 {
179 "type": "assert_return",
180 "line": 70,
181 "action": {
182 "type": "invoke",
183 "module": "Mg",
184 "field": "get",
185 "args": []
186 },
187 "expected": [
188 {
189 "type": "i32",
190 "value": "42"
191 }
192 ]
193 },
194 {
195 "type": "assert_return",
196 "line": 71,
197 "action": {
198 "type": "invoke",
199 "module": "Ng",
200 "field": "Mg.get",
201 "args": []
202 },
203 "expected": [
204 {
205 "type": "i32",
206 "value": "42"
207 }
208 ]
209 },
210 {
211 "type": "assert_return",
212 "line": 72,
213 "action": {
214 "type": "invoke",
215 "module": "Ng",
216 "field": "get",
217 "args": []
218 },
219 "expected": [
220 {
221 "type": "i32",
222 "value": "43"
223 }
224 ]
225 },
226 {
227 "type": "assert_return",
228 "line": 74,
229 "action": {
230 "type": "get",
231 "module": "Mg",
232 "field": "mut_glob"
233 },
234 "expected": [
235 {
236 "type": "i32",
237 "value": "142"
238 }
239 ]
240 },
241 {
242 "type": "assert_return",
243 "line": 75,
244 "action": {
245 "type": "get",
246 "module": "Ng",
247 "field": "Mg.mut_glob"
248 },
249 "expected": [
250 {
251 "type": "i32",
252 "value": "142"
253 }
254 ]
255 },
256 {
257 "type": "assert_return",
258 "line": 76,
259 "action": {
260 "type": "invoke",
261 "module": "Mg",
262 "field": "get_mut",
263 "args": []
264 },
265 "expected": [
266 {
267 "type": "i32",
268 "value": "142"
269 }
270 ]
271 },
272 {
273 "type": "assert_return",
274 "line": 77,
275 "action": {
276 "type": "invoke",
277 "module": "Ng",
278 "field": "Mg.get_mut",
279 "args": []
280 },
281 "expected": [
282 {
283 "type": "i32",
284 "value": "142"
285 }
286 ]
287 },
288 {
289 "type": "assert_return",
290 "line": 79,
291 "action": {
292 "type": "invoke",
293 "module": "Mg",
294 "field": "set_mut",
295 "args": [
296 {
297 "type": "i32",
298 "value": "241"
299 }
300 ]
301 },
302 "expected": []
303 },
304 {
305 "type": "assert_return",
306 "line": 80,
307 "action": {
308 "type": "get",
309 "module": "Mg",
310 "field": "mut_glob"
311 },
312 "expected": [
313 {
314 "type": "i32",
315 "value": "241"
316 }
317 ]
318 },
319 {
320 "type": "assert_return",
321 "line": 81,
322 "action": {
323 "type": "get",
324 "module": "Ng",
325 "field": "Mg.mut_glob"
326 },
327 "expected": [
328 {
329 "type": "i32",
330 "value": "241"
331 }
332 ]
333 },
334 {
335 "type": "assert_return",
336 "line": 82,
337 "action": {
338 "type": "invoke",
339 "module": "Mg",
340 "field": "get_mut",
341 "args": []
342 },
343 "expected": [
344 {
345 "type": "i32",
346 "value": "241"
347 }
348 ]
349 },
350 {
351 "type": "assert_return",
352 "line": 83,
353 "action": {
354 "type": "invoke",
355 "module": "Ng",
356 "field": "Mg.get_mut",
357 "args": []
358 },
359 "expected": [
360 {
361 "type": "i32",
362 "value": "241"
363 }
364 ]
365 },
366 {
367 "type": "assert_unlinkable",
368 "line": 87,
369 "filename": "linking.7.wasm",
370 "module_type": "binary",
371 "text": "incompatible import type"
372 },
373 {
374 "type": "assert_unlinkable",
375 "line": 91,
376 "filename": "linking.8.wasm",
377 "module_type": "binary",
378 "text": "incompatible import type"
379 },
380 {
381 "type": "module",
382 "line": 96,
383 "name": "Mref_ex",
384 "filename": "linking.9.wasm",
385 "module_type": "binary"
386 },
387 {
388 "type": "register",
389 "line": 102,
390 "name": "Mref_ex",
391 "as": "Mref_ex"
392 },
393 {
394 "type": "module",
395 "line": 104,
396 "name": "Mref_im",
397 "filename": "linking.10.wasm",
398 "module_type": "binary"
399 },
400 {
401 "type": "assert_unlinkable",
402 "line": 113,
403 "filename": "linking.11.wasm",
404 "module_type": "binary",
405 "text": "incompatible import type"
406 },
407 {
408 "type": "assert_unlinkable",
409 "line": 117,
410 "filename": "linking.12.wasm",
411 "module_type": "binary",
412 "text": "incompatible import type"
413 },
414 {
415 "type": "assert_unlinkable",
416 "line": 123,
417 "filename": "linking.13.wasm",
418 "module_type": "binary",
419 "text": "incompatible import type"
420 },
421 {
422 "type": "assert_unlinkable",
423 "line": 127,
424 "filename": "linking.14.wasm",
425 "module_type": "binary",
426 "text": "incompatible import type"
427 },
428 {
429 "type": "module",
430 "line": 134,
431 "name": "Mt",
432 "filename": "linking.15.wasm",
433 "module_type": "binary"
434 },
435 {
436 "type": "register",
437 "line": 147,
438 "name": "Mt",
439 "as": "Mt"
440 },
441 {
442 "type": "module",
443 "line": 149,
444 "name": "Nt",
445 "filename": "linking.16.wasm",
446 "module_type": "binary"
447 },
448 {
449 "type": "assert_return",
450 "line": 168,
451 "action": {
452 "type": "invoke",
453 "module": "Mt",
454 "field": "call",
455 "args": [
456 {
457 "type": "i32",
458 "value": "2"
459 }
460 ]
461 },
462 "expected": [
463 {
464 "type": "i32",
465 "value": "4"
466 }
467 ]
468 },
469 {
470 "type": "assert_return",
471 "line": 169,
472 "action": {
473 "type": "invoke",
474 "module": "Nt",
475 "field": "Mt.call",
476 "args": [
477 {
478 "type": "i32",
479 "value": "2"
480 }
481 ]
482 },
483 "expected": [
484 {
485 "type": "i32",
486 "value": "4"
487 }
488 ]
489 },
490 {
491 "type": "assert_return",
492 "line": 170,
493 "action": {
494 "type": "invoke",
495 "module": "Nt",
496 "field": "call",
497 "args": [
498 {
499 "type": "i32",
500 "value": "2"
501 }
502 ]
503 },
504 "expected": [
505 {
506 "type": "i32",
507 "value": "5"
508 }
509 ]
510 },
511 {
512 "type": "assert_return",
513 "line": 171,
514 "action": {
515 "type": "invoke",
516 "module": "Nt",
517 "field": "call Mt.call",
518 "args": [
519 {
520 "type": "i32",
521 "value": "2"
522 }
523 ]
524 },
525 "expected": [
526 {
527 "type": "i32",
528 "value": "4"
529 }
530 ]
531 },
532 {
533 "type": "assert_trap",
534 "line": 173,
535 "action": {
536 "type": "invoke",
537 "module": "Mt",
538 "field": "call",
539 "args": [
540 {
541 "type": "i32",
542 "value": "1"
543 }
544 ]
545 },
546 "text": "uninitialized element"
547 },
548 {
549 "type": "assert_trap",
550 "line": 174,
551 "action": {
552 "type": "invoke",
553 "module": "Nt",
554 "field": "Mt.call",
555 "args": [
556 {
557 "type": "i32",
558 "value": "1"
559 }
560 ]
561 },
562 "text": "uninitialized element"
563 },
564 {
565 "type": "assert_return",
566 "line": 175,
567 "action": {
568 "type": "invoke",
569 "module": "Nt",
570 "field": "call",
571 "args": [
572 {
573 "type": "i32",
574 "value": "1"
575 }
576 ]
577 },
578 "expected": [
579 {
580 "type": "i32",
581 "value": "5"
582 }
583 ]
584 },
585 {
586 "type": "assert_trap",
587 "line": 176,
588 "action": {
589 "type": "invoke",
590 "module": "Nt",
591 "field": "call Mt.call",
592 "args": [
593 {
594 "type": "i32",
595 "value": "1"
596 }
597 ]
598 },
599 "text": "uninitialized element"
600 },
601 {
602 "type": "assert_trap",
603 "line": 178,
604 "action": {
605 "type": "invoke",
606 "module": "Mt",
607 "field": "call",
608 "args": [
609 {
610 "type": "i32",
611 "value": "0"
612 }
613 ]
614 },
615 "text": "uninitialized element"
616 },
617 {
618 "type": "assert_trap",
619 "line": 179,
620 "action": {
621 "type": "invoke",
622 "module": "Nt",
623 "field": "Mt.call",
624 "args": [
625 {
626 "type": "i32",
627 "value": "0"
628 }
629 ]
630 },
631 "text": "uninitialized element"
632 },
633 {
634 "type": "assert_return",
635 "line": 180,
636 "action": {
637 "type": "invoke",
638 "module": "Nt",
639 "field": "call",
640 "args": [
641 {
642 "type": "i32",
643 "value": "0"
644 }
645 ]
646 },
647 "expected": [
648 {
649 "type": "i32",
650 "value": "5"
651 }
652 ]
653 },
654 {
655 "type": "assert_trap",
656 "line": 181,
657 "action": {
658 "type": "invoke",
659 "module": "Nt",
660 "field": "call Mt.call",
661 "args": [
662 {
663 "type": "i32",
664 "value": "0"
665 }
666 ]
667 },
668 "text": "uninitialized element"
669 },
670 {
671 "type": "assert_trap",
672 "line": 183,
673 "action": {
674 "type": "invoke",
675 "module": "Mt",
676 "field": "call",
677 "args": [
678 {
679 "type": "i32",
680 "value": "20"
681 }
682 ]
683 },
684 "text": "undefined element"
685 },
686 {
687 "type": "assert_trap",
688 "line": 184,
689 "action": {
690 "type": "invoke",
691 "module": "Nt",
692 "field": "Mt.call",
693 "args": [
694 {
695 "type": "i32",
696 "value": "20"
697 }
698 ]
699 },
700 "text": "undefined element"
701 },
702 {
703 "type": "assert_trap",
704 "line": 185,
705 "action": {
706 "type": "invoke",
707 "module": "Nt",
708 "field": "call",
709 "args": [
710 {
711 "type": "i32",
712 "value": "7"
713 }
714 ]
715 },
716 "text": "undefined element"
717 },
718 {
719 "type": "assert_trap",
720 "line": 186,
721 "action": {
722 "type": "invoke",
723 "module": "Nt",
724 "field": "call Mt.call",
725 "args": [
726 {
727 "type": "i32",
728 "value": "20"
729 }
730 ]
731 },
732 "text": "undefined element"
733 },
734 {
735 "type": "assert_return",
736 "line": 188,
737 "action": {
738 "type": "invoke",
739 "module": "Nt",
740 "field": "call",
741 "args": [
742 {
743 "type": "i32",
744 "value": "3"
745 }
746 ]
747 },
748 "expected": [
749 {
750 "type": "i32",
751 "value": "-4"
752 }
753 ]
754 },
755 {
756 "type": "assert_trap",
757 "line": 189,
758 "action": {
759 "type": "invoke",
760 "module": "Nt",
761 "field": "call",
762 "args": [
763 {
764 "type": "i32",
765 "value": "4"
766 }
767 ]
768 },
769 "text": "indirect call type mismatch"
770 },
771 {
772 "type": "module",
773 "line": 191,
774 "name": "Ot",
775 "filename": "linking.17.wasm",
776 "module_type": "binary"
777 },
778 {
779 "type": "assert_return",
780 "line": 204,
781 "action": {
782 "type": "invoke",
783 "module": "Mt",
784 "field": "call",
785 "args": [
786 {
787 "type": "i32",
788 "value": "3"
789 }
790 ]
791 },
792 "expected": [
793 {
794 "type": "i32",
795 "value": "4"
796 }
797 ]
798 },
799 {
800 "type": "assert_return",
801 "line": 205,
802 "action": {
803 "type": "invoke",
804 "module": "Nt",
805 "field": "Mt.call",
806 "args": [
807 {
808 "type": "i32",
809 "value": "3"
810 }
811 ]
812 },
813 "expected": [
814 {
815 "type": "i32",
816 "value": "4"
817 }
818 ]
819 },
820 {
821 "type": "assert_return",
822 "line": 206,
823 "action": {
824 "type": "invoke",
825 "module": "Nt",
826 "field": "call Mt.call",
827 "args": [
828 {
829 "type": "i32",
830 "value": "3"
831 }
832 ]
833 },
834 "expected": [
835 {
836 "type": "i32",
837 "value": "4"
838 }
839 ]
840 },
841 {
842 "type": "assert_return",
843 "line": 207,
844 "action": {
845 "type": "invoke",
846 "module": "Ot",
847 "field": "call",
848 "args": [
849 {
850 "type": "i32",
851 "value": "3"
852 }
853 ]
854 },
855 "expected": [
856 {
857 "type": "i32",
858 "value": "4"
859 }
860 ]
861 },
862 {
863 "type": "assert_return",
864 "line": 209,
865 "action": {
866 "type": "invoke",
867 "module": "Mt",
868 "field": "call",
869 "args": [
870 {
871 "type": "i32",
872 "value": "2"
873 }
874 ]
875 },
876 "expected": [
877 {
878 "type": "i32",
879 "value": "-4"
880 }
881 ]
882 },
883 {
884 "type": "assert_return",
885 "line": 210,
886 "action": {
887 "type": "invoke",
888 "module": "Nt",
889 "field": "Mt.call",
890 "args": [
891 {
892 "type": "i32",
893 "value": "2"
894 }
895 ]
896 },
897 "expected": [
898 {
899 "type": "i32",
900 "value": "-4"
901 }
902 ]
903 },
904 {
905 "type": "assert_return",
906 "line": 211,
907 "action": {
908 "type": "invoke",
909 "module": "Nt",
910 "field": "call",
911 "args": [
912 {
913 "type": "i32",
914 "value": "2"
915 }
916 ]
917 },
918 "expected": [
919 {
920 "type": "i32",
921 "value": "5"
922 }
923 ]
924 },
925 {
926 "type": "assert_return",
927 "line": 212,
928 "action": {
929 "type": "invoke",
930 "module": "Nt",
931 "field": "call Mt.call",
932 "args": [
933 {
934 "type": "i32",
935 "value": "2"
936 }
937 ]
938 },
939 "expected": [
940 {
941 "type": "i32",
942 "value": "-4"
943 }
944 ]
945 },
946 {
947 "type": "assert_return",
948 "line": 213,
949 "action": {
950 "type": "invoke",
951 "module": "Ot",
952 "field": "call",
953 "args": [
954 {
955 "type": "i32",
956 "value": "2"
957 }
958 ]
959 },
960 "expected": [
961 {
962 "type": "i32",
963 "value": "-4"
964 }
965 ]
966 },
967 {
968 "type": "assert_return",
969 "line": 215,
970 "action": {
971 "type": "invoke",
972 "module": "Mt",
973 "field": "call",
974 "args": [
975 {
976 "type": "i32",
977 "value": "1"
978 }
979 ]
980 },
981 "expected": [
982 {
983 "type": "i32",
984 "value": "6"
985 }
986 ]
987 },
988 {
989 "type": "assert_return",
990 "line": 216,
991 "action": {
992 "type": "invoke",
993 "module": "Nt",
994 "field": "Mt.call",
995 "args": [
996 {
997 "type": "i32",
998 "value": "1"
999 }
1000 ]
1001 },
1002 "expected": [
1003 {
1004 "type": "i32",
1005 "value": "6"
1006 }
1007 ]
1008 },
1009 {
1010 "type": "assert_return",
1011 "line": 217,
1012 "action": {
1013 "type": "invoke",
1014 "module": "Nt",
1015 "field": "call",
1016 "args": [
1017 {
1018 "type": "i32",
1019 "value": "1"
1020 }
1021 ]
1022 },
1023 "expected": [
1024 {
1025 "type": "i32",
1026 "value": "5"
1027 }
1028 ]
1029 },
1030 {
1031 "type": "assert_return",
1032 "line": 218,
1033 "action": {
1034 "type": "invoke",
1035 "module": "Nt",
1036 "field": "call Mt.call",
1037 "args": [
1038 {
1039 "type": "i32",
1040 "value": "1"
1041 }
1042 ]
1043 },
1044 "expected": [
1045 {
1046 "type": "i32",
1047 "value": "6"
1048 }
1049 ]
1050 },
1051 {
1052 "type": "assert_return",
1053 "line": 219,
1054 "action": {
1055 "type": "invoke",
1056 "module": "Ot",
1057 "field": "call",
1058 "args": [
1059 {
1060 "type": "i32",
1061 "value": "1"
1062 }
1063 ]
1064 },
1065 "expected": [
1066 {
1067 "type": "i32",
1068 "value": "6"
1069 }
1070 ]
1071 },
1072 {
1073 "type": "assert_trap",
1074 "line": 221,
1075 "action": {
1076 "type": "invoke",
1077 "module": "Mt",
1078 "field": "call",
1079 "args": [
1080 {
1081 "type": "i32",
1082 "value": "0"
1083 }
1084 ]
1085 },
1086 "text": "uninitialized element"
1087 },
1088 {
1089 "type": "assert_trap",
1090 "line": 222,
1091 "action": {
1092 "type": "invoke",
1093 "module": "Nt",
1094 "field": "Mt.call",
1095 "args": [
1096 {
1097 "type": "i32",
1098 "value": "0"
1099 }
1100 ]
1101 },
1102 "text": "uninitialized element"
1103 },
1104 {
1105 "type": "assert_return",
1106 "line": 223,
1107 "action": {
1108 "type": "invoke",
1109 "module": "Nt",
1110 "field": "call",
1111 "args": [
1112 {
1113 "type": "i32",
1114 "value": "0"
1115 }
1116 ]
1117 },
1118 "expected": [
1119 {
1120 "type": "i32",
1121 "value": "5"
1122 }
1123 ]
1124 },
1125 {
1126 "type": "assert_trap",
1127 "line": 224,
1128 "action": {
1129 "type": "invoke",
1130 "module": "Nt",
1131 "field": "call Mt.call",
1132 "args": [
1133 {
1134 "type": "i32",
1135 "value": "0"
1136 }
1137 ]
1138 },
1139 "text": "uninitialized element"
1140 },
1141 {
1142 "type": "assert_trap",
1143 "line": 225,
1144 "action": {
1145 "type": "invoke",
1146 "module": "Ot",
1147 "field": "call",
1148 "args": [
1149 {
1150 "type": "i32",
1151 "value": "0"
1152 }
1153 ]
1154 },
1155 "text": "uninitialized element"
1156 },
1157 {
1158 "type": "assert_trap",
1159 "line": 227,
1160 "action": {
1161 "type": "invoke",
1162 "module": "Ot",
1163 "field": "call",
1164 "args": [
1165 {
1166 "type": "i32",
1167 "value": "20"
1168 }
1169 ]
1170 },
1171 "text": "undefined element"
1172 },
1173 {
1174 "type": "module",
1175 "line": 229,
1176 "filename": "linking.18.wasm",
1177 "module_type": "binary"
1178 },
1179 {
1180 "type": "module",
1181 "line": 235,
1182 "name": "G1",
1183 "filename": "linking.19.wasm",
1184 "module_type": "binary"
1185 },
1186 {
1187 "type": "register",
1188 "line": 236,
1189 "name": "G1",
1190 "as": "G1"
1191 },
1192 {
1193 "type": "module",
1194 "line": 237,
1195 "name": "G2",
1196 "filename": "linking.20.wasm",
1197 "module_type": "binary"
1198 },
1199 {
1200 "type": "assert_return",
1201 "line": 241,
1202 "action": {
1203 "type": "get",
1204 "module": "G2",
1205 "field": "g"
1206 },
1207 "expected": [
1208 {
1209 "type": "i32",
1210 "value": "5"
1211 }
1212 ]
1213 },
1214 {
1215 "type": "assert_uninstantiable",
1216 "line": 244,
1217 "filename": "linking.21.wasm",
1218 "module_type": "binary",
1219 "text": "out of bounds table access"
1220 },
1221 {
1222 "type": "assert_unlinkable",
1223 "line": 253,
1224 "filename": "linking.22.wasm",
1225 "module_type": "binary",
1226 "text": "unknown import"
1227 },
1228 {
1229 "type": "assert_trap",
1230 "line": 262,
1231 "action": {
1232 "type": "invoke",
1233 "module": "Mt",
1234 "field": "call",
1235 "args": [
1236 {
1237 "type": "i32",
1238 "value": "7"
1239 }
1240 ]
1241 },
1242 "text": "uninitialized element"
1243 },
1244 {
1245 "type": "assert_uninstantiable",
1246 "line": 267,
1247 "filename": "linking.23.wasm",
1248 "module_type": "binary",
1249 "text": "out of bounds table access"
1250 },
1251 {
1252 "type": "assert_return",
1253 "line": 275,
1254 "action": {
1255 "type": "invoke",
1256 "module": "Mt",
1257 "field": "call",
1258 "args": [
1259 {
1260 "type": "i32",
1261 "value": "7"
1262 }
1263 ]
1264 },
1265 "expected": [
1266 {
1267 "type": "i32",
1268 "value": "0"
1269 }
1270 ]
1271 },
1272 {
1273 "type": "assert_trap",
1274 "line": 276,
1275 "action": {
1276 "type": "invoke",
1277 "module": "Mt",
1278 "field": "call",
1279 "args": [
1280 {
1281 "type": "i32",
1282 "value": "8"
1283 }
1284 ]
1285 },
1286 "text": "uninitialized element"
1287 },
1288 {
1289 "type": "assert_uninstantiable",
1290 "line": 279,
1291 "filename": "linking.24.wasm",
1292 "module_type": "binary",
1293 "text": "out of bounds memory access"
1294 },
1295 {
1296 "type": "assert_return",
1297 "line": 288,
1298 "action": {
1299 "type": "invoke",
1300 "module": "Mt",
1301 "field": "call",
1302 "args": [
1303 {
1304 "type": "i32",
1305 "value": "7"
1306 }
1307 ]
1308 },
1309 "expected": [
1310 {
1311 "type": "i32",
1312 "value": "0"
1313 }
1314 ]
1315 },
1316 {
1317 "type": "module",
1318 "line": 291,
1319 "name": "Mtable_ex",
1320 "filename": "linking.25.wasm",
1321 "module_type": "binary"
1322 },
1323 {
1324 "type": "register",
1325 "line": 295,
1326 "name": "Mtable_ex",
1327 "as": "Mtable_ex"
1328 },
1329 {
1330 "type": "module",
1331 "line": 297,
1332 "filename": "linking.26.wasm",
1333 "module_type": "binary"
1334 },
1335 {
1336 "type": "assert_unlinkable",
1337 "line": 303,
1338 "filename": "linking.27.wasm",
1339 "module_type": "binary",
1340 "text": "incompatible import type"
1341 },
1342 {
1343 "type": "assert_unlinkable",
1344 "line": 307,
1345 "filename": "linking.28.wasm",
1346 "module_type": "binary",
1347 "text": "incompatible import type"
1348 },
1349 {
1350 "type": "module",
1351 "line": 314,
1352 "name": "Mm",
1353 "filename": "linking.29.wasm",
1354 "module_type": "binary"
1355 },
1356 {
1357 "type": "register",
1358 "line": 322,
1359 "name": "Mm",
1360 "as": "Mm"
1361 },
1362 {
1363 "type": "module",
1364 "line": 324,
1365 "name": "Nm",
1366 "filename": "linking.30.wasm",
1367 "module_type": "binary"
1368 },
1369 {
1370 "type": "assert_return",
1371 "line": 336,
1372 "action": {
1373 "type": "invoke",
1374 "module": "Mm",
1375 "field": "load",
1376 "args": [
1377 {
1378 "type": "i32",
1379 "value": "12"
1380 }
1381 ]
1382 },
1383 "expected": [
1384 {
1385 "type": "i32",
1386 "value": "2"
1387 }
1388 ]
1389 },
1390 {
1391 "type": "assert_return",
1392 "line": 337,
1393 "action": {
1394 "type": "invoke",
1395 "module": "Nm",
1396 "field": "Mm.load",
1397 "args": [
1398 {
1399 "type": "i32",
1400 "value": "12"
1401 }
1402 ]
1403 },
1404 "expected": [
1405 {
1406 "type": "i32",
1407 "value": "2"
1408 }
1409 ]
1410 },
1411 {
1412 "type": "assert_return",
1413 "line": 338,
1414 "action": {
1415 "type": "invoke",
1416 "module": "Nm",
1417 "field": "load",
1418 "args": [
1419 {
1420 "type": "i32",
1421 "value": "12"
1422 }
1423 ]
1424 },
1425 "expected": [
1426 {
1427 "type": "i32",
1428 "value": "242"
1429 }
1430 ]
1431 },
1432 {
1433 "type": "module",
1434 "line": 340,
1435 "name": "Om",
1436 "filename": "linking.31.wasm",
1437 "module_type": "binary"
1438 },
1439 {
1440 "type": "assert_return",
1441 "line": 349,
1442 "action": {
1443 "type": "invoke",
1444 "module": "Mm",
1445 "field": "load",
1446 "args": [
1447 {
1448 "type": "i32",
1449 "value": "12"
1450 }
1451 ]
1452 },
1453 "expected": [
1454 {
1455 "type": "i32",
1456 "value": "167"
1457 }
1458 ]
1459 },
1460 {
1461 "type": "assert_return",
1462 "line": 350,
1463 "action": {
1464 "type": "invoke",
1465 "module": "Nm",
1466 "field": "Mm.load",
1467 "args": [
1468 {
1469 "type": "i32",
1470 "value": "12"
1471 }
1472 ]
1473 },
1474 "expected": [
1475 {
1476 "type": "i32",
1477 "value": "167"
1478 }
1479 ]
1480 },
1481 {
1482 "type": "assert_return",
1483 "line": 351,
1484 "action": {
1485 "type": "invoke",
1486 "module": "Nm",
1487 "field": "load",
1488 "args": [
1489 {
1490 "type": "i32",
1491 "value": "12"
1492 }
1493 ]
1494 },
1495 "expected": [
1496 {
1497 "type": "i32",
1498 "value": "242"
1499 }
1500 ]
1501 },
1502 {
1503 "type": "assert_return",
1504 "line": 352,
1505 "action": {
1506 "type": "invoke",
1507 "module": "Om",
1508 "field": "load",
1509 "args": [
1510 {
1511 "type": "i32",
1512 "value": "12"
1513 }
1514 ]
1515 },
1516 "expected": [
1517 {
1518 "type": "i32",
1519 "value": "167"
1520 }
1521 ]
1522 },
1523 {
1524 "type": "module",
1525 "line": 354,
1526 "filename": "linking.32.wasm",
1527 "module_type": "binary"
1528 },
1529 {
1530 "type": "assert_uninstantiable",
1531 "line": 360,
1532 "filename": "linking.33.wasm",
1533 "module_type": "binary",
1534 "text": "out of bounds memory access"
1535 },
1536 {
1537 "type": "module",
1538 "line": 367,
1539 "name": "Pm",
1540 "filename": "linking.34.wasm",
1541 "module_type": "binary"
1542 },
1543 {
1544 "type": "assert_return",
1545 "line": 375,
1546 "action": {
1547 "type": "invoke",
1548 "module": "Pm",
1549 "field": "grow",
1550 "args": [
1551 {
1552 "type": "i32",
1553 "value": "0"
1554 }
1555 ]
1556 },
1557 "expected": [
1558 {
1559 "type": "i32",
1560 "value": "1"
1561 }
1562 ]
1563 },
1564 {
1565 "type": "assert_return",
1566 "line": 376,
1567 "action": {
1568 "type": "invoke",
1569 "module": "Pm",
1570 "field": "grow",
1571 "args": [
1572 {
1573 "type": "i32",
1574 "value": "2"
1575 }
1576 ]
1577 },
1578 "expected": [
1579 {
1580 "type": "i32",
1581 "value": "1"
1582 }
1583 ]
1584 },
1585 {
1586 "type": "assert_return",
1587 "line": 377,
1588 "action": {
1589 "type": "invoke",
1590 "module": "Pm",
1591 "field": "grow",
1592 "args": [
1593 {
1594 "type": "i32",
1595 "value": "0"
1596 }
1597 ]
1598 },
1599 "expected": [
1600 {
1601 "type": "i32",
1602 "value": "3"
1603 }
1604 ]
1605 },
1606 {
1607 "type": "assert_return",
1608 "line": 378,
1609 "action": {
1610 "type": "invoke",
1611 "module": "Pm",
1612 "field": "grow",
1613 "args": [
1614 {
1615 "type": "i32",
1616 "value": "1"
1617 }
1618 ]
1619 },
1620 "expected": [
1621 {
1622 "type": "i32",
1623 "value": "3"
1624 }
1625 ]
1626 },
1627 {
1628 "type": "assert_return",
1629 "line": 379,
1630 "action": {
1631 "type": "invoke",
1632 "module": "Pm",
1633 "field": "grow",
1634 "args": [
1635 {
1636 "type": "i32",
1637 "value": "1"
1638 }
1639 ]
1640 },
1641 "expected": [
1642 {
1643 "type": "i32",
1644 "value": "4"
1645 }
1646 ]
1647 },
1648 {
1649 "type": "assert_return",
1650 "line": 380,
1651 "action": {
1652 "type": "invoke",
1653 "module": "Pm",
1654 "field": "grow",
1655 "args": [
1656 {
1657 "type": "i32",
1658 "value": "0"
1659 }
1660 ]
1661 },
1662 "expected": [
1663 {
1664 "type": "i32",
1665 "value": "5"
1666 }
1667 ]
1668 },
1669 {
1670 "type": "assert_return",
1671 "line": 381,
1672 "action": {
1673 "type": "invoke",
1674 "module": "Pm",
1675 "field": "grow",
1676 "args": [
1677 {
1678 "type": "i32",
1679 "value": "1"
1680 }
1681 ]
1682 },
1683 "expected": [
1684 {
1685 "type": "i32",
1686 "value": "-1"
1687 }
1688 ]
1689 },
1690 {
1691 "type": "assert_return",
1692 "line": 382,
1693 "action": {
1694 "type": "invoke",
1695 "module": "Pm",
1696 "field": "grow",
1697 "args": [
1698 {
1699 "type": "i32",
1700 "value": "0"
1701 }
1702 ]
1703 },
1704 "expected": [
1705 {
1706 "type": "i32",
1707 "value": "5"
1708 }
1709 ]
1710 },
1711 {
1712 "type": "assert_unlinkable",
1713 "line": 385,
1714 "filename": "linking.35.wasm",
1715 "module_type": "binary",
1716 "text": "unknown import"
1717 },
1718 {
1719 "type": "assert_return",
1720 "line": 393,
1721 "action": {
1722 "type": "invoke",
1723 "module": "Mm",
1724 "field": "load",
1725 "args": [
1726 {
1727 "type": "i32",
1728 "value": "0"
1729 }
1730 ]
1731 },
1732 "expected": [
1733 {
1734 "type": "i32",
1735 "value": "0"
1736 }
1737 ]
1738 },
1739 {
1740 "type": "assert_uninstantiable",
1741 "line": 398,
1742 "filename": "linking.36.wasm",
1743 "module_type": "binary",
1744 "text": "out of bounds memory access"
1745 },
1746 {
1747 "type": "assert_return",
1748 "line": 406,
1749 "action": {
1750 "type": "invoke",
1751 "module": "Mm",
1752 "field": "load",
1753 "args": [
1754 {
1755 "type": "i32",
1756 "value": "0"
1757 }
1758 ]
1759 },
1760 "expected": [
1761 {
1762 "type": "i32",
1763 "value": "97"
1764 }
1765 ]
1766 },
1767 {
1768 "type": "assert_return",
1769 "line": 407,
1770 "action": {
1771 "type": "invoke",
1772 "module": "Mm",
1773 "field": "load",
1774 "args": [
1775 {
1776 "type": "i32",
1777 "value": "327670"
1778 }
1779 ]
1780 },
1781 "expected": [
1782 {
1783 "type": "i32",
1784 "value": "0"
1785 }
1786 ]
1787 },
1788 {
1789 "type": "assert_uninstantiable",
1790 "line": 410,
1791 "filename": "linking.37.wasm",
1792 "module_type": "binary",
1793 "text": "out of bounds table access"
1794 },
1795 {
1796 "type": "assert_return",
1797 "line": 419,
1798 "action": {
1799 "type": "invoke",
1800 "module": "Mm",
1801 "field": "load",
1802 "args": [
1803 {
1804 "type": "i32",
1805 "value": "0"
1806 }
1807 ]
1808 },
1809 "expected": [
1810 {
1811 "type": "i32",
1812 "value": "97"
1813 }
1814 ]
1815 },
1816 {
1817 "type": "module",
1818 "line": 422,
1819 "name": "Ms",
1820 "filename": "linking.38.wasm",
1821 "module_type": "binary"
1822 },
1823 {
1824 "type": "register",
1825 "line": 433,
1826 "name": "Ms",
1827 "as": "Ms"
1828 },
1829 {
1830 "type": "assert_uninstantiable",
1831 "line": 436,
1832 "filename": "linking.39.wasm",
1833 "module_type": "binary",
1834 "text": "unreachable"
1835 },
1836 {
1837 "type": "assert_return",
1838 "line": 452,
1839 "action": {
1840 "type": "invoke",
1841 "module": "Ms",
1842 "field": "get memory[0]",
1843 "args": []
1844 },
1845 "expected": [
1846 {
1847 "type": "i32",
1848 "value": "104"
1849 }
1850 ]
1851 },
1852 {
1853 "type": "assert_return",
1854 "line": 453,
1855 "action": {
1856 "type": "invoke",
1857 "module": "Ms",
1858 "field": "get table[0]",
1859 "args": []
1860 },
1861 "expected": [
1862 {
1863 "type": "i32",
1864 "value": "57005"
1865 }
1866 ]
1867 }
1868 ]
1869 }