Debian Codegraph @

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

raw
1 (module
2 (type (;0;) (func (result i32)))
3 (type (;1;) (func (result f32)))
4 (type (;2;) (func (result i64)))
5 (func $fold-binary (;0;) (type 0) (result i32)
6 (i32.add
7 (i32.const 1)
8 (i32.const 2))
9 )
10 (func $fold-binary-chain (;1;) (type 0) (result i32)
11 (i32.sub
12 (i32.const 1)
13 (i32.add
14 (i32.const 1)
15 (i32.const 1)))
16 )
17 (func $fold-compare (;2;) (type 0) (result i32)
18 (f32.le
19 (f32.const 0x1p+0 (;=1;))
20 (f32.const 0x1p+1 (;=2;)))
21 )
22 (func $fold-unary (;3;) (type 1) (result f32)
23 (f32.neg
24 (f32.neg
25 (f32.const 0x1p+0 (;=1;))))
26 )
27 (func $fold-convert (;4;) (type 2) (result i64)
28 (i64.extend_i32_s
29 (i32.trunc_f32_s
30 (f32.demote_f64
31 (f64.const 0x0p+0 (;=0;)))))
32 )
33 (func $fold-select (;5;) (type 1) (result f32)
34 (select
35 (f32.const 0x1p+0 (;=1;))
36 (f32.const 0x1p+1 (;=2;))
37 (i32.const 3))
38 )
39 )