Debian Codegraph @

tests/snapshots/cli/folding/fold-block.wast/0.print-folded

raw
1 (module
2 (type (;0;) (func (result f32)))
3 (type (;1;) (func (result i32)))
4 (type (;2;) (func))
5 (func $fold-block (;0;) (type 0) (result f32)
6 (f32.add
7 (f32.const 0x1p+1 (;=2;))
8 (block ;; label = @1
9 (f32.const 0x1.8p+1 (;=3;))
10 (br 0 (;@1;)))
11 (f32.const 0x1p+0 (;=1;)))
12 )
13 (func $fold-block-br-value (;1;) (type 1) (result i32)
14 (block (result i32) ;; label = @1
15 (br 0 (;@1;)
16 (i32.const 1)))
17 )
18 (func $fold-loop (;2;) (type 2)
19 (drop
20 (loop (result i64) ;; label = @1
21 (br 0 (;@1;))
22 (i64.const 1)))
23 )
24 (func $fold-loop-br (;3;) (type 1) (result i32)
25 (loop (result i32) ;; label = @1
26 (i32.const 1)
27 (br 0 (;@1;)))
28 )
29 (func $fold-if (;4;) (type 2)
30 (if ;; label = @1
31 (i32.const 1)
32 (then
33 (nop)
34 (nop)))
35 )
36 (func $fold-if-else (;5;) (type 2)
37 (drop
38 (if (result i32) ;; label = @1
39 (i32.const 1)
40 (then
41 (i32.const 2))
42 (else
43 (i32.const 3))))
44 )
45 (func $fold-if-else-br (;6;) (type 2)
46 (drop
47 (if (result i32) ;; label = @1
48 (i32.const 1)
49 (then
50 (br 0 (;@1;)
51 (i32.const 2)))
52 (else
53 (i32.const 3))))
54 )
55 )