A lightweight WebAssembly runtime that is fast, secure, and standards-compliant
;;! target = "x86_64"
;; Reachable `if` head and unreachable consequent and alternative, but with a
;; branch out of the alternative, means that the following block is reachable.
(module
(func (param i32 i32) (result i32)
local.get 0
if
unreachable
else
local.get 1
br_if 0
unreachable
end
i32.const 0))
;; function u0:0(i64 vmctx, i64, i32, i32) -> i32 tail {
;; region0 = 123 ""
;; region1 = 160 ""
;; gv0 = vmctx
;; gv1 = load.i64 notrap aligned readonly can_move region0 gv0+8
;; gv2 = load.i64 notrap aligned region1 gv1+24
;; stack_limit = gv2
;;
;; block0(v0: i64, v1: i64, v2: i32, v3: i32):
;; @001c brif v2, block2, block4
;;
;; block2:
;; @001e trap user12
;;
;; block4:
;; @0022 brif.i32 v3, block3, block5
;;
;; block5:
;; @0024 trap user12
;;
;; block3:
;; @0026 v4 = iconst.i32 0
;; @0028 jump block1
;;
;; block1:
;; @0028 return v4 ; v4 = 0
;; }