tests/snapshots/cli/folding/fold-unreachable.wast/0.print
raw| 1 | (module |
| 2 | (type (;0;) (func (result i32))) |
| 3 | (type (;1;) (func)) |
| 4 | (func (;0;) (type 0) (result i32) |
| 5 | i32.const 1 |
| 6 | unreachable |
| 7 | i32.add |
| 8 | ) |
| 9 | (func (;1;) (type 1) |
| 10 | br 0 |
| 11 | drop |
| 12 | ) |
| 13 | (func (;2;) (type 1) |
| 14 | block ;; label = @1 |
| 15 | block ;; label = @2 |
| 16 | block ;; label = @3 |
| 17 | i32.const 1 |
| 18 | br_table 0 (;@3;) 1 (;@2;) 2 (;@1;) 0 (;@3;) |
| 19 | i32.const 2 |
| 20 | i32.div_s |
| 21 | return |
| 22 | end |
| 23 | end |
| 24 | end |
| 25 | ) |
| 26 | (func (;3;) (type 0) (result i32) |
| 27 | i32.const 0 |
| 28 | return |
| 29 | i32.eqz |
| 30 | ) |
| 31 | ) |