Debian Codegraph @

tests/snapshots/cli/stack-switching/control-lwt.wast/0.print

raw
1 (module $control
2 (type $func (;0;) (func))
3 (type $cont (;1;) (cont $func))
4 (type $cont-func (;2;) (func (param (ref $cont))))
5 (type $cont-cont (;3;) (cont $cont-func))
6 (type (;4;) (func (param (ref $cont-cont))))
7 (type (;5;) (func (param (ref null $cont))))
8 (type (;6;) (func (result (ref $cont-cont) (ref $cont))))
9 (tag $control (;0;) (type 4) (param (ref $cont-cont)))
10 (export "control" (tag 0))
11 (export "prompt" (func $prompt))
12 (func $prompt (;0;) (type 5) (param $nextk (ref null $cont))
13 (local $h (ref $cont-cont)) (local $k (ref $cont))
14 block $on_control (type 6) (result (ref $cont-cont) (ref $cont))
15 local.get $nextk
16 resume $cont (on $control $on_control)
17 return
18 end
19 local.set $k
20 local.set $h
21 local.get $k
22 local.get $h
23 resume $cont-cont
24 )
25 )