Debian Codegraph @

tests/snapshots/cli/stack-switching/cont_suspend.wast/0.print

raw
1 (module
2 (type $ft (;0;) (func))
3 (type $ct (;1;) (cont $ft))
4 (type (;2;) (func (param i32)))
5 (type (;3;) (func (result i32)))
6 (import "spectest" "print_i32" (func $print (;0;) (type 2)))
7 (tag $h (;0;) (type $ft))
8 (export "f" (func $f))
9 (export "run" (func 2))
10 (func $f (;1;) (type $ft)
11 suspend $h
12 i32.const 2
13 call $print
14 )
15 (func (;2;) (type 3) (result i32)
16 i32.const 1
17 call $print
18 block $on_h (result (ref $ct))
19 ref.func $f
20 cont.new $ct
21 resume $ct (on $h $on_h)
22 unreachable
23 end
24 drop
25 i32.const 3
26 call $print
27 i32.const 42
28 return
29 )
30 )