Skip to content

Commit

Permalink
Add regression test for issue #985.
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Huffman committed Jan 22, 2021
1 parent 3cf6e54 commit 0f045d2
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
25 changes: 25 additions & 0 deletions intTests/test_goal_eval/test.saw
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";
1 change: 1 addition & 0 deletions intTests/test_goal_eval/test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
$SAW test.saw

0 comments on commit 0f045d2

Please sign in to comment.