-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
regions passing on some tests but strangely some are slow
- Loading branch information
Showing
30 changed files
with
255 additions
and
176 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
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
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 |
---|---|---|
@@ -1,19 +1,21 @@ | ||
(ruleset switch_rewrite) | ||
|
||
(rewrite (If (Bop (And) a b) X Y) | ||
(If a (If b X Y) Y) | ||
:when ((ExprIsPure b)) | ||
:ruleset switch_rewrite) | ||
|
||
(rewrite (If (Bop (Or) a b) X Y) | ||
(If a X (If b X Y)) | ||
:when ((ExprIsPure b)) | ||
:ruleset switch_rewrite) | ||
|
||
(rewrite (If (Const (Bool true) ty) thn els) | ||
thn | ||
:ruleset switch_rewrite) | ||
|
||
(rewrite (If (Const (Bool false) ty) thn els) | ||
els | ||
:ruleset switch_rewrite) | ||
;; TODO rewrite for if regions | ||
;;(rewrite (If (Bop (And) a b) X Y) | ||
;; (If a (If b X Y) Y) | ||
;; :when ((ExprIsPure b)) | ||
;; :ruleset switch_rewrite) | ||
;; | ||
;;(rewrite (If (Bop (Or) a b) X Y) | ||
;; (If a X (If b X Y)) | ||
;; :when ((ExprIsPure b)) | ||
;; :ruleset switch_rewrite) | ||
;; | ||
;;(rewrite (If (Const (Bool true) ty) thn els) | ||
;; thn | ||
;; :ruleset switch_rewrite) | ||
;; | ||
;;(rewrite (If (Const (Bool false) ty) thn els) | ||
;; els | ||
;; :ruleset switch_rewrite) |
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
Oops, something went wrong.