Debian Codegraph @

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

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