Fix issue with reset-assertions. (#3988)
authorAina Niemetz <aina.niemetz@gmail.com>
Tue, 10 Mar 2020 21:51:32 +0000 (14:51 -0700)
committerGitHub <noreply@github.com>
Tue, 10 Mar 2020 21:51:32 +0000 (14:51 -0700)
commite9f4cec2cad02e270747759223090c16b9d2d44c
treeff902073b926d48cb0ae23848bee4b90e96000c7
parentbcaebfa163bb27e1cf14c0f763afb47b185a5f99
Fix issue with reset-assertions. (#3988)

Calling (reset-assertions) in start mode was not handled correctly.
Additionally, when calling (check-sat) after (reset-assertions) after a
(check-sat) call that answered unsat, we answered unsat instead of sat.
This cleans up and fixes reset-assertions) handling.
14 files changed:
src/decision/justification_heuristic.cpp
src/decision/justification_heuristic.h
src/preprocessing/preprocessing_pass_context.h
src/prop/minisat/minisat.h
src/prop/prop_engine.cpp
src/prop/sat_solver.h
src/smt/smt_engine.cpp
src/smt/smt_engine.h
src/util/statistics_registry.cpp
test/regress/CMakeLists.txt
test/regress/regress0/reset-assertions.smt2 [deleted file]
test/regress/regress0/smtlib/reset-assertions-global.smt2 [new file with mode: 0644]
test/regress/regress0/smtlib/reset-assertions1.smt2 [new file with mode: 0644]
test/regress/regress0/smtlib/reset-assertions2.smt2 [new file with mode: 0644]