Skip to content

Commit ec3b77f

Browse files
authored
Merge pull request #149 from jad-hamza/incremental
Avoid using checkAssumptions in non-incremental mode
2 parents 7752948 + d4a4f3b commit ec3b77f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/main/scala/inox/solvers/combinators/NonIncrementalSolver.scala

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,10 @@ trait NonIncrementalSolver extends AbstractSolver { self =>
5252
currentSolver = Some(newSolver)
5353
for (expression <- assertions)
5454
newSolver.assertCnstr(expression)
55-
val res = newSolver.checkAssumptions(config)(assumptions)
55+
// we assert the assumptions to address: https://github.com/Z3Prover/z3/issues/5257
56+
for (assumption <- assumptions)
57+
newSolver.assertCnstr(assumption)
58+
val res = newSolver.checkAssumptions(config)(Set())
5659
currentSolver = None
5760
res
5861
} finally {

0 commit comments

Comments
 (0)