mirror of
https://github.com/kmc7468/cs420.git
synced 2025-12-15 23:18:48 +00:00
Update skeleton
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
|
||||
fun i32 @char_greater_than {
|
||||
fun i32 @char_greater_than (i8, u8) {
|
||||
init:
|
||||
bid: b0
|
||||
allocations:
|
||||
@@ -32,7 +32,7 @@ block b5:
|
||||
j b3()
|
||||
}
|
||||
|
||||
fun i32 @int_greater_than {
|
||||
fun i32 @int_greater_than (i32, u32) {
|
||||
init:
|
||||
bid: b0
|
||||
allocations:
|
||||
@@ -64,7 +64,7 @@ block b5:
|
||||
j b3()
|
||||
}
|
||||
|
||||
fun i32 @main {
|
||||
fun i32 @main () {
|
||||
init:
|
||||
bid: b0
|
||||
allocations:
|
||||
@@ -75,12 +75,12 @@ init:
|
||||
block b0:
|
||||
%b0:i0:i32 = minus 1:i32
|
||||
%b0:i1:u32 = typecast 1:i32 to u32
|
||||
%b0:i2:i32 = call @int_greater_than(%b0:i0:i32, %b0:i1:u32)
|
||||
%b0:i2:i32 = call @int_greater_than:*[ret:i32 params:(i32, u32)](%b0:i0:i32, %b0:i1:u32)
|
||||
%b0:i3:unit = store %b0:i2:i32 %l0:*i32
|
||||
%b0:i4:i32 = minus 1:i32
|
||||
%b0:i5:i8 = typecast %b0:i4:i32 to i8
|
||||
%b0:i6:u8 = typecast 1:i32 to u8
|
||||
%b0:i7:i32 = call @char_greater_than(%b0:i5:i8, %b0:i6:u8)
|
||||
%b0:i7:i32 = call @char_greater_than:*[ret:i32 params:(i8, u8)](%b0:i5:i8, %b0:i6:u8)
|
||||
%b0:i8:unit = store %b0:i7:i32 %l1:*i32
|
||||
%b0:i9:i32 = load %l0:*i32
|
||||
%b0:i10:u1 = cmp eq %b0:i9:i32 1:i32
|
||||
|
||||
Reference in New Issue
Block a user