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 @main () {
init:
@@ -6,6 +7,8 @@ init:
%l0:i32:x
block b0:
%b0:i0:unit = store 1:i32 %l0:i32*
ret 1:i32
%b0:i0:i32 = load @nonce:i32*
%b0:i1:unit = store %b0:i0:i32 %l0:i32*
%b0:i2:i32 = load %l0:i32*
ret %b0:i2:i32
}