yosys-master
|
#include <SimpSolver.h>
Data Structures | |
struct | ClauseDeleted |
struct | ElimLt |
Public Member Functions | |
SimpSolver () | |
~SimpSolver () | |
Var | newVar (lbool upol=l_Undef, bool dvar=true) |
void | releaseVar (Lit l) |
bool | addClause (const vec< Lit > &ps) |
bool | addEmptyClause () |
bool | addClause (Lit p) |
bool | addClause (Lit p, Lit q) |
bool | addClause (Lit p, Lit q, Lit r) |
bool | addClause (Lit p, Lit q, Lit r, Lit s) |
bool | addClause_ (vec< Lit > &ps) |
bool | substitute (Var v, Lit x) |
void | setFrozen (Var v, bool b) |
bool | isEliminated (Var v) const |
void | freezeVar (Var v) |
void | thaw () |
bool | solve (const vec< Lit > &assumps, bool do_simp=true, bool turn_off_simp=false) |
lbool | solveLimited (const vec< Lit > &assumps, bool do_simp=true, bool turn_off_simp=false) |
bool | solve (bool do_simp=true, bool turn_off_simp=false) |
bool | solve (Lit p, bool do_simp=true, bool turn_off_simp=false) |
bool | solve (Lit p, Lit q, bool do_simp=true, bool turn_off_simp=false) |
bool | solve (Lit p, Lit q, Lit r, bool do_simp=true, bool turn_off_simp=false) |
bool | eliminate (bool turn_off_elim=false) |
virtual void | garbageCollect () |
bool | simplify () |
bool | solve (const vec< Lit > &assumps) |
bool | solve () |
bool | solve (Lit p) |
bool | solve (Lit p, Lit q) |
bool | solve (Lit p, Lit q, Lit r) |
lbool | solveLimited (const vec< Lit > &assumps) |
bool | okay () const |
bool | implies (const vec< Lit > &assumps, vec< Lit > &out) |
ClauseIterator | clausesBegin () const |
ClauseIterator | clausesEnd () const |
TrailIterator | trailBegin () const |
TrailIterator | trailEnd () const |
void | toDimacs (FILE *f, const vec< Lit > &assumps) |
void | toDimacs (const char *file, const vec< Lit > &assumps) |
void | toDimacs (FILE *f, Clause &c, vec< Var > &map, Var &max) |
void | toDimacs (const char *file) |
void | toDimacs (const char *file, Lit p) |
void | toDimacs (const char *file, Lit p, Lit q) |
void | toDimacs (const char *file, Lit p, Lit q, Lit r) |
void | setPolarity (Var v, lbool b) |
void | setDecisionVar (Var v, bool b) |
lbool | value (Var x) const |
lbool | value (Lit p) const |
lbool | modelValue (Var x) const |
lbool | modelValue (Lit p) const |
int | nAssigns () const |
int | nClauses () const |
int | nLearnts () const |
int | nVars () const |
int | nFreeVars () const |
void | printStats () const |
void | setConfBudget (int64_t x) |
void | setPropBudget (int64_t x) |
void | budgetOff () |
void | interrupt () |
void | clearInterrupt () |
void | checkGarbage (double gf) |
void | checkGarbage () |
Data Fields | |
int | grow |
int | clause_lim |
int | subsumption_lim |
double | simp_garbage_frac |
bool | use_asymm |
bool | use_rcheck |
bool | use_elim |
bool | extend_model |
int | merges |
int | asymm_lits |
int | eliminated_vars |
vec< lbool > | model |
LSet | conflict |
int | verbosity |
double | var_decay |
double | clause_decay |
double | random_var_freq |
double | random_seed |
bool | luby_restart |
int | ccmin_mode |
int | phase_saving |
bool | rnd_pol |
bool | rnd_init_act |
double | garbage_frac |
int | min_learnts_lim |
int | restart_first |
double | restart_inc |
double | learntsize_factor |
double | learntsize_inc |
int | learntsize_adjust_start_confl |
double | learntsize_adjust_inc |
uint64_t | solves |
uint64_t | starts |
uint64_t | decisions |
uint64_t | rnd_decisions |
uint64_t | propagations |
uint64_t | conflicts |
uint64_t | dec_vars |
uint64_t | num_clauses |
uint64_t | num_learnts |
uint64_t | clauses_literals |
uint64_t | learnts_literals |
uint64_t | max_literals |
uint64_t | tot_literals |
Protected Member Functions | |
lbool | solve_ (bool do_simp=true, bool turn_off_simp=false) |
bool | asymm (Var v, CRef cr) |
bool | asymmVar (Var v) |
void | updateElimHeap (Var v) |
void | gatherTouchedClauses () |
bool | merge (const Clause &_ps, const Clause &_qs, Var v, vec< Lit > &out_clause) |
bool | merge (const Clause &_ps, const Clause &_qs, Var v, int &size) |
bool | backwardSubsumptionCheck (bool verbose=false) |
bool | eliminateVar (Var v) |
void | extendModel () |
void | removeClause (CRef cr) |
bool | strengthenClause (CRef cr, Lit l) |
bool | implied (const vec< Lit > &c) |
void | relocAll (ClauseAllocator &to) |
void | insertVarOrder (Var x) |
Lit | pickBranchLit () |
void | newDecisionLevel () |
void | uncheckedEnqueue (Lit p, CRef from=CRef_Undef) |
bool | enqueue (Lit p, CRef from=CRef_Undef) |
CRef | propagate () |
void | cancelUntil (int level) |
void | analyze (CRef confl, vec< Lit > &out_learnt, int &out_btlevel) |
void | analyzeFinal (Lit p, LSet &out_conflict) |
bool | litRedundant (Lit p) |
lbool | search (int nof_conflicts) |
lbool | solve_ () |
void | reduceDB () |
void | removeSatisfied (vec< CRef > &cs) |
void | rebuildOrderHeap () |
void | varDecayActivity () |
void | varBumpActivity (Var v, double inc) |
void | varBumpActivity (Var v) |
void | claDecayActivity () |
void | claBumpActivity (Clause &c) |
void | attachClause (CRef cr) |
void | detachClause (CRef cr, bool strict=false) |
bool | isRemoved (CRef cr) const |
bool | locked (const Clause &c) const |
bool | satisfied (const Clause &c) const |
int | decisionLevel () const |
uint32_t | abstractLevel (Var x) const |
CRef | reason (Var x) const |
int | level (Var x) const |
double | progressEstimate () const |
bool | withinBudget () const |
Static Protected Member Functions | |
static VarData | mkVarData (CRef cr, int l) |
static double | drand (double &seed) |
static int | irand (double &seed, int size) |
Definition at line 33 of file SimpSolver.h.
SimpSolver::SimpSolver | ( | ) |
Definition at line 48 of file SimpSolver.cc.
SimpSolver::~SimpSolver | ( | ) |
Definition at line 74 of file SimpSolver.cc.
|
inlineprotectedinherited |
Definition at line 186 of file SimpSolver.h.
|
inline |
Definition at line 150 of file SimpSolver.cc.
|
inline |
Definition at line 298 of file Solver.cc.
Definition at line 458 of file Solver.cc.
Definition at line 410 of file SimpSolver.cc.
|
protected |
Definition at line 437 of file SimpSolver.cc.
|
protectedinherited |
Definition at line 186 of file Solver.cc.
|
protected |
Definition at line 343 of file SimpSolver.cc.
|
inlineinherited |
|
protectedinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineprotectedinherited |
|
inlineprotectedinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineprotectedinherited |
|
protectedinherited |
Definition at line 196 of file Solver.cc.
|
inlinestaticprotectedinherited |
bool SimpSolver::eliminate | ( | bool | turn_off_elim = false | ) |
Definition at line 597 of file SimpSolver.cc.
|
protected |
Definition at line 487 of file SimpSolver.cc.
|
inlineprotectedinherited |
Definition at line 336 of file Solver.h.
|
protected |
Definition at line 580 of file SimpSolver.cc.
|
inline |
|
virtual |
Reimplemented from Minisat::Solver.
Definition at line 714 of file SimpSolver.cc.
|
protected |
Definition at line 294 of file SimpSolver.cc.
Definition at line 322 of file SimpSolver.cc.
Definition at line 889 of file Solver.cc.
|
inlineprotectedinherited |
|
inlineinherited |
|
inlinestaticprotectedinherited |
|
inline |
|
inlineprotectedinherited |
|
inlineprotectedinherited |
|
protectedinherited |
Definition at line 390 of file Solver.cc.
|
inlineprotectedinherited |
|
protected |
Definition at line 232 of file SimpSolver.cc.
Definition at line 264 of file SimpSolver.cc.
|
inlineinherited |
|
inlineinherited |
|
inlineprotectedinherited |
Definition at line 79 of file SimpSolver.cc.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
protectedinherited |
|
inherited |
Definition at line 993 of file Solver.cc.
|
protectedinherited |
|
protectedinherited |
Definition at line 508 of file Solver.cc.
|
protectedinherited |
|
protectedinherited |
Definition at line 583 of file Solver.cc.
void SimpSolver::releaseVar | ( | Lit | l | ) |
|
protected |
Definition at line 686 of file SimpSolver.cc.
|
protected |
Definition at line 190 of file SimpSolver.cc.
Definition at line 603 of file Solver.cc.
|
protectedinherited |
|
protectedinherited |
Definition at line 704 of file Solver.cc.
|
inlineinherited |
|
inlineinherited |
|
inline |
Definition at line 192 of file SimpSolver.h.
|
inlineinherited |
|
inherited |
Definition at line 643 of file Solver.cc.
|
inlineinherited |
|
inlineinherited |
|
inline |
Definition at line 213 of file SimpSolver.h.
Definition at line 384 of file Solver.h.
Definition at line 385 of file Solver.h.
|
inline |
Definition at line 209 of file SimpSolver.h.
|
inline |
Definition at line 210 of file SimpSolver.h.
|
inline |
Definition at line 211 of file SimpSolver.h.
|
inline |
Definition at line 212 of file SimpSolver.h.
|
protected |
Definition at line 108 of file SimpSolver.cc.
|
protectedinherited |
Definition at line 841 of file Solver.cc.
|
inline |
Definition at line 205 of file SimpSolver.cc.
Definition at line 548 of file SimpSolver.cc.
|
inline |
Definition at line 951 of file Solver.cc.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
protectedinherited |
Definition at line 488 of file Solver.cc.
|
inlineprotected |
Definition at line 179 of file SimpSolver.h.
|
inlineprotectedinherited |
|
inlineprotectedinherited |
|
inlineprotectedinherited |
|
inlineprotectedinherited |
|
protectedinherited |
int Minisat::SimpSolver::asymm_lits |
Definition at line 104 of file SimpSolver.h.
|
protected |
Definition at line 147 of file SimpSolver.h.
|
protected |
Definition at line 152 of file SimpSolver.h.
|
protectedinherited |
int Minisat::SimpSolver::clause_lim |
Definition at line 91 of file SimpSolver.h.
|
protectedinherited |
Definition at line 142 of file SimpSolver.h.
|
protected |
Definition at line 137 of file SimpSolver.h.
|
protected |
Definition at line 146 of file SimpSolver.h.
int Minisat::SimpSolver::eliminated_vars |
Definition at line 105 of file SimpSolver.h.
|
protected |
Definition at line 134 of file SimpSolver.h.
bool Minisat::SimpSolver::extend_model |
Definition at line 99 of file SimpSolver.h.
|
protected |
Definition at line 144 of file SimpSolver.h.
Definition at line 145 of file SimpSolver.h.
int Minisat::SimpSolver::grow |
Definition at line 90 of file SimpSolver.h.
|
protectedinherited |
|
protectedinherited |
|
inherited |
|
protected |
Definition at line 136 of file SimpSolver.h.
int Minisat::SimpSolver::merges |
Definition at line 103 of file SimpSolver.h.
|
protected |
Definition at line 141 of file SimpSolver.h.
|
protected |
Definition at line 148 of file SimpSolver.h.
|
protected |
Definition at line 140 of file SimpSolver.h.
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
double Minisat::SimpSolver::simp_garbage_frac |
Definition at line 94 of file SimpSolver.h.
int Minisat::SimpSolver::subsumption_lim |
Definition at line 93 of file SimpSolver.h.
Definition at line 143 of file SimpSolver.h.
|
protected |
Definition at line 138 of file SimpSolver.h.
bool Minisat::SimpSolver::use_asymm |
Definition at line 96 of file SimpSolver.h.
bool Minisat::SimpSolver::use_elim |
Definition at line 98 of file SimpSolver.h.
bool Minisat::SimpSolver::use_rcheck |
Definition at line 97 of file SimpSolver.h.
|
protected |
Definition at line 135 of file SimpSolver.h.
|
protectedinherited |