diff options
author | Aina Niemetz <aina.niemetz@gmail.com> | 2020-03-10 14:51:32 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-10 14:51:32 -0700 |
commit | e9f4cec2cad02e270747759223090c16b9d2d44c (patch) | |
tree | ff902073b926d48cb0ae23848bee4b90e96000c7 /src/prop/sat_solver.h | |
parent | bcaebfa163bb27e1cf14c0f763afb47b185a5f99 (diff) |
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.
Diffstat (limited to 'src/prop/sat_solver.h')
-rw-r--r-- | src/prop/sat_solver.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/prop/sat_solver.h b/src/prop/sat_solver.h index 9898f3f87..b9c518fd6 100644 --- a/src/prop/sat_solver.h +++ b/src/prop/sat_solver.h @@ -132,10 +132,13 @@ public: };/* class BVSatSolverInterface */ +class DPLLSatSolverInterface : public SatSolver +{ + public: + virtual ~DPLLSatSolverInterface(){}; -class DPLLSatSolverInterface: public SatSolver { -public: - virtual void initialize(context::Context* context, prop::TheoryProxy* theoryProxy) = 0; + virtual void initialize(context::Context* context, + prop::TheoryProxy* theoryProxy) = 0; virtual void push() = 0; @@ -152,7 +155,7 @@ public: virtual void requirePhase(SatLiteral lit) = 0; virtual bool isDecision(SatVariable decn) const = 0; -};/* class DPLLSatSolverInterface */ +}; /* class DPLLSatSolverInterface */ inline std::ostream& operator <<(std::ostream& out, prop::SatLiteral lit) { out << lit.toString(); |