CVC3
Classes | Public Types | Public Member Functions | Protected Attributes

SAT::DPLLT Class Reference

#include <dpllt.h>

Inherited by SAT::DPLLTBasic, and SAT::DPLLTMiniSat.

Collaboration diagram for SAT::DPLLT:
Collaboration graph
[legend]

List of all members.

Classes

Public Types

Public Member Functions

Protected Attributes


Detailed Description

Definition at line 26 of file dpllt.h.


Member Enumeration Documentation

Enumerator:
INCONSISTENT 
MAYBE_CONSISTENT 
CONSISTENT 

Definition at line 29 of file dpllt.h.


Constructor & Destructor Documentation

SAT::DPLLT::DPLLT ( TheoryAPI theoryAPI,
Decider decider 
) [inline]

Constructor.

The client constructing DPLLT must provide an implementation of TheoryAPI. It may also optionally provide an implementation of Decider. If decider is NULL, then the DPLLT class must make its own decisions.

Definition at line 116 of file dpllt.h.

References d_theoryAPI.

virtual SAT::DPLLT::~DPLLT ( ) [inline, virtual]

Definition at line 118 of file dpllt.h.

References d_decider.


Member Function Documentation

TheoryAPI* SAT::DPLLT::theoryAPI ( ) [inline]
Decider* SAT::DPLLT::decider ( ) [inline]

Definition at line 121 of file dpllt.h.

Referenced by SATDecisionHook(), and theoryAPI().

void SAT::DPLLT::setDecider ( Decider decider) [inline]

Definition at line 123 of file dpllt.h.

virtual void SAT::DPLLT::push ( ) [pure virtual]

Set a checkpoint for backtracking.

This should effectively save the current state of the solver. Note that it should also result in a call to TheoryAPI::push.

Implemented in SAT::DPLLTBasic, and SAT::DPLLTMiniSat.

Referenced by CVC3::SearchSat::push().

virtual void SAT::DPLLT::pop ( ) [pure virtual]

Restore checkpoint.

This should return the state to what it was immediately before the last call to push. In particular, if one or more calls to checkSat, continueCheck, or addAssertion have been made since the last push, these should be undone. Note also that in this case, a single call to DPLLT::pop may result in multiple calls to TheoryAPI::pop.

Implemented in SAT::DPLLTBasic, and SAT::DPLLTMiniSat.

Referenced by CVC3::SearchSat::pop().

virtual void SAT::DPLLT::addAssertion ( const CNF_Formula cnf) [pure virtual]

Add new clauses to the SAT solver.

This is used to add clauses that form a "context" for the next call to checkSat

Implemented in SAT::DPLLTBasic, and SAT::DPLLTMiniSat.

Referenced by CVC3::SearchSat::newUserAssumption().

virtual std::vector<SAT::Lit> SAT::DPLLT::getCurAssignments ( ) [pure virtual]

Implemented in SAT::DPLLTBasic, and SAT::DPLLTMiniSat.

virtual std::vector<std::vector<SAT::Lit> > SAT::DPLLT::getCurClauses ( ) [pure virtual]

Implemented in SAT::DPLLTBasic, and SAT::DPLLTMiniSat.

virtual CVC3::QueryResult SAT::DPLLT::checkSat ( const CNF_Formula cnf) [pure virtual]

Check the satisfiability of a set of clauses in the current context.

If the result is SATISFIABLE, UNKNOWN, or ABORT, the DPLLT engine should remain in the state it is in until pop() is called. If the result is UNSATISFIABLE, 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).

Implemented in SAT::DPLLTBasic, and SAT::DPLLTMiniSat.

virtual CVC3::QueryResult SAT::DPLLT::continueCheck ( const CNF_Formula cnf) [pure virtual]

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 not UNSATISFIABLE, the DPLLT engine should remain in the state containing the satisfiable assignment until pop() is called. Similarly, if the result is UNSATISFIABLE, the DPLLT engine should return to the state it was in when checkSat was last called.

Implemented in SAT::DPLLTBasic, and SAT::DPLLTMiniSat.

virtual Var::Val SAT::DPLLT::getValue ( Var  v) [pure virtual]

Get value of variable: unassigned, false, or true.

Implemented in SAT::DPLLTBasic, and SAT::DPLLTMiniSat.

virtual CVC3::Proof SAT::DPLLT::getSatProof ( CNF_Manager ,
CVC3::TheoryCore  
) [pure virtual]

Get the proof from SAT engine.

Implemented in SAT::DPLLTBasic, and SAT::DPLLTMiniSat.


Member Data Documentation

Definition at line 108 of file dpllt.h.

Referenced by SAT::DPLLTMiniSat::pushSolver(), theoryAPI(), and ~DPLLT().


The documentation for this class was generated from the following file: