mirror of
https://github.com/kmc7468/cs420.git
synced 2025-12-15 23:18:48 +00:00
Prepare for Spring 2025.
This commit is contained in:
@@ -11,10 +11,12 @@ init:
|
||||
block b0:
|
||||
%b0:i0:unit = nop
|
||||
%b0:i1:unit = nop
|
||||
j b2(0:i32)
|
||||
j b2(0:i32, undef:i32, undef:i32)
|
||||
|
||||
block b2:
|
||||
%b2:p0:i32:i
|
||||
%b2:p1:i32:i
|
||||
%b2:p2:i32:k
|
||||
%b2:i0:unit = nop
|
||||
%b2:i1:u1 = cmp lt %b2:p0:i32 10:i32
|
||||
br %b2:i1:u1, b3(), b5()
|
||||
@@ -25,7 +27,7 @@ block b3:
|
||||
%b3:i2:unit = nop
|
||||
%b3:i3:i32 = add %b2:p0:i32 1:i32
|
||||
%b3:i4:unit = nop
|
||||
j b2(%b3:i3:i32)
|
||||
j b2(%b3:i3:i32, 0:i32, 0:i32)
|
||||
|
||||
block b5:
|
||||
ret 1:i32
|
||||
|
||||
Reference in New Issue
Block a user