Skip to content

Commit

Permalink
Move peggy comparison into passing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kirstenmg committed Jun 5, 2024
1 parent 56fec6a commit 2e6e08e
Show file tree
Hide file tree
Showing 12 changed files with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# ARGS: 0
@main(n: int): int {
zero: int = const 0;
x: int = id zero;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# ARGS: 4
@main(x: int): int {
five: int = const 5;
four: int = const 4;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
@main: int {
@main(): int {
j: int = const 3;
i: int = const 5;
four: int = const 4;
i: int = const 0;
forty: int = const 40;
one: int = const 1;

.loop_test:
cond: bool = lt i four;
cond: bool = lt i forty;
br cond .loop_body .loop_end;

.loop_body:
j: int = add j one;
i: int = add i one;
jmp .loop_test;

.loop_end:
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@main(x: int): int {
@main: int {
i: int = const 0;
one: int = const 1;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# ARGS: 40
@main(n: int): int {
one: int = const 1;
zero: int = const 0;
Expand Down

0 comments on commit 2e6e08e

Please sign in to comment.