Debian Codegraph @

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

raw
1 (module
2 (type $i_i (;0;) (func (param i32) (result i32)))
3 (type (;1;) (func (param i32 f32) (result f32)))
4 (type (;2;) (func (param f32 f32 f32 f32)))
5 (type (;3;) (func (result i32)))
6 (type (;4;) (func))
7 (table (;0;) 2 2 funcref)
8 (elem (;0;) (table 0) (i32.const 0) func $i_i $if_f)
9 (func $i_i (;0;) (type $i_i) (param i32) (result i32)
10 (i32.const 1)
11 )
12 (func $if_f (;1;) (type 1) (param i32 f32) (result f32)
13 (f32.const 0x0p+0 (;=0;))
14 )
15 (func $ffff_v (;2;) (type 2) (param f32 f32 f32 f32))
16 (func $fold-call (;3;) (type 3) (result i32)
17 (drop
18 (call $i_i
19 (i32.const 1)))
20 (call $i_i
21 (i32.const 2))
22 )
23 (func $fold-call-2 (;4;) (type 4)
24 (call $ffff_v
25 (f32.const 0x0p+0 (;=0;))
26 (f32.const 0x1p+0 (;=1;))
27 (f32.const 0x1p+1 (;=2;))
28 (call $if_f
29 (i32.const 3)
30 (f32.const 0x1p+2 (;=4;))))
31 )
32 (func $fold-call-indirect (;5;) (type 3) (result i32)
33 (call_indirect (type $i_i)
34 (i32.const 1)
35 (i32.const 2))
36 )
37 )