Debian Codegraph @

tests/snapshots/cli/folding/array_init_data.wast.json

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