Debian Codegraph @

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

raw
1 (module
2 (type (;0;) (func (result i32 i32)))
3 (type (;1;) (func (result i32)))
4 (func $dup (;0;) (type 0) (result i32 i32)
5 (i32.const 0)
6 (i32.const 1)
7 )
8 (func $fold-two (;1;) (type 1) (result i32)
9 (i32.add
10 (call $dup))
11 )
12 (func $cant-fold (;2;) (type 1) (result i32)
13 (call $dup)
14 (i32.const 1)
15 (i32.add)
16 (drop)
17 )
18 (func $partial-fold (;3;) (type 1) (result i32)
19 (call $dup)
20 (i32.add
21 (call $dup))
22 (i32.sub)
23 (drop)
24 )
25 )