Files
cs420/examples/deadcode/deadcode.output.ir
Jeehoon Kang a12db7949c Update tests
2020-06-12 05:05:23 +09:00

36 lines
451 B
Plaintext

fun unit @sink (unit) {
init:
bid: b0
allocations:
block b0:
%b0:p0:unit
ret unit:unit
}
fun i32 @deadcode () {
init:
bid: b0
allocations:
%l0:i32:y
block b0:
%b0:i0:i32 = add 100:i32 200:i32
%b0:i1:unit = store %b0:i0:i32 %l0:i32*
br undef:i1, b1(), b2()
block b1:
%b1:i0:unit = call @sink:[ret:unit params:(unit)]*(unit:unit)
j b3()
block b2:
%b2:i0:unit = store 42:i32 %l0:i32*
j b3()
block b3:
ret 0:i32
}