Debian Codegraph @

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

raw
1 (module
2 (type $ft0 (;0;) (func))
3 (type $ct0 (;1;) (cont $ft0))
4 (type $ft1 (;2;) (func (param f32) (result f64)))
5 (type $ct1 (;3;) (cont $ft1))
6 (type $ft2 (;4;) (func (param i64) (result f64)))
7 (type $ct2 (;5;) (cont $ft2))
8 (type $ft3 (;6;) (func (param i32) (result f64)))
9 (type $ct3 (;7;) (cont $ft3))
10 (type (;8;) (func (param i32) (result i64)))
11 (type (;9;) (func (param i64) (result i32)))
12 (type (;10;) (func (param (ref $ct1)) (result f64)))
13 (type (;11;) (func (result i32 (ref $ct2))))
14 (type (;12;) (func (result i64 (ref $ct3))))
15 (type (;13;) (func (param (ref null $ct0))))
16 (type (;14;) (func (param (ref $ct0))))
17 (type (;15;) (func (param (ref $ct0)) (result (ref $ct0))))
18 (tag $t0 (;0;) (type $ft0))
19 (tag $t1 (;1;) (type $ft0))
20 (tag $t2 (;2;) (type 8) (param i32) (result i64))
21 (tag $t3 (;3;) (type 9) (param i64) (result i32))
22 (func $test0 (;0;) (type 10) (param $x (ref $ct1)) (result f64)
23 block $handler0 (type 11) (result i32 (ref $ct2))
24 block $handler1 (type 12) (result i64 (ref $ct3))
25 f32.const 0x1.3ae148p+0 (;=1.23;)
26 local.get $x
27 resume $ct1 (on $t2 $handler0) (on $t3 $handler1)
28 return
29 end
30 unreachable
31 end
32 unreachable
33 )
34 (func $test1 (;1;) (type 10) (param $x (ref $ct1)) (result f64)
35 block $handler0 (type 11) (result i32 (ref $ct2))
36 block $handler1 (type 11) (result i32 (ref $ct2))
37 f32.const 0x1.3ae148p+0 (;=1.23;)
38 local.get $x
39 resume $ct1 (on $t2 $handler0) (on $t2 $handler1)
40 return
41 end
42 unreachable
43 end
44 unreachable
45 )
46 (func $test2 (;2;) (type 13) (param $x (ref null $ct0))
47 local.get $x
48 resume $ct0
49 )
50 (func $test3 (;3;) (type 14) (param $x (ref $ct0))
51 block $handler (result (ref null $ct0))
52 local.get $x
53 resume $ct0 (on $t0 $handler)
54 return
55 end
56 unreachable
57 )
58 (func $test4 (;4;) (type 14) (param $x (ref $ct0))
59 block $handler (result (ref null $ct0))
60 local.get $x
61 resume $ct0 (on $t0 $handler) (on $t1 $handler)
62 return
63 end
64 unreachable
65 )
66 (func $test5 (;5;) (type 14) (param $x (ref $ct0))
67 local.get $x
68 block $handler (type 15) (param (ref $ct0)) (result (ref $ct0))
69 resume $ct0 (on $t0 $handler)
70 return
71 end
72 unreachable
73 )
74 )