Debian Codegraph @

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

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