Debian Codegraph @

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

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