#include <dpllt_basic.h>
Inheritance diagram for SAT::DPLLTBasic:
Definition at line 20 of file dpllt_basic.h.
|
Definition at line 217 of file dpllt_basic.cpp. |
|
Definition at line 107 of file dpllt_basic.cpp. References SatSolver::Create(), d_mng, SatSolver::RegisterAssignmentHook(), SatSolver::RegisterDecisionHook(), SatSolver::RegisterDeductionHook(), SatSolver::RegisterDLevelHook(), SATAssignmentHook(), SATDecisionHook(), SATDeductionHook(), and SATDLevelHook(). Referenced by checkSat(), continueCheck(), and returnFromSat(). |
|
Definition at line 117 of file dpllt_basic.cpp. References SatSolver::AddClause(), SatSolver::AddVariables(), SAT::CNF_Formula_Impl::begin(), SAT::Clause::clear(), cvcl2SAT(), d_mng, SAT::CNF_Formula_Impl::end(), SatSolver::NumVariables(), SAT::CNF_Formula_Impl::numVars(), and SAT::CNF_Formula_Impl::simplify(). Referenced by addNewClauses(), checkSat(), and continueCheck(). |
|
Definition at line 139 of file dpllt_basic.cpp. References SatSolver::BUDGET_EXCEEDED, d_mng, d_printStats, std::endl(), SatSolver::GetVar(), SatSolver::GetVarAssignment(), SatSolver::NumVariables(), SatSolver::OUT_OF_MEMORY, SatSolver::PrintStatistics(), SatSolver::SATISFIABLE, and SatSolver::UNSATISFIABLE. Referenced by checkSat(), and continueCheck(). |
|
Definition at line 184 of file dpllt_basic.cpp. References d_mng, SatSolver::GetClauseLits(), SatSolver::GetFirstClause(), SatSolver::GetNextClause(), SatSolver::GetPhaseFromLit(), SatSolver::GetVarAssignment(), and SatSolver::GetVarFromLit(). Referenced by checkSat(), and continueCheck(). |
|
|
|
Definition at line 40 of file dpllt_basic.h. References d_popScopes. Referenced by SATDLevelHook(). |
|
Definition at line 224 of file dpllt_basic.cpp. References SatSolver::AddClause(), SAT::Clause::begin(), cvcl2SAT(), d_mng, SAT::Clause::end(), SAT::Clause::getMaxVar(), SatSolver::NumVariables(), satSolver(), and SAT::Clause::size(). Referenced by SATAssignmentHook(), SATDecisionHook(), and SATDeductionHook(). |
|
Definition at line 238 of file dpllt_basic.cpp. References generate_CDB(). Referenced by SATDecisionHook(), and SATDeductionHook(). |
|
Definition at line 45 of file dpllt_basic.h. References d_mng, SAT::Lit::getVar(), SatSolver::GetVar(), SAT::Lit::isNull(), SAT::Lit::isPositive(), and SatSolver::MakeLit(). Referenced by addNewClause(), generate_CDB(), and SATDecisionHook(). |
|
Definition at line 49 of file dpllt_basic.h. References d_mng, SatSolver::GetPhaseFromLit(), SatSolver::GetVarFromLit(), SatSolver::GetVarIndex(), and SatSolver::Lit::IsNull(). |
|
Definition at line 54 of file dpllt_basic.h. References d_mng. Referenced by addNewClause(), and SATAssignmentHook(). |
|
Check the satisfiability of a set of clauses in the current context. If the result is SATISFIABLE, the DPLLT engine should remain in the state containing the satisfiable assignment until returnFromSat() is called. If the result is UNSAT or ABORT, the DPLLT engine should return to the state it was in when called. Note that it should be possible to call checkSat multiple times, even if the result is true (each additional call should use the context left by the previous call). Implements SAT::DPLLT. Definition at line 245 of file dpllt_basic.cpp. References SAT::DPLLT::ABORT, createManager(), d_cnf, d_cnfStack, d_mng, d_mngStack, d_ready, SAT::DPLLT::d_theoryAPI, generate_CDB(), SatSolver::GetVar(), SatSolver::GetVarAssignment(), handle_result(), SAT::DPLLT::SATISFIABLE, SatSolver::SATISFIABLE, SatSolver::Satisfiable(), SAT::DPLLT::UNSAT, SatSolver::UNSATISFIABLE, and verify_solution(). |
|
Continue checking the last check with additional constraints. Should only be called after a previous call to checkSat (or continueCheck) that returned SATISFIABLE. It should add the clauses in cnf to the existing clause database and search for a satisfying assignment. As with checkSat, if the result is SATISFIABLE, the DPLLT engine should remain in the state containing the satisfiable assignment until returnFromSat() is called. Note that returnFromSat should return to the state just before the last call to checkSat, NOT the last call to continueCheck. Similarly, if the result is UNSAT or ABORT, the DPLLT engine should return to the state it was in when checkSat was last called. Implements SAT::DPLLT. Definition at line 310 of file dpllt_basic.cpp. References SAT::DPLLT::ABORT, SatSolver::Continue(), createManager(), d_cnf, d_cnfStack, d_mng, d_mngStack, d_ready, SAT::DPLLT::d_theoryAPI, generate_CDB(), handle_result(), SAT::DPLLT::SATISFIABLE, SatSolver::SATISFIABLE, SAT::DPLLT::UNSAT, SatSolver::UNSATISFIABLE, and verify_solution(). |
|
Get value of variable: unassigned, false, or true.
Implements SAT::DPLLT. Definition at line 59 of file dpllt_basic.h. References d_mng, SatSolver::GetVar(), and SatSolver::GetVarAssignment(). |
|
Return to the state just before the last satisfiable call to checkSat. Each time a call to checkSat returns SATISFIABLE, the resulting assignment is retained. Multiple calls to checkSat can be used to refine assignments, adding additional constraints each time. returnFromSat() returns to the state just before the last call to checkSat which returned SATISFIABLE. Implements SAT::DPLLT. Definition at line 354 of file dpllt_basic.cpp. References createManager(), d_cnf, d_cnfStack, d_mng, d_mngStack, d_popScopes, and d_ready. |
|
|
|
Definition at line 22 of file dpllt_basic.h. Referenced by addNewClause(), checkSat(), continueCheck(), createManager(), cvcl2SAT(), generate_CDB(), getValue(), handle_result(), returnFromSat(), SAT2cvcl(), satSolver(), verify_solution(), and ~DPLLTBasic(). |
|
Definition at line 23 of file dpllt_basic.h. Referenced by checkSat(), continueCheck(), and returnFromSat(). |
|
Definition at line 24 of file dpllt_basic.h. Referenced by popScopes(), and returnFromSat(). |
|
Definition at line 25 of file dpllt_basic.h. Referenced by checkSat(), continueCheck(), and returnFromSat(). |
|
Definition at line 26 of file dpllt_basic.h. Referenced by checkSat(), continueCheck(), and returnFromSat(). |
|
Definition at line 27 of file dpllt_basic.h. Referenced by handle_result(). |
|
Definition at line 28 of file dpllt_basic.h. Referenced by checkSat(), continueCheck(), returnFromSat(), and ~DPLLTBasic(). |