Debian Codegraph @

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

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