1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67
|
(module
(func $ret (export "ret") (result i32)
(block $out (result i32)
(drop (call $ret))
(if (call $ret)
(return
(return
(i32.const 1)
)
)
)
(drop (br_if $out (i32.const 999) (i32.const 1)))
(unreachable)
)
)
(func $if-0-unreachable-to-none (export "waka") (param $var$0 i64)
(local $var$1 i64)
(local $var$2 i64)
(block $label$1
(if
(i32.const 0)
(br $label$1)
(unreachable)
)
)
)
(func $many-selects (export "many-selects") (param $0 i32) (result i32)
(if
(i32.lt_s
(local.get $0)
(i32.const -1073741824)
)
(local.set $0
(i32.const -1073741824)
)
(if
(i32.gt_s
(local.get $0)
(i32.const 1073741823)
)
(local.set $0
(i32.const 1073741823)
)
)
)
(local.get $0)
)
(func $end-if-else (export "end-if-else") (param $x i32) (result i32)
(if
(local.get $x)
(local.set $x
(i32.const 1)
)
)
(local.get $x)
)
(func $end-if-else-call (export "end-if-else-call") (param $x i32) (result i32)
(if
(local.get $x)
(local.set $x
(call $ret)
)
)
(local.get $x)
)
)
|