Debian Codegraph @

tests/snapshots/cli/stack-switching/cont.wast.json

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