Debian Codegraph @

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

raw
1 {
2 "source_filename": "tests/testsuite/proposals/wasm-3.0/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": 110,
390 "name": "Mref_ex",
391 "as": "Mref_ex"
392 },
393 {
394 "type": "module",
395 "line": 112,
396 "name": "Mref_im",
397 "filename": "linking.10.wasm",
398 "module_type": "binary"
399 },
400 {
401 "type": "assert_unlinkable",
402 "line": 133,
403 "filename": "linking.11.wasm",
404 "module_type": "binary",
405 "text": "incompatible import type"
406 },
407 {
408 "type": "assert_unlinkable",
409 "line": 138,
410 "filename": "linking.12.wasm",
411 "module_type": "binary",
412 "text": "incompatible import type"
413 },
414 {
415 "type": "assert_unlinkable",
416 "line": 142,
417 "filename": "linking.13.wasm",
418 "module_type": "binary",
419 "text": "incompatible import type"
420 },
421 {
422 "type": "assert_unlinkable",
423 "line": 146,
424 "filename": "linking.14.wasm",
425 "module_type": "binary",
426 "text": "incompatible import type"
427 },
428 {
429 "type": "assert_unlinkable",
430 "line": 151,
431 "filename": "linking.15.wasm",
432 "module_type": "binary",
433 "text": "incompatible import type"
434 },
435 {
436 "type": "assert_unlinkable",
437 "line": 155,
438 "filename": "linking.16.wasm",
439 "module_type": "binary",
440 "text": "incompatible import type"
441 },
442 {
443 "type": "assert_unlinkable",
444 "line": 159,
445 "filename": "linking.17.wasm",
446 "module_type": "binary",
447 "text": "incompatible import type"
448 },
449 {
450 "type": "assert_unlinkable",
451 "line": 164,
452 "filename": "linking.18.wasm",
453 "module_type": "binary",
454 "text": "incompatible import type"
455 },
456 {
457 "type": "assert_unlinkable",
458 "line": 168,
459 "filename": "linking.19.wasm",
460 "module_type": "binary",
461 "text": "incompatible import type"
462 },
463 {
464 "type": "assert_unlinkable",
465 "line": 172,
466 "filename": "linking.20.wasm",
467 "module_type": "binary",
468 "text": "incompatible import type"
469 },
470 {
471 "type": "assert_unlinkable",
472 "line": 176,
473 "filename": "linking.21.wasm",
474 "module_type": "binary",
475 "text": "incompatible import type"
476 },
477 {
478 "type": "assert_unlinkable",
479 "line": 182,
480 "filename": "linking.22.wasm",
481 "module_type": "binary",
482 "text": "incompatible import type"
483 },
484 {
485 "type": "assert_unlinkable",
486 "line": 186,
487 "filename": "linking.23.wasm",
488 "module_type": "binary",
489 "text": "incompatible import type"
490 },
491 {
492 "type": "assert_unlinkable",
493 "line": 190,
494 "filename": "linking.24.wasm",
495 "module_type": "binary",
496 "text": "incompatible import type"
497 },
498 {
499 "type": "assert_unlinkable",
500 "line": 194,
501 "filename": "linking.25.wasm",
502 "module_type": "binary",
503 "text": "incompatible import type"
504 },
505 {
506 "type": "assert_unlinkable",
507 "line": 199,
508 "filename": "linking.26.wasm",
509 "module_type": "binary",
510 "text": "incompatible import type"
511 },
512 {
513 "type": "assert_unlinkable",
514 "line": 203,
515 "filename": "linking.27.wasm",
516 "module_type": "binary",
517 "text": "incompatible import type"
518 },
519 {
520 "type": "assert_unlinkable",
521 "line": 207,
522 "filename": "linking.28.wasm",
523 "module_type": "binary",
524 "text": "incompatible import type"
525 },
526 {
527 "type": "assert_unlinkable",
528 "line": 211,
529 "filename": "linking.29.wasm",
530 "module_type": "binary",
531 "text": "incompatible import type"
532 },
533 {
534 "type": "assert_unlinkable",
535 "line": 216,
536 "filename": "linking.30.wasm",
537 "module_type": "binary",
538 "text": "incompatible import type"
539 },
540 {
541 "type": "assert_unlinkable",
542 "line": 220,
543 "filename": "linking.31.wasm",
544 "module_type": "binary",
545 "text": "incompatible import type"
546 },
547 {
548 "type": "assert_unlinkable",
549 "line": 224,
550 "filename": "linking.32.wasm",
551 "module_type": "binary",
552 "text": "incompatible import type"
553 },
554 {
555 "type": "assert_unlinkable",
556 "line": 228,
557 "filename": "linking.33.wasm",
558 "module_type": "binary",
559 "text": "incompatible import type"
560 },
561 {
562 "type": "assert_unlinkable",
563 "line": 233,
564 "filename": "linking.34.wasm",
565 "module_type": "binary",
566 "text": "incompatible import type"
567 },
568 {
569 "type": "assert_unlinkable",
570 "line": 237,
571 "filename": "linking.35.wasm",
572 "module_type": "binary",
573 "text": "incompatible import type"
574 },
575 {
576 "type": "assert_unlinkable",
577 "line": 241,
578 "filename": "linking.36.wasm",
579 "module_type": "binary",
580 "text": "incompatible import type"
581 },
582 {
583 "type": "assert_unlinkable",
584 "line": 245,
585 "filename": "linking.37.wasm",
586 "module_type": "binary",
587 "text": "incompatible import type"
588 },
589 {
590 "type": "assert_unlinkable",
591 "line": 250,
592 "filename": "linking.38.wasm",
593 "module_type": "binary",
594 "text": "incompatible import type"
595 },
596 {
597 "type": "assert_unlinkable",
598 "line": 254,
599 "filename": "linking.39.wasm",
600 "module_type": "binary",
601 "text": "incompatible import type"
602 },
603 {
604 "type": "assert_unlinkable",
605 "line": 258,
606 "filename": "linking.40.wasm",
607 "module_type": "binary",
608 "text": "incompatible import type"
609 },
610 {
611 "type": "assert_unlinkable",
612 "line": 262,
613 "filename": "linking.41.wasm",
614 "module_type": "binary",
615 "text": "incompatible import type"
616 },
617 {
618 "type": "module",
619 "line": 269,
620 "name": "Mt",
621 "filename": "linking.42.wasm",
622 "module_type": "binary"
623 },
624 {
625 "type": "register",
626 "line": 282,
627 "name": "Mt",
628 "as": "Mt"
629 },
630 {
631 "type": "module",
632 "line": 284,
633 "name": "Nt",
634 "filename": "linking.43.wasm",
635 "module_type": "binary"
636 },
637 {
638 "type": "assert_return",
639 "line": 303,
640 "action": {
641 "type": "invoke",
642 "module": "Mt",
643 "field": "call",
644 "args": [
645 {
646 "type": "i32",
647 "value": "2"
648 }
649 ]
650 },
651 "expected": [
652 {
653 "type": "i32",
654 "value": "4"
655 }
656 ]
657 },
658 {
659 "type": "assert_return",
660 "line": 304,
661 "action": {
662 "type": "invoke",
663 "module": "Nt",
664 "field": "Mt.call",
665 "args": [
666 {
667 "type": "i32",
668 "value": "2"
669 }
670 ]
671 },
672 "expected": [
673 {
674 "type": "i32",
675 "value": "4"
676 }
677 ]
678 },
679 {
680 "type": "assert_return",
681 "line": 305,
682 "action": {
683 "type": "invoke",
684 "module": "Nt",
685 "field": "call",
686 "args": [
687 {
688 "type": "i32",
689 "value": "2"
690 }
691 ]
692 },
693 "expected": [
694 {
695 "type": "i32",
696 "value": "5"
697 }
698 ]
699 },
700 {
701 "type": "assert_return",
702 "line": 306,
703 "action": {
704 "type": "invoke",
705 "module": "Nt",
706 "field": "call Mt.call",
707 "args": [
708 {
709 "type": "i32",
710 "value": "2"
711 }
712 ]
713 },
714 "expected": [
715 {
716 "type": "i32",
717 "value": "4"
718 }
719 ]
720 },
721 {
722 "type": "assert_trap",
723 "line": 308,
724 "action": {
725 "type": "invoke",
726 "module": "Mt",
727 "field": "call",
728 "args": [
729 {
730 "type": "i32",
731 "value": "1"
732 }
733 ]
734 },
735 "text": "uninitialized element"
736 },
737 {
738 "type": "assert_trap",
739 "line": 309,
740 "action": {
741 "type": "invoke",
742 "module": "Nt",
743 "field": "Mt.call",
744 "args": [
745 {
746 "type": "i32",
747 "value": "1"
748 }
749 ]
750 },
751 "text": "uninitialized element"
752 },
753 {
754 "type": "assert_return",
755 "line": 310,
756 "action": {
757 "type": "invoke",
758 "module": "Nt",
759 "field": "call",
760 "args": [
761 {
762 "type": "i32",
763 "value": "1"
764 }
765 ]
766 },
767 "expected": [
768 {
769 "type": "i32",
770 "value": "5"
771 }
772 ]
773 },
774 {
775 "type": "assert_trap",
776 "line": 311,
777 "action": {
778 "type": "invoke",
779 "module": "Nt",
780 "field": "call Mt.call",
781 "args": [
782 {
783 "type": "i32",
784 "value": "1"
785 }
786 ]
787 },
788 "text": "uninitialized element"
789 },
790 {
791 "type": "assert_trap",
792 "line": 313,
793 "action": {
794 "type": "invoke",
795 "module": "Mt",
796 "field": "call",
797 "args": [
798 {
799 "type": "i32",
800 "value": "0"
801 }
802 ]
803 },
804 "text": "uninitialized element"
805 },
806 {
807 "type": "assert_trap",
808 "line": 314,
809 "action": {
810 "type": "invoke",
811 "module": "Nt",
812 "field": "Mt.call",
813 "args": [
814 {
815 "type": "i32",
816 "value": "0"
817 }
818 ]
819 },
820 "text": "uninitialized element"
821 },
822 {
823 "type": "assert_return",
824 "line": 315,
825 "action": {
826 "type": "invoke",
827 "module": "Nt",
828 "field": "call",
829 "args": [
830 {
831 "type": "i32",
832 "value": "0"
833 }
834 ]
835 },
836 "expected": [
837 {
838 "type": "i32",
839 "value": "5"
840 }
841 ]
842 },
843 {
844 "type": "assert_trap",
845 "line": 316,
846 "action": {
847 "type": "invoke",
848 "module": "Nt",
849 "field": "call Mt.call",
850 "args": [
851 {
852 "type": "i32",
853 "value": "0"
854 }
855 ]
856 },
857 "text": "uninitialized element"
858 },
859 {
860 "type": "assert_trap",
861 "line": 318,
862 "action": {
863 "type": "invoke",
864 "module": "Mt",
865 "field": "call",
866 "args": [
867 {
868 "type": "i32",
869 "value": "20"
870 }
871 ]
872 },
873 "text": "undefined element"
874 },
875 {
876 "type": "assert_trap",
877 "line": 319,
878 "action": {
879 "type": "invoke",
880 "module": "Nt",
881 "field": "Mt.call",
882 "args": [
883 {
884 "type": "i32",
885 "value": "20"
886 }
887 ]
888 },
889 "text": "undefined element"
890 },
891 {
892 "type": "assert_trap",
893 "line": 320,
894 "action": {
895 "type": "invoke",
896 "module": "Nt",
897 "field": "call",
898 "args": [
899 {
900 "type": "i32",
901 "value": "7"
902 }
903 ]
904 },
905 "text": "undefined element"
906 },
907 {
908 "type": "assert_trap",
909 "line": 321,
910 "action": {
911 "type": "invoke",
912 "module": "Nt",
913 "field": "call Mt.call",
914 "args": [
915 {
916 "type": "i32",
917 "value": "20"
918 }
919 ]
920 },
921 "text": "undefined element"
922 },
923 {
924 "type": "assert_return",
925 "line": 323,
926 "action": {
927 "type": "invoke",
928 "module": "Nt",
929 "field": "call",
930 "args": [
931 {
932 "type": "i32",
933 "value": "3"
934 }
935 ]
936 },
937 "expected": [
938 {
939 "type": "i32",
940 "value": "-4"
941 }
942 ]
943 },
944 {
945 "type": "assert_trap",
946 "line": 324,
947 "action": {
948 "type": "invoke",
949 "module": "Nt",
950 "field": "call",
951 "args": [
952 {
953 "type": "i32",
954 "value": "4"
955 }
956 ]
957 },
958 "text": "indirect call type mismatch"
959 },
960 {
961 "type": "module",
962 "line": 326,
963 "name": "Ot",
964 "filename": "linking.44.wasm",
965 "module_type": "binary"
966 },
967 {
968 "type": "assert_return",
969 "line": 339,
970 "action": {
971 "type": "invoke",
972 "module": "Mt",
973 "field": "call",
974 "args": [
975 {
976 "type": "i32",
977 "value": "3"
978 }
979 ]
980 },
981 "expected": [
982 {
983 "type": "i32",
984 "value": "4"
985 }
986 ]
987 },
988 {
989 "type": "assert_return",
990 "line": 340,
991 "action": {
992 "type": "invoke",
993 "module": "Nt",
994 "field": "Mt.call",
995 "args": [
996 {
997 "type": "i32",
998 "value": "3"
999 }
1000 ]
1001 },
1002 "expected": [
1003 {
1004 "type": "i32",
1005 "value": "4"
1006 }
1007 ]
1008 },
1009 {
1010 "type": "assert_return",
1011 "line": 341,
1012 "action": {
1013 "type": "invoke",
1014 "module": "Nt",
1015 "field": "call Mt.call",
1016 "args": [
1017 {
1018 "type": "i32",
1019 "value": "3"
1020 }
1021 ]
1022 },
1023 "expected": [
1024 {
1025 "type": "i32",
1026 "value": "4"
1027 }
1028 ]
1029 },
1030 {
1031 "type": "assert_return",
1032 "line": 342,
1033 "action": {
1034 "type": "invoke",
1035 "module": "Ot",
1036 "field": "call",
1037 "args": [
1038 {
1039 "type": "i32",
1040 "value": "3"
1041 }
1042 ]
1043 },
1044 "expected": [
1045 {
1046 "type": "i32",
1047 "value": "4"
1048 }
1049 ]
1050 },
1051 {
1052 "type": "assert_return",
1053 "line": 344,
1054 "action": {
1055 "type": "invoke",
1056 "module": "Mt",
1057 "field": "call",
1058 "args": [
1059 {
1060 "type": "i32",
1061 "value": "2"
1062 }
1063 ]
1064 },
1065 "expected": [
1066 {
1067 "type": "i32",
1068 "value": "-4"
1069 }
1070 ]
1071 },
1072 {
1073 "type": "assert_return",
1074 "line": 345,
1075 "action": {
1076 "type": "invoke",
1077 "module": "Nt",
1078 "field": "Mt.call",
1079 "args": [
1080 {
1081 "type": "i32",
1082 "value": "2"
1083 }
1084 ]
1085 },
1086 "expected": [
1087 {
1088 "type": "i32",
1089 "value": "-4"
1090 }
1091 ]
1092 },
1093 {
1094 "type": "assert_return",
1095 "line": 346,
1096 "action": {
1097 "type": "invoke",
1098 "module": "Nt",
1099 "field": "call",
1100 "args": [
1101 {
1102 "type": "i32",
1103 "value": "2"
1104 }
1105 ]
1106 },
1107 "expected": [
1108 {
1109 "type": "i32",
1110 "value": "5"
1111 }
1112 ]
1113 },
1114 {
1115 "type": "assert_return",
1116 "line": 347,
1117 "action": {
1118 "type": "invoke",
1119 "module": "Nt",
1120 "field": "call Mt.call",
1121 "args": [
1122 {
1123 "type": "i32",
1124 "value": "2"
1125 }
1126 ]
1127 },
1128 "expected": [
1129 {
1130 "type": "i32",
1131 "value": "-4"
1132 }
1133 ]
1134 },
1135 {
1136 "type": "assert_return",
1137 "line": 348,
1138 "action": {
1139 "type": "invoke",
1140 "module": "Ot",
1141 "field": "call",
1142 "args": [
1143 {
1144 "type": "i32",
1145 "value": "2"
1146 }
1147 ]
1148 },
1149 "expected": [
1150 {
1151 "type": "i32",
1152 "value": "-4"
1153 }
1154 ]
1155 },
1156 {
1157 "type": "assert_return",
1158 "line": 350,
1159 "action": {
1160 "type": "invoke",
1161 "module": "Mt",
1162 "field": "call",
1163 "args": [
1164 {
1165 "type": "i32",
1166 "value": "1"
1167 }
1168 ]
1169 },
1170 "expected": [
1171 {
1172 "type": "i32",
1173 "value": "6"
1174 }
1175 ]
1176 },
1177 {
1178 "type": "assert_return",
1179 "line": 351,
1180 "action": {
1181 "type": "invoke",
1182 "module": "Nt",
1183 "field": "Mt.call",
1184 "args": [
1185 {
1186 "type": "i32",
1187 "value": "1"
1188 }
1189 ]
1190 },
1191 "expected": [
1192 {
1193 "type": "i32",
1194 "value": "6"
1195 }
1196 ]
1197 },
1198 {
1199 "type": "assert_return",
1200 "line": 352,
1201 "action": {
1202 "type": "invoke",
1203 "module": "Nt",
1204 "field": "call",
1205 "args": [
1206 {
1207 "type": "i32",
1208 "value": "1"
1209 }
1210 ]
1211 },
1212 "expected": [
1213 {
1214 "type": "i32",
1215 "value": "5"
1216 }
1217 ]
1218 },
1219 {
1220 "type": "assert_return",
1221 "line": 353,
1222 "action": {
1223 "type": "invoke",
1224 "module": "Nt",
1225 "field": "call Mt.call",
1226 "args": [
1227 {
1228 "type": "i32",
1229 "value": "1"
1230 }
1231 ]
1232 },
1233 "expected": [
1234 {
1235 "type": "i32",
1236 "value": "6"
1237 }
1238 ]
1239 },
1240 {
1241 "type": "assert_return",
1242 "line": 354,
1243 "action": {
1244 "type": "invoke",
1245 "module": "Ot",
1246 "field": "call",
1247 "args": [
1248 {
1249 "type": "i32",
1250 "value": "1"
1251 }
1252 ]
1253 },
1254 "expected": [
1255 {
1256 "type": "i32",
1257 "value": "6"
1258 }
1259 ]
1260 },
1261 {
1262 "type": "assert_trap",
1263 "line": 356,
1264 "action": {
1265 "type": "invoke",
1266 "module": "Mt",
1267 "field": "call",
1268 "args": [
1269 {
1270 "type": "i32",
1271 "value": "0"
1272 }
1273 ]
1274 },
1275 "text": "uninitialized element"
1276 },
1277 {
1278 "type": "assert_trap",
1279 "line": 357,
1280 "action": {
1281 "type": "invoke",
1282 "module": "Nt",
1283 "field": "Mt.call",
1284 "args": [
1285 {
1286 "type": "i32",
1287 "value": "0"
1288 }
1289 ]
1290 },
1291 "text": "uninitialized element"
1292 },
1293 {
1294 "type": "assert_return",
1295 "line": 358,
1296 "action": {
1297 "type": "invoke",
1298 "module": "Nt",
1299 "field": "call",
1300 "args": [
1301 {
1302 "type": "i32",
1303 "value": "0"
1304 }
1305 ]
1306 },
1307 "expected": [
1308 {
1309 "type": "i32",
1310 "value": "5"
1311 }
1312 ]
1313 },
1314 {
1315 "type": "assert_trap",
1316 "line": 359,
1317 "action": {
1318 "type": "invoke",
1319 "module": "Nt",
1320 "field": "call Mt.call",
1321 "args": [
1322 {
1323 "type": "i32",
1324 "value": "0"
1325 }
1326 ]
1327 },
1328 "text": "uninitialized element"
1329 },
1330 {
1331 "type": "assert_trap",
1332 "line": 360,
1333 "action": {
1334 "type": "invoke",
1335 "module": "Ot",
1336 "field": "call",
1337 "args": [
1338 {
1339 "type": "i32",
1340 "value": "0"
1341 }
1342 ]
1343 },
1344 "text": "uninitialized element"
1345 },
1346 {
1347 "type": "assert_trap",
1348 "line": 362,
1349 "action": {
1350 "type": "invoke",
1351 "module": "Ot",
1352 "field": "call",
1353 "args": [
1354 {
1355 "type": "i32",
1356 "value": "20"
1357 }
1358 ]
1359 },
1360 "text": "undefined element"
1361 },
1362 {
1363 "type": "module",
1364 "line": 364,
1365 "filename": "linking.45.wasm",
1366 "module_type": "binary"
1367 },
1368 {
1369 "type": "module",
1370 "line": 370,
1371 "name": "G1",
1372 "filename": "linking.46.wasm",
1373 "module_type": "binary"
1374 },
1375 {
1376 "type": "register",
1377 "line": 371,
1378 "name": "G1",
1379 "as": "G1"
1380 },
1381 {
1382 "type": "module",
1383 "line": 372,
1384 "name": "G2",
1385 "filename": "linking.47.wasm",
1386 "module_type": "binary"
1387 },
1388 {
1389 "type": "assert_return",
1390 "line": 376,
1391 "action": {
1392 "type": "get",
1393 "module": "G2",
1394 "field": "g"
1395 },
1396 "expected": [
1397 {
1398 "type": "i32",
1399 "value": "5"
1400 }
1401 ]
1402 },
1403 {
1404 "type": "assert_uninstantiable",
1405 "line": 379,
1406 "filename": "linking.48.wasm",
1407 "module_type": "binary",
1408 "text": "out of bounds table access"
1409 },
1410 {
1411 "type": "assert_unlinkable",
1412 "line": 388,
1413 "filename": "linking.49.wasm",
1414 "module_type": "binary",
1415 "text": "unknown import"
1416 },
1417 {
1418 "type": "assert_trap",
1419 "line": 397,
1420 "action": {
1421 "type": "invoke",
1422 "module": "Mt",
1423 "field": "call",
1424 "args": [
1425 {
1426 "type": "i32",
1427 "value": "7"
1428 }
1429 ]
1430 },
1431 "text": "uninitialized element"
1432 },
1433 {
1434 "type": "assert_uninstantiable",
1435 "line": 402,
1436 "filename": "linking.50.wasm",
1437 "module_type": "binary",
1438 "text": "out of bounds table access"
1439 },
1440 {
1441 "type": "assert_return",
1442 "line": 410,
1443 "action": {
1444 "type": "invoke",
1445 "module": "Mt",
1446 "field": "call",
1447 "args": [
1448 {
1449 "type": "i32",
1450 "value": "7"
1451 }
1452 ]
1453 },
1454 "expected": [
1455 {
1456 "type": "i32",
1457 "value": "0"
1458 }
1459 ]
1460 },
1461 {
1462 "type": "assert_trap",
1463 "line": 411,
1464 "action": {
1465 "type": "invoke",
1466 "module": "Mt",
1467 "field": "call",
1468 "args": [
1469 {
1470 "type": "i32",
1471 "value": "8"
1472 }
1473 ]
1474 },
1475 "text": "uninitialized element"
1476 },
1477 {
1478 "type": "assert_uninstantiable",
1479 "line": 414,
1480 "filename": "linking.51.wasm",
1481 "module_type": "binary",
1482 "text": "out of bounds memory access"
1483 },
1484 {
1485 "type": "assert_return",
1486 "line": 423,
1487 "action": {
1488 "type": "invoke",
1489 "module": "Mt",
1490 "field": "call",
1491 "args": [
1492 {
1493 "type": "i32",
1494 "value": "7"
1495 }
1496 ]
1497 },
1498 "expected": [
1499 {
1500 "type": "i32",
1501 "value": "0"
1502 }
1503 ]
1504 },
1505 {
1506 "type": "module",
1507 "line": 426,
1508 "name": "Mtable_ex",
1509 "filename": "linking.52.wasm",
1510 "module_type": "binary"
1511 },
1512 {
1513 "type": "register",
1514 "line": 432,
1515 "name": "Mtable_ex",
1516 "as": "Mtable_ex"
1517 },
1518 {
1519 "type": "module",
1520 "line": 434,
1521 "filename": "linking.53.wasm",
1522 "module_type": "binary"
1523 },
1524 {
1525 "type": "assert_unlinkable",
1526 "line": 442,
1527 "filename": "linking.54.wasm",
1528 "module_type": "binary",
1529 "text": "incompatible import type"
1530 },
1531 {
1532 "type": "assert_unlinkable",
1533 "line": 446,
1534 "filename": "linking.55.wasm",
1535 "module_type": "binary",
1536 "text": "incompatible import type"
1537 },
1538 {
1539 "type": "assert_unlinkable",
1540 "line": 451,
1541 "filename": "linking.56.wasm",
1542 "module_type": "binary",
1543 "text": "incompatible import type"
1544 },
1545 {
1546 "type": "assert_unlinkable",
1547 "line": 455,
1548 "filename": "linking.57.wasm",
1549 "module_type": "binary",
1550 "text": "incompatible import type"
1551 },
1552 {
1553 "type": "assert_unlinkable",
1554 "line": 460,
1555 "filename": "linking.58.wasm",
1556 "module_type": "binary",
1557 "text": "incompatible import type"
1558 },
1559 {
1560 "type": "assert_unlinkable",
1561 "line": 464,
1562 "filename": "linking.59.wasm",
1563 "module_type": "binary",
1564 "text": "incompatible import type"
1565 },
1566 {
1567 "type": "module",
1568 "line": 471,
1569 "name": "Mm",
1570 "filename": "linking.60.wasm",
1571 "module_type": "binary"
1572 },
1573 {
1574 "type": "register",
1575 "line": 479,
1576 "name": "Mm",
1577 "as": "Mm"
1578 },
1579 {
1580 "type": "module",
1581 "line": 481,
1582 "name": "Nm",
1583 "filename": "linking.61.wasm",
1584 "module_type": "binary"
1585 },
1586 {
1587 "type": "assert_return",
1588 "line": 493,
1589 "action": {
1590 "type": "invoke",
1591 "module": "Mm",
1592 "field": "load",
1593 "args": [
1594 {
1595 "type": "i32",
1596 "value": "12"
1597 }
1598 ]
1599 },
1600 "expected": [
1601 {
1602 "type": "i32",
1603 "value": "2"
1604 }
1605 ]
1606 },
1607 {
1608 "type": "assert_return",
1609 "line": 494,
1610 "action": {
1611 "type": "invoke",
1612 "module": "Nm",
1613 "field": "Mm.load",
1614 "args": [
1615 {
1616 "type": "i32",
1617 "value": "12"
1618 }
1619 ]
1620 },
1621 "expected": [
1622 {
1623 "type": "i32",
1624 "value": "2"
1625 }
1626 ]
1627 },
1628 {
1629 "type": "assert_return",
1630 "line": 495,
1631 "action": {
1632 "type": "invoke",
1633 "module": "Nm",
1634 "field": "load",
1635 "args": [
1636 {
1637 "type": "i32",
1638 "value": "12"
1639 }
1640 ]
1641 },
1642 "expected": [
1643 {
1644 "type": "i32",
1645 "value": "242"
1646 }
1647 ]
1648 },
1649 {
1650 "type": "module",
1651 "line": 497,
1652 "name": "Om",
1653 "filename": "linking.62.wasm",
1654 "module_type": "binary"
1655 },
1656 {
1657 "type": "assert_return",
1658 "line": 506,
1659 "action": {
1660 "type": "invoke",
1661 "module": "Mm",
1662 "field": "load",
1663 "args": [
1664 {
1665 "type": "i32",
1666 "value": "12"
1667 }
1668 ]
1669 },
1670 "expected": [
1671 {
1672 "type": "i32",
1673 "value": "167"
1674 }
1675 ]
1676 },
1677 {
1678 "type": "assert_return",
1679 "line": 507,
1680 "action": {
1681 "type": "invoke",
1682 "module": "Nm",
1683 "field": "Mm.load",
1684 "args": [
1685 {
1686 "type": "i32",
1687 "value": "12"
1688 }
1689 ]
1690 },
1691 "expected": [
1692 {
1693 "type": "i32",
1694 "value": "167"
1695 }
1696 ]
1697 },
1698 {
1699 "type": "assert_return",
1700 "line": 508,
1701 "action": {
1702 "type": "invoke",
1703 "module": "Nm",
1704 "field": "load",
1705 "args": [
1706 {
1707 "type": "i32",
1708 "value": "12"
1709 }
1710 ]
1711 },
1712 "expected": [
1713 {
1714 "type": "i32",
1715 "value": "242"
1716 }
1717 ]
1718 },
1719 {
1720 "type": "assert_return",
1721 "line": 509,
1722 "action": {
1723 "type": "invoke",
1724 "module": "Om",
1725 "field": "load",
1726 "args": [
1727 {
1728 "type": "i32",
1729 "value": "12"
1730 }
1731 ]
1732 },
1733 "expected": [
1734 {
1735 "type": "i32",
1736 "value": "167"
1737 }
1738 ]
1739 },
1740 {
1741 "type": "module",
1742 "line": 511,
1743 "filename": "linking.63.wasm",
1744 "module_type": "binary"
1745 },
1746 {
1747 "type": "assert_uninstantiable",
1748 "line": 517,
1749 "filename": "linking.64.wasm",
1750 "module_type": "binary",
1751 "text": "out of bounds memory access"
1752 },
1753 {
1754 "type": "module",
1755 "line": 524,
1756 "name": "Pm",
1757 "filename": "linking.65.wasm",
1758 "module_type": "binary"
1759 },
1760 {
1761 "type": "assert_return",
1762 "line": 532,
1763 "action": {
1764 "type": "invoke",
1765 "module": "Pm",
1766 "field": "grow",
1767 "args": [
1768 {
1769 "type": "i32",
1770 "value": "0"
1771 }
1772 ]
1773 },
1774 "expected": [
1775 {
1776 "type": "i32",
1777 "value": "1"
1778 }
1779 ]
1780 },
1781 {
1782 "type": "assert_return",
1783 "line": 533,
1784 "action": {
1785 "type": "invoke",
1786 "module": "Pm",
1787 "field": "grow",
1788 "args": [
1789 {
1790 "type": "i32",
1791 "value": "2"
1792 }
1793 ]
1794 },
1795 "expected": [
1796 {
1797 "type": "i32",
1798 "value": "1"
1799 }
1800 ]
1801 },
1802 {
1803 "type": "assert_return",
1804 "line": 534,
1805 "action": {
1806 "type": "invoke",
1807 "module": "Pm",
1808 "field": "grow",
1809 "args": [
1810 {
1811 "type": "i32",
1812 "value": "0"
1813 }
1814 ]
1815 },
1816 "expected": [
1817 {
1818 "type": "i32",
1819 "value": "3"
1820 }
1821 ]
1822 },
1823 {
1824 "type": "assert_return",
1825 "line": 535,
1826 "action": {
1827 "type": "invoke",
1828 "module": "Pm",
1829 "field": "grow",
1830 "args": [
1831 {
1832 "type": "i32",
1833 "value": "1"
1834 }
1835 ]
1836 },
1837 "expected": [
1838 {
1839 "type": "i32",
1840 "value": "3"
1841 }
1842 ]
1843 },
1844 {
1845 "type": "assert_return",
1846 "line": 536,
1847 "action": {
1848 "type": "invoke",
1849 "module": "Pm",
1850 "field": "grow",
1851 "args": [
1852 {
1853 "type": "i32",
1854 "value": "1"
1855 }
1856 ]
1857 },
1858 "expected": [
1859 {
1860 "type": "i32",
1861 "value": "4"
1862 }
1863 ]
1864 },
1865 {
1866 "type": "assert_return",
1867 "line": 537,
1868 "action": {
1869 "type": "invoke",
1870 "module": "Pm",
1871 "field": "grow",
1872 "args": [
1873 {
1874 "type": "i32",
1875 "value": "0"
1876 }
1877 ]
1878 },
1879 "expected": [
1880 {
1881 "type": "i32",
1882 "value": "5"
1883 }
1884 ]
1885 },
1886 {
1887 "type": "assert_return",
1888 "line": 538,
1889 "action": {
1890 "type": "invoke",
1891 "module": "Pm",
1892 "field": "grow",
1893 "args": [
1894 {
1895 "type": "i32",
1896 "value": "1"
1897 }
1898 ]
1899 },
1900 "expected": [
1901 {
1902 "type": "i32",
1903 "value": "-1"
1904 }
1905 ]
1906 },
1907 {
1908 "type": "assert_return",
1909 "line": 539,
1910 "action": {
1911 "type": "invoke",
1912 "module": "Pm",
1913 "field": "grow",
1914 "args": [
1915 {
1916 "type": "i32",
1917 "value": "0"
1918 }
1919 ]
1920 },
1921 "expected": [
1922 {
1923 "type": "i32",
1924 "value": "5"
1925 }
1926 ]
1927 },
1928 {
1929 "type": "assert_unlinkable",
1930 "line": 542,
1931 "filename": "linking.66.wasm",
1932 "module_type": "binary",
1933 "text": "unknown import"
1934 },
1935 {
1936 "type": "assert_return",
1937 "line": 550,
1938 "action": {
1939 "type": "invoke",
1940 "module": "Mm",
1941 "field": "load",
1942 "args": [
1943 {
1944 "type": "i32",
1945 "value": "0"
1946 }
1947 ]
1948 },
1949 "expected": [
1950 {
1951 "type": "i32",
1952 "value": "0"
1953 }
1954 ]
1955 },
1956 {
1957 "type": "assert_uninstantiable",
1958 "line": 555,
1959 "filename": "linking.67.wasm",
1960 "module_type": "binary",
1961 "text": "out of bounds memory access"
1962 },
1963 {
1964 "type": "assert_return",
1965 "line": 563,
1966 "action": {
1967 "type": "invoke",
1968 "module": "Mm",
1969 "field": "load",
1970 "args": [
1971 {
1972 "type": "i32",
1973 "value": "0"
1974 }
1975 ]
1976 },
1977 "expected": [
1978 {
1979 "type": "i32",
1980 "value": "97"
1981 }
1982 ]
1983 },
1984 {
1985 "type": "assert_return",
1986 "line": 564,
1987 "action": {
1988 "type": "invoke",
1989 "module": "Mm",
1990 "field": "load",
1991 "args": [
1992 {
1993 "type": "i32",
1994 "value": "327670"
1995 }
1996 ]
1997 },
1998 "expected": [
1999 {
2000 "type": "i32",
2001 "value": "0"
2002 }
2003 ]
2004 },
2005 {
2006 "type": "assert_uninstantiable",
2007 "line": 567,
2008 "filename": "linking.68.wasm",
2009 "module_type": "binary",
2010 "text": "out of bounds table access"
2011 },
2012 {
2013 "type": "assert_return",
2014 "line": 576,
2015 "action": {
2016 "type": "invoke",
2017 "module": "Mm",
2018 "field": "load",
2019 "args": [
2020 {
2021 "type": "i32",
2022 "value": "0"
2023 }
2024 ]
2025 },
2026 "expected": [
2027 {
2028 "type": "i32",
2029 "value": "97"
2030 }
2031 ]
2032 },
2033 {
2034 "type": "module",
2035 "line": 579,
2036 "name": "Ms",
2037 "filename": "linking.69.wasm",
2038 "module_type": "binary"
2039 },
2040 {
2041 "type": "register",
2042 "line": 590,
2043 "name": "Ms",
2044 "as": "Ms"
2045 },
2046 {
2047 "type": "assert_uninstantiable",
2048 "line": 593,
2049 "filename": "linking.70.wasm",
2050 "module_type": "binary",
2051 "text": "unreachable"
2052 },
2053 {
2054 "type": "assert_return",
2055 "line": 609,
2056 "action": {
2057 "type": "invoke",
2058 "module": "Ms",
2059 "field": "get memory[0]",
2060 "args": []
2061 },
2062 "expected": [
2063 {
2064 "type": "i32",
2065 "value": "104"
2066 }
2067 ]
2068 },
2069 {
2070 "type": "assert_return",
2071 "line": 610,
2072 "action": {
2073 "type": "invoke",
2074 "module": "Ms",
2075 "field": "get table[0]",
2076 "args": []
2077 },
2078 "expected": [
2079 {
2080 "type": "i32",
2081 "value": "57005"
2082 }
2083 ]
2084 }
2085 ]
2086 }