mirror of
https://github.com/kmc7468/cs420.git
synced 2025-12-15 23:18:48 +00:00
Update grader
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user