-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix compiling pack of rules Rules declared in group appeared to be reverted when handled, causing the "sequential" strategy to not behave as intended (the rule with highest priority was the last to appear in the source file). * Fix tests One can see that in hrs.expected, the order of the exported rewrite rules now match the order the rules are declared in. Look for instance at the rules of bool_neg in boolean.lp. --------- Co-authored-by: Gabriel Hondet <gabriel.hondet@cominety.net>
- Loading branch information
1 parent
b441123
commit 2b8cfe4
Showing
5 changed files
with
48 additions
and
32 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
// Test on the sequential reduction strategy | ||
constant symbol I: TYPE; | ||
constant symbol i: I; | ||
constant symbol j: I; | ||
sequential symbol k: I → I; | ||
rule k i ↪ i | ||
with k i ↪ j; | ||
|
||
assert ⊢ k i ≡ 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