Debian Codegraph @

tests/snapshots/testsuite/imports.wast.json

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