tests/snapshots/cli/folding/fold-global-getset.wast/0.print-folded
raw| 1 | (module |
| 2 | (type (;0;) (func (result i32))) |
| 3 | (type (;1;) (func)) |
| 4 | (global (;0;) (mut i32) (i32.const 1)) |
| 5 | (global (;1;) (mut f32) (f32.const 0x1.8p+0 (;=1.5;))) |
| 6 | (func $fold-global-get (;0;) (type 0) (result i32) |
| 7 | (drop |
| 8 | (global.get 1)) |
| 9 | (i32.mul |
| 10 | (global.get 0) |
| 11 | (global.get 0)) |
| 12 | ) |
| 13 | (func $fold-global-set (;1;) (type 1) |
| 14 | (global.set 0 |
| 15 | (i32.add |
| 16 | (global.get 0) |
| 17 | (i32.const 1))) |
| 18 | (global.set 1 |
| 19 | (f32.const 0x1p+1 (;=2;))) |
| 20 | ) |
| 21 | ) |