Collaboration diagram for Fast Search Engine:
|
Return a ref to the vector of watched literals. If no such vector exists, create it. This function is normally used when the value of 'literal' becomes false. The vector contains pointers to all clauses where this literal occurs, and therefore, these clauses may cause unit propagation. In any case, the watch pointers in these clauses need to be updated. Definition at line 143 of file search_fast.cpp. References CVCL::Literal::wp(). Referenced by CVCL::SearchEngineFast::addNewClause(), CVCL::SearchEngineFast::analyzeUIPs(), CVCL::SearchEngineFast::bcp(), and CVCL::SearchEngineFast::propagate(). |
|
Definition at line 194 of file search_fast.cpp. References CVCL::SearchEngineFast::bcp(), CVCL::SearchEngineFast::d_decisionEngine, CVCL::SearchEngineFast::d_factQueue, CVCL::SearchEngineFast::d_inCheckSAT, CVCL::SearchEngineFast::fixConflict(), CVCL::DecisionEngine::goalSatisfied(), and CVCL::SearchEngineFast::split(). Referenced by CVCL::SearchEngineFast::checkValidMain(). |
|
|
|
Clear the list of asserted literals (d_literals).
Definition at line 639 of file search_fast.cpp. References CVCL::SearchEngineFast::d_literals. Referenced by CVCL::SearchEngineFast::bcp(), CVCL::SearchEngineFast::checkValidMain(), and CVCL::SearchEngineFast::fixConflict(). |
|
Recompute the scores for all known literals. This is a relatively expensive procedure, so it should not be called too often. Currently, it is called once per 100 splitters. Definition at line 353 of file search_fast.cpp. References CVCL::Literal::added(), compareLits(), CVCL::Literal::count(), CVCL::Literal::countPrev(), CVCL::SearchEngineFast::d_litsByScores, CVCL::SearchEngineFast::d_litsMaxScorePos, CVCL::SearchEngineFast::d_litSortCount, CVCL::int2string(), CVCL::Literal::score(), CVCL::Literal::toString(), and CVCL::TRACE. Referenced by CVCL::SearchEngineFast::findSplitter(). |
|
Add the literals of a new clause to d_litsByScores.
Definition at line 420 of file search_fast.cpp. References CVCL::Literal::added(), compareLits(), CVCL::SearchEngineFast::d_litsByScores, CVCL::SearchEngineFast::d_litSortCount, CVCL::Literal::getExpr(), CVCL::Expr::isAbsLiteral(), CVCL::Clause::size(), and CVCL::TRACE. Referenced by CVCL::SearchEngineFast::addNewClause(), and CVCL::SearchEngineFast::analyzeUIPs(). |
|
Boolean constraint propagation. Preconditions: On every run besides the first, the CNF clause database must not have any unit or unsat clauses, and there must be a literal queued up for processing. The current context must be consistent. Any and all assertions and assignments must actually be made within the bcp loop. Other parts of the solver may queue new facts with addLiteralFact() and addNonLiteralFact(). bcp() will either process them, or it will find a conflict, in which case they will no longer be valid and will be dumped. Any nonLiterals must already be simplified. Description: BCP will systematically work through all the literals and nonliterals, using boolean constraint propagation by detecting unit clauses and using addLiteralFact() on the unit literal while also marking the clause as SAT. Any clauses marked SAT are guaranteed to be SAT, but clauses not marked SAT are not guaranteed to be unsat.
True indicates success. All literals and nonLiterals have been processed without causing a conflict. Processing nonliterals implies running simplify on them, immediately asserting any simplifications back to the core, and marking the original nonLiteral as simplified, to be ignored by all future (this context or deeper) splitters and bcp runs. Therefore, there will be no unsimplified nonliterals remaining. Definition at line 645 of file search_fast.cpp. References CVCL::SearchEngineFast::clearFacts(), CVCL::SearchEngineFast::clearLiterals(), CVCL::SearchEngineFast::commitFacts(), CVCL::Debug::counter(), CVCL::SearchEngineFast::d_circuitsByExpr, CVCL::SearchEngine::d_commonRules, CVCL::SearchEngineFast::d_conflictTheorem, CVCL::SearchEngine::d_core, CVCL::SearchEngineFast::d_factQueue, CVCL::SearchEngineFast::d_literals, CVCL::SearchEngineFast::d_litsAlive, CVCL::SearchEngineFast::d_nonLiterals, CVCL::debugger, CVCL::Clause::deleted(), CVCL::SearchEngineFast::enqueueFact(), CVCL::Theorem::getExpr(), CVCL::Literal::getExpr(), CVCL::TheoryCore::getFlags(), CVCL::Literal::getValue(), CVCL::SearchEngineFast::IF_DEBUG(), CVCL::TheoryCore::inconsistent(), CVCL::TheoryCore::inconsistentThm(), CVCL::int2string(), CVCL::Expr::isAbsLiteral(), CVCL::Expr::isExists(), CVCL::Expr::isFalse(), CVCL::Expr::isTrue(), CVCL::SearchEngineFast::propagate(), CVCL::CDList< T >::push_back(), CVCL::Clause::sat(), CVCL::SearchImplBase::scopeLevel(), CVCL::SearchEngineFast::setInconsistent(), CVCL::SearchImplBase::simplify(), CVCL::CDList< T >::size(), CVCL::CommonProofRules::skolemize(), CVCL::Literal::toString(), CVCL::TRACE, CVCL::Clause::watched(), and CVCL::SearchEngineFast::wp(). Referenced by CVCL::SearchEngineFast::addLiteralFact(), CVCL::SearchEngineFast::checkSAT(), and CVCL::SearchEngineFast::split(). |
|
|
FIXME: document this.
|
|
Queue up a fact to assert to the DPs later.
Definition at line 1039 of file search_fast.cpp. References CVCL::SearchEngineFast::addLiteralFact(), CVCL::SearchEngineFast::d_factQueue, CVCL::Theorem::getExpr(), CVCL::Theorem::isAbsLiteral(), and CVCL::TRACE. Referenced by CVCL::SearchEngineFast::bcp(), CVCL::SearchEngineFast::fixConflict(), and CVCL::SearchEngineFast::unitPropagation(). |
|
Set the context inconsistent. Takes Theorem(FALSE).
Definition at line 1051 of file search_fast.cpp. References CVCL::Debug::counter(), CVCL::SearchEngine::d_core, CVCL::SearchEngineFast::d_factQueue, CVCL::debugger, CVCL::SearchEngineFast::IF_DEBUG(), and CVCL::TheoryCore::setInconsistent(). Referenced by CVCL::SearchEngineFast::addLiteralFact(), CVCL::SearchEngineFast::addNonLiteralFact(), CVCL::SearchEngineFast::bcp(), and CVCL::SearchEngineFast::recordFact(). |
|
Commit all the enqueued facts to the DPs.
Definition at line 1058 of file search_fast.cpp. References CVCL::TheoryCore::addFact(), CVCL::SearchEngine::d_core, CVCL::SearchEngineFast::d_factQueue, CVCL::SearchEngineFast::d_useEnqueueFact, CVCL::TheoryCore::enqueueFact(), and CVCL::TRACE. Referenced by CVCL::SearchEngineFast::bcp(), and CVCL::SearchEngineFast::fixConflict(). |
|
Clear the local fact queue.
Definition at line 1071 of file search_fast.cpp. References CVCL::SearchEngineFast::d_factQueue. Referenced by CVCL::SearchEngineFast::bcp(), and CVCL::SearchEngineFast::checkValidMain(). |
|
Name.
Definition at line 86 of file search_fast.h. Referenced by CVCL::SearchEngineFast::getName(). |
|
Decision Engine.
Definition at line 88 of file search_fast.h. Referenced by CVCL::SearchEngineFast::checkSAT(), CVCL::SearchEngineFast::findSplitter(), CVCL::SearchEngineFast::fixConflict(), CVCL::SearchEngineFast::SearchEngineFast(), CVCL::SearchEngineFast::split(), CVCL::SearchEngineFast::traceConflict(), and CVCL::SearchEngineFast::~SearchEngineFast(). |
|
Total number of unit propagations.
Definition at line 90 of file search_fast.h. Referenced by CVCL::SearchEngineFast::propagate(). |
|
Total number of circuit propagations.
Definition at line 92 of file search_fast.h. Referenced by CVCL::Circuit::propagate(). |
|
Total number of conflicts.
Definition at line 94 of file search_fast.h. Referenced by CVCL::SearchEngineFast::fixConflict(). |
|
Total number of conflict clauses generated (not all may be active).
Definition at line 96 of file search_fast.h. Referenced by CVCL::SearchEngineFast::analyzeUIPs(). |
|
Backtrackable list of clauses. New clauses may come into play from the decision procedures that are context dependent. Definition at line 101 of file search_fast.h. Referenced by CVCL::SearchEngineFast::addNewClause(), CVCL::SearchEngineFast::checkValidInternal(), CVCL::SearchEngineFast::checkValidMain(), and CVCL::SearchEngineFast::SearchEngineFast(). |
|
Backtrackable set of pending unprocessed literals. These can be discovered at any scope level during conflict analysis. Definition at line 106 of file search_fast.h. Referenced by CVCL::SearchEngineFast::recordFact(). |
|
Definition at line 107 of file search_fast.h. |
|
Backtrackable list of non-literals (non-CNF formulas). We treat nonliterals like clauses, because they are a superset of clauses. We stick the real clauses into d_clauses, but all the rest have to be stored elsewhere. Definition at line 113 of file search_fast.h. Referenced by CVCL::SearchEngineFast::addNonLiteralFact(), CVCL::SearchEngineFast::bcp(), CVCL::SearchEngineFast::checkValidInternal(), CVCL::SearchEngineFast::checkValidMain(), CVCL::SearchEngineFast::findSplitter(), and CVCL::SearchEngineFast::SearchEngineFast(). |
|
prevent reprocessing
Definition at line 114 of file search_fast.h. Referenced by CVCL::SearchEngineFast::addNonLiteralFact(), and CVCL::SearchEngineFast::isAssumption(). |
|
Theorem which records simplification of the last query.
Definition at line 118 of file search_fast.h. Referenced by CVCL::SearchEngineFast::checkValidInternal(), CVCL::SearchEngineFast::checkValidMain(), and CVCL::SearchEngineFast::restartInternal(). |
|
Size of d_nonLiterals before most recent query.
Definition at line 121 of file search_fast.h. Referenced by CVCL::SearchEngineFast::checkValidInternal(), and CVCL::SearchEngineFast::checkValidMain(). |
|
Size of d_nonLiterals after query (not including DP-generated non-literals).
Definition at line 123 of file search_fast.h. Referenced by CVCL::SearchEngineFast::checkValidInternal(), and CVCL::SearchEngineFast::checkValidMain(). |
|
Size of d_clauses before most recent query.
Definition at line 125 of file search_fast.h. Referenced by CVCL::SearchEngineFast::checkValidInternal(), and CVCL::SearchEngineFast::checkValidMain(). |
|
Size of d_clauses after query.
Definition at line 127 of file search_fast.h. Referenced by CVCL::SearchEngineFast::checkValidInternal(), and CVCL::SearchEngineFast::checkValidMain(). |
|
Array of conflict clauses: one deque for each outstanding query.
Definition at line 130 of file search_fast.h. Referenced by CVCL::SearchEngineFast::ConflictClauseManager::notify(), CVCL::SearchEngineFast::SearchEngineFast(), CVCL::SearchEngineFast::ConflictClauseManager::setRestorePoint(), and CVCL::SearchEngineFast::~SearchEngineFast(). |
|
Reference to top deque of conflict clauses.
Definition at line 132 of file search_fast.h. Referenced by CVCL::SearchEngineFast::analyzeUIPs(), CVCL::SearchEngineFast::findSplitter(), CVCL::SearchEngineFast::ConflictClauseManager::notify(), CVCL::SearchEngineFast::SearchEngineFast(), and CVCL::SearchEngineFast::ConflictClauseManager::setRestorePoint(). |
|
Definition at line 150 of file search_fast.h. Referenced by CVCL::SearchEngineFast::checkValidInternal(). |
|
Unprocessed unit conflict clauses. When we find unit conflict clauses, we are automatically going to jump back to the original scope. Hopefully we won't find multiple ones, but you never know with those wacky decision procedures just spitting new information out. These are then directly asserted then promptly forgotten about. Chaff keeps them around (for correctness maybe), but we already have the proofs stored in the literals themselves. Definition at line 160 of file search_fast.h. Referenced by CVCL::SearchEngineFast::analyzeUIPs(), CVCL::SearchEngineFast::checkValidInternal(), CVCL::SearchEngineFast::checkValidMain(), CVCL::SearchEngineFast::fixConflict(), and CVCL::SearchEngineFast::restartInternal(). |
|
Set of literals to be processed by bcp. These are emptied out upon backtracking, because they can only be valid if they were already all processed without conflicts. Therefore, they don't need to be context dependent. Definition at line 167 of file search_fast.h. Referenced by CVCL::SearchEngineFast::addLiteralFact(), CVCL::SearchEngineFast::bcp(), CVCL::SearchEngineFast::checkValidMain(), CVCL::SearchEngineFast::clearLiterals(), CVCL::SearchEngineFast::newIntAssumption(), CVCL::Circuit::propagate(), CVCL::SearchEngineFast::split(), and CVCL::SearchEngineFast::unitPropagation(). |
|
Set of asserted literals which may survive accross checkValid() calls. When a literal is asserted outside of checkValid() call, its value is remembered in a Literal database, but the literal queue for BCP is cleared. We add literals to this set at the proper scope levels, and propagate them at the beginning of a checkValid() call. Definition at line 176 of file search_fast.h. Referenced by CVCL::SearchEngineFast::addLiteralFact(), and CVCL::SearchEngineFast::checkValidMain(). |
|
Queue of derived facts to be sent to DPs.
Definition at line 180 of file search_fast.h. Referenced by CVCL::SearchEngineFast::bcp(), CVCL::SearchEngineFast::checkSAT(), CVCL::SearchEngineFast::checkValidInternal(), CVCL::SearchEngineFast::checkValidMain(), CVCL::SearchEngineFast::clearFacts(), CVCL::SearchEngineFast::commitFacts(), CVCL::SearchEngineFast::enqueueFact(), CVCL::SearchEngineFast::restartInternal(), and CVCL::SearchEngineFast::setInconsistent(). |
|
When true, use TheoryCore::enqueueFact() instead of addFact() in commitFacts().
Definition at line 184 of file search_fast.h. Referenced by CVCL::SearchEngineFast::addLiteralFact(), and CVCL::SearchEngineFast::commitFacts(). |
|
True when checkSAT() is running. Used by addLiteralFact() to determine whether to BCP the literals immediately (outside of checkSAT()) or not. Definition at line 189 of file search_fast.h. Referenced by CVCL::SearchEngineFast::addLiteralFact(), and CVCL::SearchEngineFast::checkSAT(). |
|
Set of alive literals that shouldn't be garbage-collected. Unfortunately, I have a keep-alive issue. I think literals actually have to hang around, so I assert them to a separate d_litsAlive CDList. Definition at line 196 of file search_fast.h. Referenced by CVCL::SearchEngineFast::bcp(), and CVCL::SearchEngineFast::newIntAssumption(). |
|
Mappings of literals to vectors of pointers to the corresponding watched literals. A pointer is a pair (clause,i), where 'i' in {0,1} is the index of the watch pointer in the clause. Definition at line 205 of file search_fast.h. Referenced by CVCL::SearchEngineFast::addNonLiteralFact(), and CVCL::SearchEngineFast::~SearchEngineFast(). |
|
Definition at line 206 of file search_fast.h. Referenced by CVCL::SearchEngineFast::bcp(), and CVCL::Circuit::Circuit(). |
|
The scope of the last conflict. This is the true scope of the conflict, not necessarily the scope where the conflict was detected. Definition at line 211 of file search_fast.h. Referenced by CVCL::SearchEngineFast::analyzeUIPs(), and CVCL::SearchEngineFast::fixConflict(). |
|
The last conflict clause (for checkSAT()). May be Null. It records which conflict clause must be processed by BCP after backtracking from a conflict. A conflict may generate several conflict clauses, but only one of them will cause a unit propagation. Definition at line 218 of file search_fast.h. Referenced by CVCL::SearchEngineFast::analyzeUIPs(), and CVCL::SearchEngineFast::fixConflict(). |
|
Theorem(FALSE) which generated a conflict.
Definition at line 220 of file search_fast.h. Referenced by CVCL::SearchEngineFast::bcp(), CVCL::SearchEngineFast::checkValidMain(), CVCL::SearchEngineFast::fixConflict(), CVCL::SearchEngineFast::propagate(), and CVCL::Circuit::propagate(). |
|
Position of a literal with max score in d_litsByScores.
Definition at line 249 of file search_fast.h. Referenced by CVCL::SearchEngineFast::checkValidMain(), CVCL::SearchEngineFast::findSplitter(), CVCL::SearchEngineFast::fixConflict(), and CVCL::SearchEngineFast::updateLitScores(). |
|
Vector of literals sorted by score.
Definition at line 251 of file search_fast.h. Referenced by CVCL::SearchEngineFast::addSplitter(), CVCL::SearchEngineFast::findSplitter(), CVCL::SearchEngineFast::updateLitCounts(), and CVCL::SearchEngineFast::updateLitScores(). |
|
Internal splitter counter for delaying updateLitScores().
Definition at line 261 of file search_fast.h. Referenced by CVCL::SearchEngineFast::checkValidInternal(), CVCL::SearchEngineFast::findSplitter(), and CVCL::SearchEngineFast::split(). |
|
Internal (decrementing) count of added splitters, to sort d_litByScores.
Definition at line 263 of file search_fast.h. Referenced by CVCL::SearchEngineFast::addSplitter(), CVCL::SearchEngineFast::updateLitCounts(), and CVCL::SearchEngineFast::updateLitScores(). |
|
Flag to switch on/off the berkmin heuristic.
Definition at line 266 of file search_fast.h. Referenced by CVCL::SearchEngineFast::findSplitter(). |