Debian Codegraph @

tests/snapshots/cli/folding/fold-stack-switching.wast/6.print-folded

raw
1 (module
2 (type $ft0 (;0;) (func (result i32)))
3 (type $ct0 (;1;) (cont $ft0))
4 (type $ft1 (;2;) (func (param i32) (result i32)))
5 (type $ct1 (;3;) (cont $ft1))
6 (type $ft2 (;4;) (func (param i64 i32) (result i32)))
7 (type $ct2 (;5;) (cont $ft2))
8 (type (;6;) (func (param (ref null $ct1)) (result (ref $ct0))))
9 (type (;7;) (func (param (ref $ct2)) (result (ref $ct1))))
10 (type (;8;) (func (param (ref $ct1)) (result (ref $ct1))))
11 (func $test1 (;0;) (type 6) (param $p_ct1 (ref null $ct1)) (result (ref $ct0))
12 (cont.bind $ct1 $ct0
13 (i32.const 123)
14 (local.get $p_ct1))
15 )
16 (func $test2 (;1;) (type 7) (param $p_ct2 (ref $ct2)) (result (ref $ct1))
17 (cont.bind $ct2 $ct1
18 (i64.const 123)
19 (local.get $p_ct2))
20 )
21 (func $test3 (;2;) (type 8) (param $p_ct1 (ref $ct1)) (result (ref $ct1))
22 (cont.bind $ct1 $ct1
23 (local.get $p_ct1))
24 )
25 )