Update grader

This commit is contained in:
Chunmyong Park
2020-07-02 06:54:19 +00:00
parent 114f38cbb6
commit d64e9f622e
36 changed files with 314 additions and 149 deletions

View File

@@ -1,3 +1,4 @@
var i32 @nonce = default
fun i32 @fibonacci (i32) {
init:
@@ -31,11 +32,13 @@ fun i32 @main () {
init:
bid: b0
allocations:
%l0:i32:number
block b0:
%b0:i0:i32 = call @fibonacci:[ret:i32 params:(i32)]*(9:i32)
%b0:i1:u1 = cmp eq %b0:i0:i32 34:i32
%b0:i2:i32 = typecast %b0:i1:u1 to i32
ret %b0:i2:i32
%b0:i0:i32 = load @nonce:i32*
%b0:i1:i32 = mod %b0:i0:i32 20:i32
%b0:i2:unit = nop
%b0:i3:unit = nop
%b0:i4:i32 = call @fibonacci:[ret:i32 params:(i32)]*(%b0:i1:i32)
ret %b0:i4:i32
}