tests/snapshots/cli/folding/fold-multi.wast/0.print
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 | call $dup |
| 10 | i32.add |
| 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 | call $dup |
| 21 | i32.add |
| 22 | i32.sub |
| 23 | drop |
| 24 | ) |
| 25 | ) |