summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authoryoni206 <yoni206@users.noreply.github.com>2021-03-05 12:09:41 -0800
committerGitHub <noreply@github.com>2021-03-05 20:09:41 +0000
commit555e4b0b6b10e9170676c0a3ef9b778322f3327f (patch)
treeed83be473b6738966d37ab40cf5680fdd499513a /test
parentba90594ea59be5cfbcbfe81cf9510dab1efc3130 (diff)
Set logic in interpolation unit test. (#6067)
The logic QF_LIA was not set in the api interpolation test. Setting it brings the solving time from ~37s to ~2s. Also, a comment is fixed.
Diffstat (limited to 'test')
-rw-r--r--test/unit/api/solver_black.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/unit/api/solver_black.cpp b/test/unit/api/solver_black.cpp
index 8e67d1287..92031b447 100644
--- a/test/unit/api/solver_black.cpp
+++ b/test/unit/api/solver_black.cpp
@@ -1269,6 +1269,7 @@ TEST_F(TestApiBlackSolver, getInfo)
TEST_F(TestApiBlackSolver, getInterpolant)
{
+ d_solver.setLogic("QF_LIA");
d_solver.setOption("produce-interpols", "default");
d_solver.setOption("incremental", "false");
@@ -1282,7 +1283,7 @@ TEST_F(TestApiBlackSolver, getInterpolant)
d_solver.assertFormula(
d_solver.mkTerm(GT, d_solver.mkTerm(PLUS, x, y), zero));
d_solver.assertFormula(d_solver.mkTerm(LT, x, zero));
- // Conjecture for interpolation: y + z > 0 /\ z < 0
+ // Conjecture for interpolation: y + z > 0 \/ z < 0
Term conj =
d_solver.mkTerm(OR,
d_solver.mkTerm(GT, d_solver.mkTerm(PLUS, y, z), zero),
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback