Debian Codegraph @

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

raw
1 (module
2 (type (;0;) (func))
3 (type (;1;) (func (param i32)))
4 (type (;2;) (func (param f32)))
5 (type (;3;) (func (param i64)))
6 (type (;4;) (func (param f64)))
7 (type (;5;) (func (param i32 i32)))
8 (type (;6;) (func (param i32) (result i32)))
9 (tag $e0 (;0;) (type 0))
10 (tag $e-i32 (;1;) (type 1) (param i32))
11 (tag $e-f32 (;2;) (type 2) (param f32))
12 (tag $e-i64 (;3;) (type 3) (param i64))
13 (tag $e-f64 (;4;) (type 4) (param f64))
14 (tag $e-i32-i32 (;5;) (type 5) (param i32 i32))
15 (export "throw-if" (func $throw-if))
16 (export "throw-param-f32" (func 1))
17 (export "throw-param-i64" (func 2))
18 (export "throw-param-f64" (func 3))
19 (export "test-throw-1-2" (func 5))
20 (func $throw-if (;0;) (type 6) (param i32) (result i32)
21 local.get 0
22 i32.const 0
23 i32.ne
24 if ;; label = @1
25 throw $e0
26 end
27 i32.const 0
28 )
29 (func (;1;) (type 2) (param f32)
30 local.get 0
31 throw $e-f32
32 )
33 (func (;2;) (type 3) (param i64)
34 local.get 0
35 throw $e-i64
36 )
37 (func (;3;) (type 4) (param f64)
38 local.get 0
39 throw $e-f64
40 )
41 (func $throw-1-2 (;4;) (type 0)
42 i32.const 1
43 i32.const 2
44 throw $e-i32-i32
45 )
46 (func (;5;) (type 0)
47 try ;; label = @1
48 call $throw-1-2
49 catch $e-i32-i32
50 i32.const 2
51 i32.ne
52 if ;; label = @2
53 unreachable
54 end
55 i32.const 1
56 i32.ne
57 if ;; label = @2
58 unreachable
59 end
60 end
61 )
62 )