diff options
author | yoni206 <yoni206@users.noreply.github.com> | 2021-03-05 12:09:41 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-05 20:09:41 +0000 |
commit | 555e4b0b6b10e9170676c0a3ef9b778322f3327f (patch) | |
tree | ed83be473b6738966d37ab40cf5680fdd499513a | |
parent | ba90594ea59be5cfbcbfe81cf9510dab1efc3130 (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.
-rw-r--r-- | test/unit/api/solver_black.cpp | 3 |
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), |