-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #606 from egraphs-good/peel-more
Add loop iteration estimates for basic loops and peel more
- Loading branch information
Showing
13 changed files
with
243 additions
and
130 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
@main { | ||
jump: int = const 4; | ||
i: int = const 0; | ||
n: int = const 18; | ||
|
||
.loop: | ||
i: int = add jump i; | ||
pred: bool = lt i n; | ||
br pred .loop .end; | ||
|
||
.end: | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
@main { | ||
i: int = const 0; | ||
one: int = const 1; | ||
two: int = const 2; | ||
|
||
.loop: | ||
i: int = add one i; | ||
cond: bool = lt i two; | ||
br cond .loop .loop_end; | ||
|
||
.loop_end: | ||
print i; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
@main { | ||
i: int = const 0; | ||
one: int = const 1; | ||
|
||
.loop: | ||
cond: bool = lt i one; | ||
i: int = add one i; | ||
br cond .loop .loop_end; | ||
|
||
.loop_end: | ||
print i; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--- | ||
source: tests/files.rs | ||
expression: visualization.result | ||
--- | ||
@main { | ||
.v0_: | ||
v1_: int = const 0; | ||
v2_: int = const 18; | ||
v3_: int = const 4; | ||
v4_: int = id v1_; | ||
v5_: int = id v2_; | ||
v6_: int = id v3_; | ||
.v7_: | ||
v8_: int = add v4_ v6_; | ||
v9_: bool = lt v8_ v5_; | ||
v4_: int = id v8_; | ||
v5_: int = id v5_; | ||
v6_: int = id v6_; | ||
br v9_ .v7_ .v10_; | ||
.v10_: | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
source: tests/files.rs | ||
expression: visualization.result | ||
--- | ||
@main { | ||
.v0_: | ||
v1_: int = const 2; | ||
print v1_; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
source: tests/files.rs | ||
expression: visualization.result | ||
--- | ||
@main { | ||
.v0_: | ||
v1_: int = const 2; | ||
print v1_; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.