File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
src/main/scala/inox/solvers/combinators Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,8 @@ trait NonIncrementalSolver extends AbstractSolver { self =>
28
28
def interrupt (): Unit = for (solver <- currentSolver) solver.interrupt()
29
29
30
30
override def check (config : CheckConfiguration ): config.Response [Model , Assumptions ] = {
31
+ assert(currentSolver.isEmpty,
32
+ " `currentSolver` should be empty when invoking `check` in NonIncrementalSolver" )
31
33
val newSolver = underlying()
32
34
try {
33
35
currentSolver = Some (newSolver)
@@ -43,6 +45,8 @@ trait NonIncrementalSolver extends AbstractSolver { self =>
43
45
44
46
override def checkAssumptions (config : Configuration )
45
47
(assumptions : Set [Trees ]): config.Response [Model , Assumptions ] = {
48
+ assert(currentSolver.isEmpty,
49
+ " `currentSolver` should be empty when invoking `checkAssumptions` in NonIncrementalSolver" )
46
50
val newSolver = underlying()
47
51
try {
48
52
currentSolver = Some (newSolver)
You can’t perform that action at this time.
0 commit comments