Debian Codegraph @

tests/snapshots/cli/legacy-exceptions/rethrow.wast/0.print

raw
1 (module
2 (type (;0;) (func))
3 (type (;1;) (func (param i32) (result i32)))
4 (tag $e0 (;0;) (type 0))
5 (tag $e1 (;1;) (type 0))
6 (export "catch-rethrow-0" (func 0))
7 (export "catch-rethrow-1" (func 1))
8 (export "catchall-rethrow-0" (func 2))
9 (export "catchall-rethrow-1" (func 3))
10 (export "rethrow-nested" (func 4))
11 (export "rethrow-recatch" (func 5))
12 (export "rethrow-stack-polymorphism" (func 6))
13 (func (;0;) (type 0)
14 try ;; label = @1
15 throw $e0
16 catch $e0
17 rethrow 0 (;@1;)
18 end
19 )
20 (func (;1;) (type 1) (param i32) (result i32)
21 try (result i32) ;; label = @1
22 throw $e0
23 catch $e0
24 local.get 0
25 i32.eqz
26 if ;; label = @2
27 rethrow 1 (;@1;)
28 end
29 i32.const 23
30 end
31 )
32 (func (;2;) (type 0)
33 try ;; label = @1
34 throw $e0
35 catch_all
36 rethrow 0 (;@1;)
37 end
38 )
39 (func (;3;) (type 1) (param i32) (result i32)
40 try (result i32) ;; label = @1
41 throw $e0
42 catch_all
43 local.get 0
44 i32.eqz
45 if ;; label = @2
46 rethrow 1 (;@1;)
47 end
48 i32.const 23
49 end
50 )
51 (func (;4;) (type 1) (param i32) (result i32)
52 try (result i32) ;; label = @1
53 throw $e1
54 catch $e1
55 try (result i32) ;; label = @2
56 throw $e0
57 catch $e0
58 local.get 0
59 i32.const 0
60 i32.eq
61 if ;; label = @3
62 rethrow 1 (;@2;)
63 end
64 local.get 0
65 i32.const 1
66 i32.eq
67 if ;; label = @3
68 rethrow 2 (;@1;)
69 end
70 i32.const 23
71 end
72 end
73 )
74 (func (;5;) (type 1) (param i32) (result i32)
75 try (result i32) ;; label = @1
76 throw $e0
77 catch $e0
78 try (result i32) ;; label = @2
79 local.get 0
80 i32.eqz
81 if ;; label = @3
82 rethrow 2 (;@1;)
83 end
84 i32.const 42
85 catch $e0
86 i32.const 23
87 end
88 end
89 )
90 (func (;6;) (type 0)
91 try ;; label = @1
92 throw $e0
93 catch $e0
94 i32.const 1
95 rethrow 0 (;@1;)
96 end
97 )
98 )