diff options
author | Andrew Reynolds <andrew.j.reynolds@gmail.com> | 2020-07-09 20:07:21 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-09 20:07:21 -0500 |
commit | ba7cda7a9cb02a38b1cf8fd9fbd85304a9056a5e (patch) | |
tree | 3d7d957f19d6cda9de4022c93c9ea01fad4fe6b8 /test | |
parent | 8ff3b306b7b35bc1040a6caee759929c4e497373 (diff) |
Ensure legal elimination for witness rewrite (#4688)
Fixes #4685.
A recent commit #4661 added assertions for checking whether a witness rewrite corresponded to a legal elimination. #4685 demonstrates that these assertions can be violated and hence should be checked to ensure the rewrite is sound.
Diffstat (limited to 'test')
-rw-r--r-- | test/regress/CMakeLists.txt | 1 | ||||
-rw-r--r-- | test/regress/regress1/quantifiers/issue4685-wrewrite.smt2 | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/test/regress/CMakeLists.txt b/test/regress/CMakeLists.txt index 5f82aedf1..00aa786ae 100644 --- a/test/regress/CMakeLists.txt +++ b/test/regress/CMakeLists.txt @@ -1568,6 +1568,7 @@ set(regress_1_tests regress1/quantifiers/issue4243-prereg-inc.smt2 regress1/quantifiers/issue4290-cegqi-r.smt2 regress1/quantifiers/issue4620-erq-witness-unsound.smt2 + regress1/quantifiers/issue4685-wrewrite.smt2 regress1/quantifiers/issue993.smt2 regress1/quantifiers/javafe.ast.StmtVec.009.smt2 regress1/quantifiers/lra-vts-inf.smt2 diff --git a/test/regress/regress1/quantifiers/issue4685-wrewrite.smt2 b/test/regress/regress1/quantifiers/issue4685-wrewrite.smt2 new file mode 100644 index 000000000..d88faa441 --- /dev/null +++ b/test/regress/regress1/quantifiers/issue4685-wrewrite.smt2 @@ -0,0 +1,4 @@ +(set-logic NIRA) +(set-info :status sat) +(assert (forall ((a Int) (b Int)) (or (> a 0) (<= a (/ 0 (+ 0.5 b)))))) +(check-sat) |