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:
@@ -29,8 +30,8 @@ init:
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
%b0:i0:i32 = load @nonce:i32*
%b0:i1:i32 = mod %b0:i0:i32 20:i32
%b0:i2:i32 = call @fibonacci:[ret:i32 params:(i32)]*(%b0:i1:i32)
ret %b0:i2:i32
}