Debian Codegraph @

tests/snapshots/testsuite/table_fill.wast.json

raw
1 {
2 "source_filename": "tests/testsuite/table_fill.wast",
3 "commands": [
4 {
5 "type": "module",
6 "line": 1,
7 "filename": "table_fill.0.wasm",
8 "module_type": "binary"
9 },
10 {
11 "type": "assert_return",
12 "line": 17,
13 "action": {
14 "type": "invoke",
15 "field": "get",
16 "args": [
17 {
18 "type": "i32",
19 "value": "1"
20 }
21 ]
22 },
23 "expected": [
24 {
25 "type": "externref",
26 "value": "null"
27 }
28 ]
29 },
30 {
31 "type": "assert_return",
32 "line": 18,
33 "action": {
34 "type": "invoke",
35 "field": "get",
36 "args": [
37 {
38 "type": "i32",
39 "value": "2"
40 }
41 ]
42 },
43 "expected": [
44 {
45 "type": "externref",
46 "value": "null"
47 }
48 ]
49 },
50 {
51 "type": "assert_return",
52 "line": 19,
53 "action": {
54 "type": "invoke",
55 "field": "get",
56 "args": [
57 {
58 "type": "i32",
59 "value": "3"
60 }
61 ]
62 },
63 "expected": [
64 {
65 "type": "externref",
66 "value": "null"
67 }
68 ]
69 },
70 {
71 "type": "assert_return",
72 "line": 20,
73 "action": {
74 "type": "invoke",
75 "field": "get",
76 "args": [
77 {
78 "type": "i32",
79 "value": "4"
80 }
81 ]
82 },
83 "expected": [
84 {
85 "type": "externref",
86 "value": "null"
87 }
88 ]
89 },
90 {
91 "type": "assert_return",
92 "line": 21,
93 "action": {
94 "type": "invoke",
95 "field": "get",
96 "args": [
97 {
98 "type": "i32",
99 "value": "5"
100 }
101 ]
102 },
103 "expected": [
104 {
105 "type": "externref",
106 "value": "null"
107 }
108 ]
109 },
110 {
111 "type": "assert_return",
112 "line": 23,
113 "action": {
114 "type": "invoke",
115 "field": "fill",
116 "args": [
117 {
118 "type": "i32",
119 "value": "2"
120 },
121 {
122 "type": "externref",
123 "value": "1"
124 },
125 {
126 "type": "i32",
127 "value": "3"
128 }
129 ]
130 },
131 "expected": []
132 },
133 {
134 "type": "assert_return",
135 "line": 24,
136 "action": {
137 "type": "invoke",
138 "field": "get",
139 "args": [
140 {
141 "type": "i32",
142 "value": "1"
143 }
144 ]
145 },
146 "expected": [
147 {
148 "type": "externref",
149 "value": "null"
150 }
151 ]
152 },
153 {
154 "type": "assert_return",
155 "line": 25,
156 "action": {
157 "type": "invoke",
158 "field": "get",
159 "args": [
160 {
161 "type": "i32",
162 "value": "2"
163 }
164 ]
165 },
166 "expected": [
167 {
168 "type": "externref",
169 "value": "1"
170 }
171 ]
172 },
173 {
174 "type": "assert_return",
175 "line": 26,
176 "action": {
177 "type": "invoke",
178 "field": "get",
179 "args": [
180 {
181 "type": "i32",
182 "value": "3"
183 }
184 ]
185 },
186 "expected": [
187 {
188 "type": "externref",
189 "value": "1"
190 }
191 ]
192 },
193 {
194 "type": "assert_return",
195 "line": 27,
196 "action": {
197 "type": "invoke",
198 "field": "get",
199 "args": [
200 {
201 "type": "i32",
202 "value": "4"
203 }
204 ]
205 },
206 "expected": [
207 {
208 "type": "externref",
209 "value": "1"
210 }
211 ]
212 },
213 {
214 "type": "assert_return",
215 "line": 28,
216 "action": {
217 "type": "invoke",
218 "field": "get",
219 "args": [
220 {
221 "type": "i32",
222 "value": "5"
223 }
224 ]
225 },
226 "expected": [
227 {
228 "type": "externref",
229 "value": "null"
230 }
231 ]
232 },
233 {
234 "type": "assert_return",
235 "line": 30,
236 "action": {
237 "type": "invoke",
238 "field": "fill",
239 "args": [
240 {
241 "type": "i32",
242 "value": "4"
243 },
244 {
245 "type": "externref",
246 "value": "2"
247 },
248 {
249 "type": "i32",
250 "value": "2"
251 }
252 ]
253 },
254 "expected": []
255 },
256 {
257 "type": "assert_return",
258 "line": 31,
259 "action": {
260 "type": "invoke",
261 "field": "get",
262 "args": [
263 {
264 "type": "i32",
265 "value": "3"
266 }
267 ]
268 },
269 "expected": [
270 {
271 "type": "externref",
272 "value": "1"
273 }
274 ]
275 },
276 {
277 "type": "assert_return",
278 "line": 32,
279 "action": {
280 "type": "invoke",
281 "field": "get",
282 "args": [
283 {
284 "type": "i32",
285 "value": "4"
286 }
287 ]
288 },
289 "expected": [
290 {
291 "type": "externref",
292 "value": "2"
293 }
294 ]
295 },
296 {
297 "type": "assert_return",
298 "line": 33,
299 "action": {
300 "type": "invoke",
301 "field": "get",
302 "args": [
303 {
304 "type": "i32",
305 "value": "5"
306 }
307 ]
308 },
309 "expected": [
310 {
311 "type": "externref",
312 "value": "2"
313 }
314 ]
315 },
316 {
317 "type": "assert_return",
318 "line": 34,
319 "action": {
320 "type": "invoke",
321 "field": "get",
322 "args": [
323 {
324 "type": "i32",
325 "value": "6"
326 }
327 ]
328 },
329 "expected": [
330 {
331 "type": "externref",
332 "value": "null"
333 }
334 ]
335 },
336 {
337 "type": "assert_return",
338 "line": 36,
339 "action": {
340 "type": "invoke",
341 "field": "fill",
342 "args": [
343 {
344 "type": "i32",
345 "value": "4"
346 },
347 {
348 "type": "externref",
349 "value": "3"
350 },
351 {
352 "type": "i32",
353 "value": "0"
354 }
355 ]
356 },
357 "expected": []
358 },
359 {
360 "type": "assert_return",
361 "line": 37,
362 "action": {
363 "type": "invoke",
364 "field": "get",
365 "args": [
366 {
367 "type": "i32",
368 "value": "3"
369 }
370 ]
371 },
372 "expected": [
373 {
374 "type": "externref",
375 "value": "1"
376 }
377 ]
378 },
379 {
380 "type": "assert_return",
381 "line": 38,
382 "action": {
383 "type": "invoke",
384 "field": "get",
385 "args": [
386 {
387 "type": "i32",
388 "value": "4"
389 }
390 ]
391 },
392 "expected": [
393 {
394 "type": "externref",
395 "value": "2"
396 }
397 ]
398 },
399 {
400 "type": "assert_return",
401 "line": 39,
402 "action": {
403 "type": "invoke",
404 "field": "get",
405 "args": [
406 {
407 "type": "i32",
408 "value": "5"
409 }
410 ]
411 },
412 "expected": [
413 {
414 "type": "externref",
415 "value": "2"
416 }
417 ]
418 },
419 {
420 "type": "assert_return",
421 "line": 41,
422 "action": {
423 "type": "invoke",
424 "field": "fill",
425 "args": [
426 {
427 "type": "i32",
428 "value": "8"
429 },
430 {
431 "type": "externref",
432 "value": "4"
433 },
434 {
435 "type": "i32",
436 "value": "2"
437 }
438 ]
439 },
440 "expected": []
441 },
442 {
443 "type": "assert_return",
444 "line": 42,
445 "action": {
446 "type": "invoke",
447 "field": "get",
448 "args": [
449 {
450 "type": "i32",
451 "value": "7"
452 }
453 ]
454 },
455 "expected": [
456 {
457 "type": "externref",
458 "value": "null"
459 }
460 ]
461 },
462 {
463 "type": "assert_return",
464 "line": 43,
465 "action": {
466 "type": "invoke",
467 "field": "get",
468 "args": [
469 {
470 "type": "i32",
471 "value": "8"
472 }
473 ]
474 },
475 "expected": [
476 {
477 "type": "externref",
478 "value": "4"
479 }
480 ]
481 },
482 {
483 "type": "assert_return",
484 "line": 44,
485 "action": {
486 "type": "invoke",
487 "field": "get",
488 "args": [
489 {
490 "type": "i32",
491 "value": "9"
492 }
493 ]
494 },
495 "expected": [
496 {
497 "type": "externref",
498 "value": "4"
499 }
500 ]
501 },
502 {
503 "type": "assert_return",
504 "line": 46,
505 "action": {
506 "type": "invoke",
507 "field": "fill-abbrev",
508 "args": [
509 {
510 "type": "i32",
511 "value": "9"
512 },
513 {
514 "type": "externref",
515 "value": "null"
516 },
517 {
518 "type": "i32",
519 "value": "1"
520 }
521 ]
522 },
523 "expected": []
524 },
525 {
526 "type": "assert_return",
527 "line": 47,
528 "action": {
529 "type": "invoke",
530 "field": "get",
531 "args": [
532 {
533 "type": "i32",
534 "value": "8"
535 }
536 ]
537 },
538 "expected": [
539 {
540 "type": "externref",
541 "value": "4"
542 }
543 ]
544 },
545 {
546 "type": "assert_return",
547 "line": 48,
548 "action": {
549 "type": "invoke",
550 "field": "get",
551 "args": [
552 {
553 "type": "i32",
554 "value": "9"
555 }
556 ]
557 },
558 "expected": [
559 {
560 "type": "externref",
561 "value": "null"
562 }
563 ]
564 },
565 {
566 "type": "assert_return",
567 "line": 50,
568 "action": {
569 "type": "invoke",
570 "field": "fill",
571 "args": [
572 {
573 "type": "i32",
574 "value": "10"
575 },
576 {
577 "type": "externref",
578 "value": "5"
579 },
580 {
581 "type": "i32",
582 "value": "0"
583 }
584 ]
585 },
586 "expected": []
587 },
588 {
589 "type": "assert_return",
590 "line": 51,
591 "action": {
592 "type": "invoke",
593 "field": "get",
594 "args": [
595 {
596 "type": "i32",
597 "value": "9"
598 }
599 ]
600 },
601 "expected": [
602 {
603 "type": "externref",
604 "value": "null"
605 }
606 ]
607 },
608 {
609 "type": "assert_trap",
610 "line": 54,
611 "action": {
612 "type": "invoke",
613 "field": "fill",
614 "args": [
615 {
616 "type": "i32",
617 "value": "8"
618 },
619 {
620 "type": "externref",
621 "value": "6"
622 },
623 {
624 "type": "i32",
625 "value": "3"
626 }
627 ]
628 },
629 "text": "out of bounds table access"
630 },
631 {
632 "type": "assert_return",
633 "line": 57,
634 "action": {
635 "type": "invoke",
636 "field": "get",
637 "args": [
638 {
639 "type": "i32",
640 "value": "7"
641 }
642 ]
643 },
644 "expected": [
645 {
646 "type": "externref",
647 "value": "null"
648 }
649 ]
650 },
651 {
652 "type": "assert_return",
653 "line": 58,
654 "action": {
655 "type": "invoke",
656 "field": "get",
657 "args": [
658 {
659 "type": "i32",
660 "value": "8"
661 }
662 ]
663 },
664 "expected": [
665 {
666 "type": "externref",
667 "value": "4"
668 }
669 ]
670 },
671 {
672 "type": "assert_return",
673 "line": 59,
674 "action": {
675 "type": "invoke",
676 "field": "get",
677 "args": [
678 {
679 "type": "i32",
680 "value": "9"
681 }
682 ]
683 },
684 "expected": [
685 {
686 "type": "externref",
687 "value": "null"
688 }
689 ]
690 },
691 {
692 "type": "assert_trap",
693 "line": 62,
694 "action": {
695 "type": "invoke",
696 "field": "fill",
697 "args": [
698 {
699 "type": "i32",
700 "value": "11"
701 },
702 {
703 "type": "externref",
704 "value": "null"
705 },
706 {
707 "type": "i32",
708 "value": "0"
709 }
710 ]
711 },
712 "text": "out of bounds table access"
713 },
714 {
715 "type": "assert_trap",
716 "line": 67,
717 "action": {
718 "type": "invoke",
719 "field": "fill",
720 "args": [
721 {
722 "type": "i32",
723 "value": "11"
724 },
725 {
726 "type": "externref",
727 "value": "null"
728 },
729 {
730 "type": "i32",
731 "value": "10"
732 }
733 ]
734 },
735 "text": "out of bounds table access"
736 },
737 {
738 "type": "assert_invalid",
739 "line": 75,
740 "filename": "table_fill.1.wasm",
741 "module_type": "binary",
742 "text": "type mismatch"
743 },
744 {
745 "type": "assert_invalid",
746 "line": 84,
747 "filename": "table_fill.2.wasm",
748 "module_type": "binary",
749 "text": "type mismatch"
750 },
751 {
752 "type": "assert_invalid",
753 "line": 93,
754 "filename": "table_fill.3.wasm",
755 "module_type": "binary",
756 "text": "type mismatch"
757 },
758 {
759 "type": "assert_invalid",
760 "line": 102,
761 "filename": "table_fill.4.wasm",
762 "module_type": "binary",
763 "text": "type mismatch"
764 },
765 {
766 "type": "assert_invalid",
767 "line": 111,
768 "filename": "table_fill.5.wasm",
769 "module_type": "binary",
770 "text": "type mismatch"
771 },
772 {
773 "type": "assert_invalid",
774 "line": 120,
775 "filename": "table_fill.6.wasm",
776 "module_type": "binary",
777 "text": "type mismatch"
778 },
779 {
780 "type": "assert_invalid",
781 "line": 129,
782 "filename": "table_fill.7.wasm",
783 "module_type": "binary",
784 "text": "type mismatch"
785 },
786 {
787 "type": "assert_invalid",
788 "line": 139,
789 "filename": "table_fill.8.wasm",
790 "module_type": "binary",
791 "text": "type mismatch"
792 },
793 {
794 "type": "assert_invalid",
795 "line": 150,
796 "filename": "table_fill.9.wasm",
797 "module_type": "binary",
798 "text": "type mismatch"
799 }
800 ]
801 }