-
Notifications
You must be signed in to change notification settings - Fork 62
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 #1014 from GaloisInc/issue985
Make `goal_eval` preserve pi-bound variables in goals.
- Loading branch information
Showing
3 changed files
with
38 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// This is a regression test for GaloisInc/saw-script#985. | ||
// It uses `goal_eval` and then calls `goal_intro` to enforce | ||
// that `goal_eval` has preserved the explicit quantifiers in | ||
// the goal. | ||
|
||
enable_experimental; | ||
|
||
let prop = {{ \(xs:[4][8]) (ys:([8],[8])) -> sum xs == ys.0 * ys.1 }}; | ||
|
||
prove | ||
do { | ||
goal_intro "z"; | ||
assume_unsat; | ||
} | ||
prop; | ||
|
||
prove | ||
do { | ||
goal_eval; | ||
goal_intro "z"; | ||
assume_unsat; | ||
} | ||
prop; | ||
|
||
print "Done"; |
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 @@ | ||
$SAW test.saw |
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