diff options
author | Mathias Preiner <mathias.preiner@gmail.com> | 2019-10-30 15:27:10 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-30 15:27:10 -0700 |
commit | 43ab3f4cd1aa5549cb1aa3c20a2d589614bcb8fc (patch) | |
tree | cf7b5d7f73a4d4ddc34492334a7d0eb90b57b77b /src/prop/cryptominisat.cpp | |
parent | 8dda9531995953c3cec094339002f2ee7cadae08 (diff) |
Unify CVC4_CHECK/CVC4_DCHECK/AlwaysAssert/Assert. (#3366)
Diffstat (limited to 'src/prop/cryptominisat.cpp')
-rw-r--r-- | src/prop/cryptominisat.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/prop/cryptominisat.cpp b/src/prop/cryptominisat.cpp index 62e2c5a43..8a70bedce 100644 --- a/src/prop/cryptominisat.cpp +++ b/src/prop/cryptominisat.cpp @@ -149,7 +149,7 @@ bool CryptoMinisatSolver::ok() const { SatVariable CryptoMinisatSolver::newVar(bool isTheoryAtom, bool preRegister, bool canErase){ d_solver->new_var(); ++d_numVariables; - Assert (d_numVariables == d_solver->nVars()); + Assert(d_numVariables == d_solver->nVars()); return d_numVariables - 1; } @@ -179,7 +179,8 @@ SatValue CryptoMinisatSolver::solve(){ SatValue CryptoMinisatSolver::solve(long unsigned int& resource) { // CMSat::SalverConf conf = d_solver->getConf(); - Unreachable("Not sure how to set different limits for calls to solve in Cryptominisat"); + Unreachable() << "Not sure how to set different limits for calls to solve in " + "Cryptominisat"; return solve(); } @@ -198,7 +199,7 @@ SatValue CryptoMinisatSolver::solve(const std::vector<SatLiteral>& assumptions) SatValue CryptoMinisatSolver::value(SatLiteral l){ const std::vector<CMSat::lbool> model = d_solver->get_model(); CMSatVar var = l.getSatVariable(); - Assert (var < model.size()); + Assert(var < model.size()); CMSat::lbool value = model[var]; return toSatLiteralValue(value); } @@ -208,7 +209,7 @@ SatValue CryptoMinisatSolver::modelValue(SatLiteral l){ } unsigned CryptoMinisatSolver::getAssertionLevel() const { - Unreachable("No interface to get assertion level in Cryptominisat"); + Unreachable() << "No interface to get assertion level in Cryptominisat"; return -1; } |