* Fixed bug in verifier Does not check variable def for unreachable codex * Check reachability first + file test
24 lines
271 B
Plaintext
24 lines
271 B
Plaintext
test verifier
|
|
|
|
function %test() -> i32 { ; Ok
|
|
ebb0:
|
|
v0 = iconst.i32 0
|
|
v1 = iconst.i32 0
|
|
jump ebb2
|
|
|
|
ebb2:
|
|
jump ebb4
|
|
|
|
ebb4:
|
|
jump ebb2
|
|
|
|
ebb3(v2: i32):
|
|
v4 = iadd.i32 v1, v2
|
|
jump ebb9(v4)
|
|
|
|
ebb9(v7: i32):
|
|
v9 = iadd.i32 v2, v7
|
|
return v9
|
|
|
|
}
|