CVC3
Classes | Public Types | Public Member Functions | Static Public Member Functions

SatSolver Class Reference

#include <sat_api.h>

Inherited by Xchaff.

List of all members.

Classes

Public Types

Public Member Functions

Static Public Member Functions


Detailed Description

Definition at line 24 of file sat_api.h.


Member Typedef Documentation


Member Enumeration Documentation

Enumerator:
UNKNOWN 
UNSATISFIABLE 
SATISFIABLE 
BUDGET_EXCEEDED 
OUT_OF_MEMORY 

Definition at line 26 of file sat_api.h.


Constructor & Destructor Documentation

SatSolver::SatSolver ( ) [inline]

Definition at line 35 of file sat_api.h.

virtual SatSolver::~SatSolver ( ) [inline, virtual]

Definition at line 36 of file sat_api.h.


Member Function Documentation

SatSolver * SatSolver::Create ( ) [static]

Definition at line 15 of file sat_api.cpp.

Referenced by SAT::DPLLTBasic::createManager().

virtual int SatSolver::NumVariables ( ) [pure virtual]
virtual Var SatSolver::AddVariables ( int  nvars) [pure virtual]

Implemented in Xchaff.

Referenced by SAT::DPLLTBasic::addNewClauses(), and AddVariable().

Var SatSolver::AddVariable ( ) [inline]

Definition at line 82 of file sat_api.h.

References AddVariables().

virtual Var SatSolver::GetVar ( int  varIndex) [pure virtual]

Implemented in Xchaff.

Referenced by SAT::DPLLTBasic::checkSat().

virtual int SatSolver::GetVarIndex ( Var  v) [pure virtual]

Implemented in Xchaff.

Referenced by SATAssignmentHook().

virtual Var SatSolver::GetFirstVar ( ) [pure virtual]

Implemented in Xchaff.

virtual Var SatSolver::GetNextVar ( Var  var) [pure virtual]

Implemented in Xchaff.

virtual Lit SatSolver::MakeLit ( Var  var,
int  phase 
) [pure virtual]

Implemented in Xchaff.

virtual Var SatSolver::GetVarFromLit ( Lit  lit) [pure virtual]
virtual int SatSolver::GetPhaseFromLit ( Lit  lit) [pure virtual]
virtual int SatSolver::NumClauses ( ) [pure virtual]

Implemented in Xchaff.

virtual Clause SatSolver::AddClause ( std::vector< Lit > &  lits) [pure virtual]
virtual bool SatSolver::DeleteClause ( Clause  clause) [inline, virtual]

Definition at line 123 of file sat_api.h.

virtual Clause SatSolver::GetClause ( int  clauseIndex) [pure virtual]

Implemented in Xchaff.

virtual Clause SatSolver::GetFirstClause ( ) [pure virtual]

Implemented in Xchaff.

virtual Clause SatSolver::GetNextClause ( Clause  clause) [pure virtual]

Implemented in Xchaff.

virtual void SatSolver::GetClauseLits ( Clause  clause,
std::vector< Lit > *  lits 
) [pure virtual]
virtual SATStatus SatSolver::Satisfiable ( bool  allowNewClauses = false) [pure virtual]

Implemented in Xchaff.

Referenced by SAT::DPLLTBasic::checkSat().

virtual int SatSolver::GetVarAssignment ( Var  var) [pure virtual]

Implemented in Xchaff.

Referenced by SAT::DPLLTBasic::checkSat().

virtual SATStatus SatSolver::Continue ( ) [pure virtual]

Implemented in Xchaff.

Referenced by SAT::DPLLTBasic::continueCheck().

virtual void SatSolver::Restart ( ) [pure virtual]

Implemented in Xchaff.

virtual void SatSolver::Reset ( ) [pure virtual]

Implemented in Xchaff.

virtual void SatSolver::RegisterDLevelHook ( void(*)(void *, int)  f,
void *  cookie 
) [pure virtual]

Implemented in Xchaff.

virtual void SatSolver::RegisterDecisionHook ( Lit(*)(void *, bool *)  f,
void *  cookie 
) [pure virtual]
virtual void SatSolver::RegisterAssignmentHook ( void(*)(void *, Var, int)  f,
void *  cookie 
) [pure virtual]

Implemented in Xchaff.

virtual void SatSolver::RegisterDeductionHook ( void(*)(void *)  f,
void *  cookie 
) [pure virtual]

Implemented in Xchaff.

virtual bool SatSolver::SetBudget ( int  budget) [inline, virtual]

Reimplemented in Xchaff.

Definition at line 218 of file sat_api.h.

virtual bool SatSolver::SetMemLimit ( int  mem_limit) [inline, virtual]

Reimplemented in Xchaff.

Definition at line 221 of file sat_api.h.

virtual bool SatSolver::SetRandomness ( int  n) [inline, virtual]

Reimplemented in Xchaff.

Definition at line 225 of file sat_api.h.

virtual bool SatSolver::SetRandSeed ( int  seed) [inline, virtual]

Reimplemented in Xchaff.

Definition at line 226 of file sat_api.h.

virtual bool SatSolver::EnableClauseDeletion ( ) [inline, virtual]

Reimplemented in Xchaff.

Definition at line 229 of file sat_api.h.

virtual bool SatSolver::DisableClauseDeletion ( ) [inline, virtual]

Reimplemented in Xchaff.

Definition at line 230 of file sat_api.h.

virtual int SatSolver::GetBudgetUsed ( ) [inline, virtual]

Reimplemented in Xchaff.

Definition at line 243 of file sat_api.h.

virtual int SatSolver::GetMemUsed ( ) [inline, virtual]

Reimplemented in Xchaff.

Definition at line 246 of file sat_api.h.

virtual int SatSolver::GetNumDecisions ( ) [inline, virtual]

Reimplemented in Xchaff.

Definition at line 249 of file sat_api.h.

virtual int SatSolver::GetNumConflicts ( ) [inline, virtual]

Reimplemented in Xchaff.

Definition at line 252 of file sat_api.h.

virtual int SatSolver::GetNumExtConflicts ( ) [inline, virtual]

Reimplemented in Xchaff.

Definition at line 256 of file sat_api.h.

virtual float SatSolver::GetTotalTime ( ) [inline, virtual]

Reimplemented in Xchaff.

Definition at line 259 of file sat_api.h.

virtual float SatSolver::GetSATTime ( ) [inline, virtual]

Reimplemented in Xchaff.

Definition at line 263 of file sat_api.h.

virtual int SatSolver::GetNumLiterals ( ) [inline, virtual]

Reimplemented in Xchaff.

Definition at line 266 of file sat_api.h.

virtual int SatSolver::GetNumDeletedClauses ( ) [inline, virtual]

Reimplemented in Xchaff.

Definition at line 269 of file sat_api.h.

virtual int SatSolver::GetNumDeletedLiterals ( ) [inline, virtual]

Reimplemented in Xchaff.

Definition at line 272 of file sat_api.h.

virtual int SatSolver::GetNumImplications ( ) [inline, virtual]

Reimplemented in Xchaff.

Definition at line 275 of file sat_api.h.

virtual int SatSolver::GetMaxDLevel ( ) [inline, virtual]

Reimplemented in Xchaff.

Definition at line 278 of file sat_api.h.

void SatSolver::PrintStatistics ( std::ostream &  os = std::cout)

Definition at line 21 of file sat_api.cpp.

References std::endl().


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