Debian Codegraph @

tests/snapshots/cli/stack-switching/cont.wast/53.print

raw
1 (module
2 (type $ft1 (;0;) (func))
3 (type $ct1 (;1;) (cont $ft1))
4 (rec
5 (type $ft2 (;2;) (func (param (ref null $ct2))))
6 (type $ct2 (;3;) (cont $ft2))
7 )
8 (tag $t (;0;) (type $ft1))
9 (export "unhandled-suspend-t" (func 2))
10 (export "unhandled-switch-t" (func 3))
11 (elem (;0;) declare func $suspend $switch)
12 (func $suspend (;0;) (type $ft2) (param (ref null $ct2))
13 suspend $t
14 )
15 (func $switch (;1;) (type $ft2) (param (ref null $ct2))
16 local.get 0
17 switch $ct2 $t
18 drop
19 )
20 (func (;2;) (type $ft1)
21 ref.func $suspend
22 cont.new $ct2
23 ref.func $suspend
24 cont.new $ct2
25 resume $ct2 (on $t switch)
26 )
27 (func (;3;) (type $ft1)
28 block $l (result (ref $ct1))
29 ref.func $switch
30 cont.new $ct2
31 ref.func $switch
32 cont.new $ct2
33 resume $ct2 (on $t $l)
34 unreachable
35 end
36 unreachable
37 )
38 )