Collaboration diagram for Private methods:
size_t CVC3::ExprManager::HashString::operator() | ( | const std::string & | s | ) | const [inline, inherited] |
Definition at line 79 of file expr_manager.h.
CVC3::ExprManager::HashEV::HashEV | ( | ExprManager * | em | ) | [inline, inherited] |
Definition at line 119 of file expr_manager.h.
size_t CVC3::ExprManager::HashEV::operator() | ( | ExprValue * | ev | ) | const [inline, inherited] |
Definition at line 120 of file expr_manager.h.
virtual CVC3::ExprManager::TypeComputer::~TypeComputer | ( | ) | [inline, virtual, inherited] |
Definition at line 186 of file expr_manager.h.
virtual void CVC3::ExprManager::TypeComputer::computeType | ( | const Expr & | e | ) | [pure virtual, inherited] |
Compute the type of e.
Implemented in CVC3::TypeComputerCore.
Referenced by CVC3::ExprManager::computeType().
virtual void CVC3::ExprManager::TypeComputer::checkType | ( | const Expr & | e | ) | [pure virtual, inherited] |
Check that e is a valid Type expr.
Implemented in CVC3::TypeComputerCore.
Referenced by CVC3::ExprManager::checkType().
virtual Cardinality CVC3::ExprManager::TypeComputer::finiteTypeInfo | ( | Expr & | e, | |
Unsigned & | n, | |||
bool | enumerate, | |||
bool | computeSize | |||
) | [pure virtual, inherited] |
Get information related to finiteness of a type.
Implemented in CVC3::TypeComputerCore.
Referenced by CVC3::ExprManager::finiteTypeInfo().
Cached recursive descent. Must be called only during rebuild().
Definition at line 251 of file expr_manager.cpp.
References CVC3::Expr::d_expr, CVC3::ExprManager::d_exprSet, CVC3::ExprManager::d_rebuildCache, CVC3::ExprValue::d_type, DebugAssert, CVC3::MemoryManager::deleteData(), Hash::hash_set< _Key, _HashFcn, _EqualKey >::end(), CVC3::ExprHashMap< Data >::end(), Hash::hash_set< _Key, _HashFcn, _EqualKey >::find(), CVC3::ExprHashMap< Data >::find(), CVC3::Type::getExpr(), CVC3::ExprManager::getMM(), Hash::hash_set< _Key, _HashFcn, _EqualKey >::insert(), CVC3::Type::isNull(), CVC3::ExprManager::nextIndex(), CVC3::ExprValue::rebuild(), CVC3::Expr::toString(), and CVC3::ExprManager::Type.
Referenced by CVC3::ExprValue::rebuild(), and CVC3::ExprManager::rebuild().
Return either an existing or a new ExprValue matching ev.
Definition at line 288 of file expr_manager.cpp.
References CVC3::ExprValue::copy(), CVC3::ExprManager::d_exprSet, DebugAssert, Hash::hash_set< _Key, _HashFcn, _EqualKey >::end(), Hash::hash_set< _Key, _HashFcn, _EqualKey >::find(), Hash::hash_set< _Key, _HashFcn, _EqualKey >::insert(), CVC3::ExprManager::isActive(), and CVC3::ExprManager::nextIndex().
Referenced by CVC3::Expr::Expr().
unsigned CVC3::ExprManager::getFlag | ( | ) | [inline, private, inherited] |
Return the current Expr flag counter.
Definition at line 213 of file expr_manager.h.
Referenced by CVC3::Expr::setFlag().
unsigned CVC3::ExprManager::nextFlag | ( | ) | [inline, private, inherited] |
Increment and return the Expr flag counter (this clears all the flags).
Definition at line 215 of file expr_manager.h.
References FatalAssert.
void ExprManager::computeType | ( | const Expr & | e | ) | [private, inherited] |
Compute the type of the Expr.
Definition at line 465 of file expr_manager.cpp.
References CVC3::ExprManager::TypeComputer::computeType(), CVC3::ExprManager::d_typeComputer, DebugAssert, CVC3::Type::getExpr(), CVC3::Expr::getType(), and CVC3::Expr::isNull().
Referenced by CVC3::Expr::getType().
void ExprManager::checkType | ( | const Expr & | e | ) | [private, inherited] |
Check well-formedness of a type Expr.
Definition at line 472 of file expr_manager.cpp.
References CVC3::ExprManager::TypeComputer::checkType(), CVC3::ExprManager::d_typeComputer, DebugAssert, and CVC3::Expr::isValidType().
Referenced by CVC3::Type::Type().
Cardinality ExprManager::finiteTypeInfo | ( | Expr & | e, | |
Unsigned & | n, | |||
bool | enumerate, | |||
bool | computeSize | |||
) | [private, inherited] |
Get information related to finiteness of a type.
Definition at line 479 of file expr_manager.cpp.
References CVC3::ExprManager::d_typeComputer, DebugAssert, and CVC3::ExprManager::TypeComputer::finiteTypeInfo().
Referenced by CVC3::Expr::typeCard(), CVC3::Expr::typeEnumerateFinite(), and CVC3::Expr::typeSizeFinite().
ExprManager::ExprManager | ( | ContextManager * | cm, | |
const CLFlags & | flags | |||
) | [inherited] |
Constructor.
Definition at line 70 of file expr_manager.cpp.
References CVC3::BOOLEAN, CVC3::ExprManager::d_bool, CVC3::ExprManager::d_cm, CVC3::ExprManager::d_false, CVC3::ExprManager::d_mm, CVC3::ExprManager::d_mmFlag, CVC3::ExprManager::d_notifyObj, CVC3::ExprManager::d_true, CVC3::EXPR_APPLY, CVC3::EXPR_BOUND_VAR, CVC3::EXPR_CLOSURE, CVC3::EXPR_NODE, CVC3::EXPR_RATIONAL, CVC3::EXPR_SKOLEM, CVC3::EXPR_STRING, CVC3::EXPR_SYMBOL, CVC3::EXPR_UCONST, CVC3::EXPR_VALUE, CVC3::FALSE_EXPR, CVC3::ContextManager::getCurrentContext(), IF_DEBUG, CVC3::ExprManager::newLeafExpr(), registerKinds(), CVC3::Expr::setType(), CVC3::TRUE_EXPR, and CVC3::Type::typeBool().
ExprManager::~ExprManager | ( | ) | [inherited] |
Destructor.
Definition at line 125 of file expr_manager.cpp.
References CVC3::ExprManager::clear(), CVC3::ExprManager::d_disableGC, CVC3::ExprManager::d_emptyVec, CVC3::ExprManager::d_mm, CVC3::ExprManager::d_notifyObj, FatalAssert, and TRACE_MSG.
void ExprManager::clear | ( | ) | [inherited] |
Free up all memory and delete all the expressions.
No more expressions can be created after this point, only destructors ~Expr() can be called.
This method is needed to dis-entangle the mutual dependency of ExprManager and ContextManager, when destructors of ExprValue (sub)classes need to delete backtracking objects, and deleting the ContextManager requires destruction of some remaining Exprs.
Definition at line 141 of file expr_manager.cpp.
References Hash::hash_set< _Key, _HashFcn, _EqualKey >::begin(), Hash::hash_set< _Key, _HashFcn, _EqualKey >::clear(), CVC3::ExprManager::d_bool, CVC3::ExprManager::d_disableGC, CVC3::ExprManager::d_exprSet, CVC3::ExprManager::d_false, CVC3::ExprManager::d_mm, CVC3::ExprManager::d_nullExpr, CVC3::ExprManager::d_true, Hash::hash_set< _Key, _HashFcn, _EqualKey >::end(), CVC3::ExprManager::Expr, FatalAssert, IF_DEBUG, CVC3::ExprManager::isActive(), CVC3::Expr::isNull(), Hash::hash_set< _Key, _HashFcn, _EqualKey >::size(), CVC3::TRACE, and TRACE_MSG.
Referenced by CVC3::VCL::destroy(), and CVC3::ExprManager::~ExprManager().
bool ExprManager::isActive | ( | ) | [inherited] |
Check if the ExprManager is still active (clear() was not called).
Definition at line 184 of file expr_manager.cpp.
References CVC3::ExprManager::d_disableGC.
Referenced by CVC3::ExprManager::clear(), CVC3::ExprManager::installExprValue(), CVC3::ExprManager::newExprValue(), CVC3::Theorem::print(), and CVC3::ExprManager::rebuild().
void ExprManager::gc | ( | ExprValue * | ev | ) | [inherited] |
Garbage collect the ExprValue pointer.
Definition at line 188 of file expr_manager.cpp.
References CVC3::ExprManager::d_disableGC, CVC3::ExprManager::d_exprSet, CVC3::ExprManager::d_inGC, CVC3::ExprManager::d_mm, CVC3::ExprManager::d_pending, CVC3::ExprManager::d_postponed, CVC3::ExprManager::d_postponeGC, Hash::hash_set< _Key, _HashFcn, _EqualKey >::erase(), FatalAssert, and IF_DEBUG.
Referenced by CVC3::Expr::~Expr().
void CVC3::ExprManager::postponeGC | ( | ) | [inline, inherited] |
Postpone deletion of garbage-collected expressions.
Definition at line 257 of file expr_manager.h.
Referenced by CVC3::ExprManagerNotifyObj::notifyPre().
void ExprManager::resumeGC | ( | ) | [inherited] |
Resume deletion of garbage-collected expressions.
Definition at line 212 of file expr_manager.cpp.
References CVC3::ExprManager::d_mm, CVC3::ExprManager::d_postponed, and CVC3::ExprManager::d_postponeGC.
Referenced by CVC3::ExprManagerNotifyObj::notify().
Rebuild the Expr with this ExprManager if it belongs to another ExprManager.
Definition at line 226 of file expr_manager.cpp.
References CVC3::ExprHashMap< Data >::clear(), CVC3::ExprManager::d_rebuildCache, DebugAssert, CVC3::Expr::getEM(), IF_DEBUG, CVC3::ExprManager::isActive(), CVC3::Expr::isNull(), CVC3::ExprManager::rebuildRec(), and CVC3::ExprHashMap< Data >::size().
Referenced by CVC3::VCL::importExpr(), CVC3::VCL::importType(), CVC3::Op::Op(), and CVC3::Expr::rebuild().
ExprIndex CVC3::ExprManager::nextIndex | ( | ) | [inline, inherited] |
Return the next Expr index.
It should be used only by ExprValue() constructor
Definition at line 268 of file expr_manager.h.
Referenced by CVC3::ExprManager::newExprValue(), and CVC3::ExprManager::rebuildRec().
ExprIndex CVC3::ExprManager::lastIndex | ( | ) | [inline, inherited] |
void CVC3::ExprManager::clearFlags | ( | ) | [inline, inherited] |
Clears the generic Expr flag in all Exprs.
Definition at line 272 of file expr_manager.h.
Referenced by CVC3::Expr::clearFlags().
const Expr& CVC3::ExprManager::boolExpr | ( | ) | [inline, inherited] |
const Expr& CVC3::ExprManager::falseExpr | ( | ) | [inline, inherited] |
FALSE Expr.
Definition at line 278 of file expr_manager.h.
Referenced by CVC3::CoreTheoremProducer::AndToIte(), CVC3::ArithTheoremProducerOld::canonMult(), CVC3::ArithTheoremProducerOld::clashingBounds(), CVC3::ArithTheoremProducer3::clashingBounds(), CVC3::ArithTheoremProducer::clashingBounds(), CVC3::TheorySimulate::computeTCC(), CVC3::SearchEngineTheoremProducer::confAndrAF(), CVC3::SearchEngineTheoremProducer::confAndrAT(), CVC3::SearchEngineTheoremProducer::confIffr(), CVC3::SearchEngineTheoremProducer::confIterIfThen(), CVC3::SearchEngineTheoremProducer::confIterThenElse(), CVC3::SearchEngineTheoremProducer::conflictRule(), CVC3::ArithTheoremProducerOld::constPredicate(), CVC3::ArithTheoremProducer3::constPredicate(), CVC3::ArithTheoremProducer::constPredicate(), CVC3::CommonTheoremProducer::contradictionRule(), CVC3::ArithTheoremProducerOld::cycleConflict(), CVC3::ArithTheoremProducerOld::evenPowerEqNegConst(), CVC3::ArithTheoremProducer3::evenPowerEqNegConst(), CVC3::ArithTheoremProducer::evenPowerEqNegConst(), CVC3::ArithTheoremProducerOld::expandGrayShadowConst(), CVC3::ArithTheoremProducer3::expandGrayShadowConst(), CVC3::ArithTheoremProducer::expandGrayShadowConst(), CVC3::VCL::falseExpr(), CVC3::Theory::falseExpr(), CVC3::ArithTheoremProducerOld::grayShadowConst(), CVC3::ArithTheoremProducer3::grayShadowConst(), CVC3::ArithTheoremProducer::grayShadowConst(), CVC3::CommonTheoremProducer::iffNotFalse(), CVC3::CoreTheoremProducer::IffToIte(), CVC3::ArithTheoremProducerOld::intEqIrrational(), CVC3::ArithTheoremProducer3::intEqIrrational(), CVC3::ArithTheoremProducer::intEqIrrational(), CVC3::ArithTheoremProducerOld::intEqualityRationalConstant(), CVC3::ArithTheoremProducerOld::intVarEqnConst(), CVC3::ArithTheoremProducer3::intVarEqnConst(), CVC3::ArithTheoremProducer::intVarEqnConst(), CVC3::ArithTheoremProducerOld::isIntConst(), CVC3::ArithTheoremProducer3::isIntConst(), CVC3::ArithTheoremProducer::isIntConst(), CVC3::ArithTheoremProducerOld::nonLinearIneqSignSplit(), CVC3::CommonTheoremProducer::notToIff(), CVC3::CoreTheoremProducer::NotToIte(), CVC3::CoreTheoremProducer::OrToIte(), CVC3::ArithTheoremProducerOld::powEqZero(), CVC3::ArithTheoremProducer3::powEqZero(), CVC3::ArithTheoremProducer::powEqZero(), CVC3::CommonTheoremProducer::rewriteAnd(), CVC3::CommonTheoremProducer::rewriteIff(), CVC3::CoreTheoremProducer::rewriteIteCond(), CVC3::ArithTheoremProducerOld::rewriteLeavesConst(), CVC3::CommonTheoremProducer::rewriteNotTrue(), CVC3::CommonTheoremProducer::rewriteOr(), CVC3::CoreTheoremProducer::rewriteOrSubterms(), and CVC3::ExprTransform::simplifyWithCare().
const Expr& CVC3::ExprManager::trueExpr | ( | ) | [inline, inherited] |
TRUE Expr.
Definition at line 280 of file expr_manager.h.
Referenced by CVC3::CoreTheoremProducer::AndToIte(), CVC3::ArithTheoremProducerOld::canonMult(), CVC3::TheoryCore::computeModelBasic(), CVC3::TheorySimulate::computeTCC(), CVC3::TheoryCore::computeTypePred(), CVC3::TheoryBitvector::computeTypePred(), CVC3::TheoryArithOld::computeTypePred(), CVC3::TheoryArithNew::computeTypePred(), CVC3::TheoryArith3::computeTypePred(), CVC3::Theory::computeTypePred(), CVC3::ArithTheoremProducerOld::constPredicate(), CVC3::ArithTheoremProducer3::constPredicate(), CVC3::ArithTheoremProducer::constPredicate(), CVC3::ArithTheoremProducerOld::dummyTheorem(), CVC3::ArithTheoremProducer3::dummyTheorem(), CVC3::ArithTheoremProducer::dummyTheorem(), CVC3::CoreTheoremProducer::IffToIte(), CVC3::CommonTheoremProducer::iffTrue(), CVC3::CoreTheoremProducer::ImpToIte(), CVC3::ArithTheoremProducerOld::isIntConst(), CVC3::ArithTheoremProducer3::isIntConst(), CVC3::ArithTheoremProducer::isIntConst(), CVC3::ArithTheoremProducerOld::nonLinearIneqSignSplit(), CVC3::CoreTheoremProducer::NotToIte(), CVC3::CoreTheoremProducer::OrToIte(), CVC3::QuantTheoremProducer::partialUniversalInst(), CVC3::CommonTheoremProducer::rewriteAnd(), CVC3::CoreTheoremProducer::rewriteAndSubterms(), CVC3::CoreTheoremProducer::rewriteDistinct(), CVC3::CoreTheoremProducer::rewriteIteCond(), CVC3::ArithTheoremProducerOld::rewriteLeavesConst(), CVC3::CommonTheoremProducer::rewriteNotFalse(), CVC3::CommonTheoremProducer::rewriteOr(), CVC3::CommonTheoremProducer::rewriteReflexivity(), CVC3::ExprTransform::simplifyWithCare(), CVC3::VCL::trueExpr(), CVC3::Theory::trueExpr(), CVC3::CommonTheoremProducer::trueTheorem(), and CVC3::QuantTheoremProducer::universalInst().
const std::vector<Expr>& CVC3::ExprManager::getEmptyVector | ( | ) | [inline, inherited] |
References to empty objects (used in ExprValue).
Definition at line 282 of file expr_manager.h.
Referenced by CVC3::Expr::getKids().
const Expr& CVC3::ExprManager::getNullExpr | ( | ) | [inline, inherited] |
Expr CVC3::ExprManager::newExpr | ( | ExprValue * | ev | ) | [inline, inherited] |
Return either an existing or a new Expr matching ev.
Definition at line 289 of file expr_manager.h.
Referenced by CVC3::ExprManager::newBoundVarExpr(), CVC3::TheoryBitvector::newBVConstExpr(), CVC3::ExprManager::newClosureExpr(), CVC3::ExprManager::newLeafExpr(), CVC3::ExprManager::newRatExpr(), CVC3::ExprManager::newSkolemExpr(), CVC3::ExprManager::newStringExpr(), CVC3::ExprManager::newSymbolExpr(), and CVC3::ExprManager::newVarExpr().
Expr CVC3::ExprManager::newLeafExpr | ( | const Op & | op | ) | [inline, inherited] |
Definition at line 454 of file expr_manager.h.
References CVC3::APPLY, DebugAssert, CVC3::Expr::getEM(), CVC3::Op::getExpr(), CVC3::Op::getKind(), and CVC3::ExprManager::newExpr().
Referenced by CVC3::ExprStream::addLetHeader(), CVC3::VCL::checkContinue(), CVC3::SearchEngineTheoremProducer::eliminateSkolemAxioms(), CVC3::ExprManager::ExprManager(), CVC3::VCL::getAssumptions(), CVC3::VCL::getAssumptionsTCC(), CVC3::VCL::getAssumptionsUsed(), CVC3::VCL::getClosure(), CVC3::VCL::getConcreteModel(), CVC3::VCL::getCounterExample(), CVC3::VCL::getProof(), CVC3::VCL::getProofClosure(), CVC3::VCL::getProofTCC(), CVC3::VCL::getTCC(), CVC3::TheoryCore::parseExprOp(), CVC3::TheoryArithOld::parseExprOp(), CVC3::TheoryArithNew::parseExprOp(), CVC3::TheoryArith3::parseExprOp(), CVC3::VCL::pop(), CVC3::VCL::popScope(), CVC3::VCL::push(), CVC3::VCL::pushScope(), CVC3::CommonTheoremProducer::substitutivityRule(), and CVC3::TheoremProducer::TheoremProducer().
Expr CVC3::ExprManager::newStringExpr | ( | const std::string & | s | ) | [inline, inherited] |
Definition at line 468 of file expr_manager.h.
References CVC3::ExprManager::newExpr().
Referenced by CVC3::CNF_TheoremProducer::CNFtranslate(), CVC3::Translator::finish(), CVC3::SearchEngineTheoremProducer::satProof(), CVC3::VCL::stringExpr(), and CVC3::TheoryQuant::TheoryQuant().
Expr CVC3::ExprManager::newRatExpr | ( | const Rational & | r | ) | [inline, inherited] |
Definition at line 471 of file expr_manager.h.
References CVC3::ExprManager::newExpr().
Referenced by CVC3::CommonTheoremProducer::andElim(), CVC3::CNF_TheoremProducer::CNFITEtranslate(), CVC3::CNF_TheoremProducer::CNFtranslate(), CVC3::SimulateTheoremProducer::expandSimulate(), CVC3::CNF_TheoremProducer::ifLiftRule(), CVC3::CompleteInstPreProcessor::inst(), CVC3::CompleteInstPreProcessor::minusOne(), CVC3::CompleteInstPreProcessor::plusOne(), CVC3::Translator::preprocessRec(), CVC3::TheoryBitvector::rat(), CVC3::TheoryArith::rat(), CVC3::BitvectorTheoremProducer::rat(), CVC3::ArithTheoremProducerOld::rat(), CVC3::ArithTheoremProducer3::rat(), CVC3::ArithTheoremProducer::rat(), CVC3::VCL::ratExpr(), CVC3::CoreTheoremProducer::rewriteAndSubterms(), CVC3::CoreTheoremProducer::rewriteOrSubterms(), CVC3::TheoryArith::rewriteToDiff(), and CVC3::QuantTheoremProducer::universalInst().
Expr CVC3::ExprManager::newSkolemExpr | ( | const Expr & | e, | |
int | i | |||
) | [inline, inherited] |
Definition at line 474 of file expr_manager.h.
References DebugAssert, CVC3::Expr::getEM(), and CVC3::ExprManager::newExpr().
Referenced by CVC3::Expr::skolemExpr().
Expr CVC3::ExprManager::newVarExpr | ( | const std::string & | s | ) | [inline, inherited] |
Definition at line 478 of file expr_manager.h.
References CVC3::ExprManager::newExpr().
Referenced by CVC3::ExprStream::addLetHeader(), CVC3::TheoryQuant::checkSat(), CVC3::Theory::lookupVar(), CVC3::TheoremProducer::newPf(), and CVC3::Theory::newVar().
Expr CVC3::ExprManager::newSymbolExpr | ( | const std::string & | s, | |
int | kind | |||
) | [inline, inherited] |
Definition at line 481 of file expr_manager.h.
References CVC3::ExprManager::newExpr().
Referenced by CVC3::Theory::lookupFunction(), CVC3::Theory::newFunction(), CVC3::Theory::newVar(), CVC3::Translator::printArrayExpr(), and CVC3::VCL::transClosure().
Expr CVC3::ExprManager::newBoundVarExpr | ( | const std::string & | name, | |
const std::string & | uid | |||
) | [inline, inherited] |
Definition at line 484 of file expr_manager.h.
References CVC3::ExprManager::newExpr().
Referenced by CVC3::ArrayTheoremProducer::arrayNotEq(), CVC3::VCL::boundVarExpr(), CVC3::BitvectorTheoremProducer::bvUDivTheorem(), CVC3::TheoryUF::computeModel(), CVC3::VCL::createOp(), CVC3::ArithTheoremProducerOld::eqElimIntRule(), CVC3::ArithTheoremProducer3::eqElimIntRule(), CVC3::ArithTheoremProducer::eqElimIntRule(), CVC3::SearchEngineTheoremProducer::findInLocalCache(), CVC3::ArithTheoremProducerOld::IsIntegerElim(), CVC3::ArithTheoremProducer3::IsIntegerElim(), CVC3::ArithTheoremProducer::IsIntegerElim(), CVC3::ExprManager::newBoundVarExpr(), CVC3::TheoremProducer::newLabel(), CVC3::Theory::newSubtypeExpr(), CVC3::QuantTheoremProducer::normalizeQuant(), CVC3::BitvectorTheoremProducer::processExtract(), CVC3::BitvectorTheoremProducer::solveExtractOverlap(), and CVC3::CommonTheoremProducer::varIntroRule().
Expr CVC3::ExprManager::newBoundVarExpr | ( | const std::string & | name, | |
const std::string & | uid, | |||
const Type & | type | |||
) | [inline, inherited] |
Definition at line 488 of file expr_manager.h.
References CVC3::ARROW, DebugAssert, CVC3::Type::getExpr(), CVC3::Expr::getKind(), CVC3::Type::isNull(), CVC3::Expr::lookupType(), CVC3::ExprManager::newBoundVarExpr(), and CVC3::Expr::setType().
Expr CVC3::ExprManager::newBoundVarExpr | ( | const Type & | type | ) | [inline, inherited] |
Expr CVC3::ExprManager::newClosureExpr | ( | int | kind, | |
const Expr & | var, | |||
const Expr & | body | |||
) | [inline, inherited] |
Definition at line 506 of file expr_manager.h.
References CVC3::ExprManager::newExpr().
Referenced by CVC3::QuantTheoremProducer::adjustVarUniv(), CVC3::arrayLiteral(), CVC3::ArrayTheoremProducer::arrayNotEq(), CVC3::QuantTheoremProducer::boundVarElim(), CVC3::BitvectorTheoremProducer::bvUDivTheorem(), CVC3::TheoryQuant::computeTCC(), CVC3::ArithTheoremProducerOld::eqElimIntRule(), CVC3::ArithTheoremProducer3::eqElimIntRule(), CVC3::ArithTheoremProducer::eqElimIntRule(), CVC3::VCL::existsExpr(), CVC3::VCL::forallExpr(), CVC3::TheoryDatatypeLazy::instantiate(), CVC3::TheoryDatatype::instantiate(), CVC3::ArithTheoremProducerOld::IsIntegerElim(), CVC3::ArithTheoremProducer3::IsIntegerElim(), CVC3::ArithTheoremProducer::IsIntegerElim(), CVC3::CompleteInstPreProcessor::isMacro(), CVC3::VCL::lambdaExpr(), CVC3::TheoryUF::lambdaExpr(), CVC3::TheoremProducer::newPf(), CVC3::Theory::newSubtypeExpr(), CVC3::QuantTheoremProducer::normalizeQuant(), CVC3::SearchEngineTheoremProducer::opCNFRule(), CVC3::QuantTheoremProducer::packVar(), CVC3::TheoryQuant::parseExprOp(), CVC3::TheoryArray::parseExprOp(), CVC3::QuantTheoremProducer::partialUniversalInst(), CVC3::Translator::preprocess2Rec(), CVC3::Translator::preprocessRec(), CVC3::BitvectorTheoremProducer::processExtract(), CVC3::CompleteInstPreProcessor::pullVarOut(), CVC3::QuantTheoremProducer::pullVarOut(), CVC3::CompleteInstPreProcessor::recInstMacros(), CVC3::CompleteInstPreProcessor::recRewriteNot(), CVC3::CompleteInstPreProcessor::recSkolemize(), CVC3::Expr::recursiveQuantSubst(), CVC3::Expr::recursiveSubst(), CVC3::QuantTheoremProducer::rewriteNotExists(), CVC3::CommonTheoremProducer::rewriteNotExists(), CVC3::QuantTheoremProducer::rewriteNotForall(), CVC3::CommonTheoremProducer::rewriteNotForall(), CVC3::CompleteInstPreProcessor::simplifyEq(), CVC3::BitvectorTheoremProducer::solveExtractOverlap(), and CVC3::CommonTheoremProducer::varIntroRule().
Expr CVC3::ExprManager::newClosureExpr | ( | int | kind, | |
const std::vector< Expr > & | vars, | |||
const Expr & | body, | |||
const Expr & | trig | |||
) | [inline, inherited] |
Definition at line 530 of file expr_manager.h.
References CVC3::ExprManager::newExpr(), and CVC3::Expr::setTrigger().
Expr CVC3::ExprManager::newClosureExpr | ( | int | kind, | |
const std::vector< Expr > & | vars, | |||
const Expr & | body, | |||
const std::vector< Expr > & | trigs | |||
) | [inline, inherited] |
Definition at line 516 of file expr_manager.h.
References CVC3::ExprManager::newExpr(), and CVC3::Expr::setTriggers().
Expr CVC3::ExprManager::newClosureExpr | ( | int | kind, | |
const std::vector< Expr > & | vars, | |||
const Expr & | body, | |||
const std::vector< std::vector< Expr > > & | trigs | |||
) | [inline, inherited] |
Definition at line 523 of file expr_manager.h.
References CVC3::ExprManager::newExpr(), and CVC3::Expr::setTriggers().
Expr CVC3::ExprManager::andExpr | ( | const std::vector< Expr > & | children | ) | [inline, inherited] |
Expr CVC3::ExprManager::orExpr | ( | const std::vector< Expr > & | children | ) | [inline, inherited] |
size_t CVC3::ExprManager::hash | ( | const Expr & | e | ) | const [inline, inherited] |
Hash function for a single Expr.
Definition at line 542 of file expr_manager.h.
References CVC3::Expr::d_expr, DebugAssert, CVC3::ExprValue::hash(), and CVC3::Expr::isNull().
ContextManager* CVC3::ExprManager::getCM | ( | ) | const [inline, inherited] |
Context* CVC3::ExprManager::getCurrentContext | ( | ) | const [inline, inherited] |
int CVC3::ExprManager::scopelevel | ( | ) | [inline, inherited] |
void CVC3::ExprManager::setTM | ( | TheoremManager * | tm | ) | [inline, inherited] |
Set the TheoremManager.
Definition at line 329 of file expr_manager.h.
Referenced by CVC3::VCL::init().
TheoremManager* CVC3::ExprManager::getTM | ( | ) | const [inline, inherited] |
Fetch the TheoremManager.
Definition at line 331 of file expr_manager.h.
Referenced by CVC3::Theorem::clearAllFlags(), CVC3::Theorem::getCachedValue(), CVC3::Theorem::getExpandFlag(), CVC3::Theorem::getLitFlag(), CVC3::Theorem::isFlagged(), CVC3::Theorem::setCachedValue(), CVC3::Theorem::setExpandFlag(), CVC3::Theorem::setFlag(), CVC3::Theorem::setLitFlag(), CVC3::Theorem::withAssumptions(), and CVC3::Theorem::withProof().
MemoryManager* CVC3::ExprManager::getMM | ( | size_t | MMIndex | ) | [inline, inherited] |
Return a MemoryManager for the given ExprValue type.
Definition at line 334 of file expr_manager.h.
References DebugAssert.
Referenced by CVC3::ExprClosure::copy(), CVC3::ExprApplyTmp::copy(), CVC3::ExprApply::copy(), CVC3::ExprBoundVar::copy(), CVC3::ExprSymbol::copy(), CVC3::ExprVar::copy(), CVC3::ExprRational::copy(), CVC3::ExprSkolem::copy(), CVC3::ExprString::copy(), CVC3::ExprNode::copy(), CVC3::ExprNodeTmp::copy(), CVC3::ExprValue::copy(), CVC3::BVConstExpr::copy(), and CVC3::ExprManager::rebuildRec().
unsigned CVC3::ExprManager::getSimpCacheTag | ( | ) | const [inline, inherited] |
Get the simplifier's cache tag.
Definition at line 339 of file expr_manager.h.
Referenced by CVC3::Expr::setSimpCache(), and CVC3::Expr::validSimpCache().
void CVC3::ExprManager::invalidateSimpCache | ( | ) | [inline, inherited] |
Invalidate the simplifier's cache tag.
Definition at line 341 of file expr_manager.h.
Referenced by CVC3::TheoryCore::assertEqualities(), CVC3::TheoryCore::CoreNotifyObj::notify(), CVC3::ExprTransform::preprocess(), CVC3::TheoryCore::setFindLiteral(), CVC3::TheoryDatatypeLazy::update(), CVC3::TheoryDatatype::update(), CVC3::TheoryArray::update(), and CVC3::Theory::updateCC().
void CVC3::ExprManager::registerTypeComputer | ( | TypeComputer * | typeComputer | ) | [inline, inherited] |
Register type computer.
Definition at line 344 of file expr_manager.h.
Referenced by CVC3::TheoryCore::TheoryCore().
int CVC3::ExprManager::printDepth | ( | ) | const [inline, inherited] |
bool CVC3::ExprManager::withIndentation | ( | ) | const [inline, inherited] |
int CVC3::ExprManager::lineWidth | ( | ) | const [inline, inherited] |
int CVC3::ExprManager::indent | ( | ) | const [inline, inherited] |
Get initial indentation.
Definition at line 354 of file expr_manager.h.
Referenced by CVC3::ExprStream::ExprStream(), CVC3::Expr::indent(), and CVC3::Theorem::print().
int ExprManager::indent | ( | int | n, | |
bool | permanent = false | |||
) | [inherited] |
Set initial indentation. Returns the previous permanent value.
Definition at line 334 of file expr_manager.cpp.
References CVC3::ExprManager::d_indent, and CVC3::ExprManager::d_indentTransient.
int ExprManager::incIndent | ( | int | n, | |
bool | permanent = false | |||
) | [inherited] |
Increment the current transient indentation by n.
If the second argument is true, sets the result as permanent.
Definition at line 345 of file expr_manager.cpp.
References CVC3::ExprManager::d_indent, and CVC3::ExprManager::d_indentTransient.
Referenced by CVC3::Theorem::print().
void CVC3::ExprManager::restoreIndent | ( | ) | [inline, inherited] |
Set transient indentation to permanent.
Definition at line 362 of file expr_manager.h.
Referenced by CVC3::operator<<().
InputLanguage ExprManager::getInputLang | ( | ) | const [inherited] |
Get the input language for printing.
Definition at line 354 of file expr_manager.cpp.
References CVC3::ExprManager::d_inputLang, and CVC3::getLanguage().
Referenced by CVC3::VCCmd::evaluateCommand(), and main().
InputLanguage ExprManager::getOutputLang | ( | ) | const [inherited] |
Get the output language for printing.
Definition at line 360 of file expr_manager.cpp.
References CVC3::ExprManager::d_inputLang, CVC3::ExprManager::d_outputLang, and CVC3::getLanguage().
Referenced by CVC3::Translator::dump(), CVC3::Translator::dumpAssertion(), CVC3::Translator::dumpQuery(), CVC3::Translator::dumpQueryResult(), CVC3::Translator::finish(), CVC3::Translator::fixConstName(), main(), CVC3::Translator::printArrayExpr(), CVC3::VCCmd::reportResult(), and CVC3::Translator::start().
bool CVC3::ExprManager::dagPrinting | ( | ) | const [inline, inherited] |
PrettyPrinter* CVC3::ExprManager::getPrinter | ( | ) | const [inline, inherited] |
Return the pretty-printer if there is one; otherwise return NULL.
Definition at line 371 of file expr_manager.h.
void ExprManager::newKind | ( | int | kind, | |
const std::string & | name, | |||
bool | isType = false | |||
) | [inherited] |
Register a new kind.
The kind may already be registered under the same name, but if the name is different, it's an error.
If the new kind is supposed to represent a type, set isType to true.
Definition at line 367 of file expr_manager.cpp.
References Hash::hash_map< _Key, _Data, _HashFcn, _EqualKey >::count(), CVC3::ExprManager::d_kindMap, CVC3::ExprManager::d_kindMapByName, CVC3::ExprManager::d_typeKinds, DebugAssert, and Hash::hash_set< _Key, _HashFcn, _EqualKey >::insert().
Referenced by registerKinds(), CVC3::TheoremManager::TheoremManager(), CVC3::TheoryArith3::TheoryArith3(), CVC3::TheoryArithNew::TheoryArithNew(), CVC3::TheoryArithOld::TheoryArithOld(), CVC3::TheoryArray::TheoryArray(), CVC3::TheoryBitvector::TheoryBitvector(), CVC3::TheoryDatatype::TheoryDatatype(), CVC3::TheoryRecords::TheoryRecords(), and CVC3::TheoryUF::TheoryUF().
void ExprManager::registerPrettyPrinter | ( | PrettyPrinter & | printer | ) | [inherited] |
Register the pretty-printer (can only do it if none registered).
The pointer is NOT owned by ExprManager. Delete it yourself.
Definition at line 391 of file expr_manager.cpp.
References CVC3::ExprManager::d_prettyPrinter, and DebugAssert.
Referenced by CVC3::TheoryCore::TheoryCore().
void ExprManager::unregisterPrettyPrinter | ( | ) | [inherited] |
Tell ExprManager that the printer is no longer valid.
Definition at line 398 of file expr_manager.cpp.
References CVC3::ExprManager::d_prettyPrinter, and FatalAssert.
Referenced by CVC3::TheoryCore::~TheoryCore().
bool CVC3::ExprManager::isKindRegistered | ( | int | kind | ) | [inline, inherited] |
Returns true if kind is built into CVC or has been registered via newKind.
Definition at line 392 of file expr_manager.h.
Referenced by CVC3::ExprValue::ExprValue().
bool CVC3::ExprManager::isTypeKind | ( | int | kind | ) | [inline, inherited] |
Check if a kind represents a type.
Definition at line 394 of file expr_manager.h.
Referenced by CVC3::Expr::isType().
const string & ExprManager::getKindName | ( | int | kind | ) | [inherited] |
Return the name associated with a kind. The kind must already be registered.
Definition at line 405 of file expr_manager.cpp.
References Hash::hash_map< _Key, _Data, _HashFcn, _EqualKey >::count(), CVC3::ExprManager::d_kindMap, and DebugAssert.
Referenced by CVC3::BitvectorTheoremProducer::bitExtractBitwise(), CVC3::BitvectorTheoremProducer::extractBitwise(), CVC3::SearchEngineTheoremProducer::opCNFRule(), CVC3::Expr::print(), CVC3::Expr::printAST(), CVC3::Theory::registerKinds(), and CVC3::Theory::theoryOf().
int ExprManager::getKind | ( | const std::string & | name | ) | [inherited] |
Return a kind associated with a name. Returns NULL_KIND if not found.
Definition at line 412 of file expr_manager.cpp.
References CVC3::ExprManager::d_kindMapByName, Hash::hash_map< _Key, _Data, _HashFcn, _EqualKey >::end(), Hash::hash_map< _Key, _Data, _HashFcn, _EqualKey >::find(), and CVC3::NULL_KIND.
Referenced by CVC3::VCCmd::evaluateCommand(), CVC3::TheoryCore::parseExpr(), CVC3::TheoryUF::parseExprOp(), CVC3::TheorySimulate::parseExprOp(), CVC3::TheoryQuant::parseExprOp(), CVC3::TheoryDatatype::parseExprOp(), CVC3::TheoryCore::parseExprOp(), CVC3::TheoryBitvector::parseExprOp(), CVC3::TheoryArray::parseExprOp(), CVC3::TheoryArithOld::parseExprOp(), CVC3::TheoryArithNew::parseExprOp(), and CVC3::TheoryArith3::parseExprOp().
size_t ExprManager::registerSubclass | ( | size_t | sizeOfSubclass | ) | [inherited] |
Register a new subclass of ExprValue.
Takes the size (in bytes) of the new subclass and returns the unique index of that subclass. Subsequent calls to the subclass's getMMIndex() must return that index.
Definition at line 421 of file expr_manager.cpp.
References CVC3::ExprManager::d_mm, CVC3::ExprManager::d_mmFlag, and FatalAssert.
Referenced by CVC3::TheoryBitvector::TheoryBitvector().
unsigned long ExprManager::getMemory | ( | int | verbosity | ) | [inherited] |
Calculate memory usage.
Definition at line 433 of file expr_manager.cpp.
References CVC3::ExprManager::d_mmFlag.
Referenced by CVC3::VCL::getMemory().
CVC3::ExprManagerNotifyObj::ExprManagerNotifyObj | ( | ExprManager * | em, | |
Context * | cxt | |||
) | [inline, inherited] |
void ExprManagerNotifyObj::notifyPre | ( | void | ) | [virtual, inherited] |
Reimplemented from CVC3::ContextNotifyObj.
Definition at line 656 of file expr_manager.cpp.
References CVC3::ExprManagerNotifyObj::d_em, and CVC3::ExprManager::postponeGC().
void ExprManagerNotifyObj::notify | ( | void | ) | [virtual, inherited] |
Reimplemented from CVC3::ContextNotifyObj.
Definition at line 661 of file expr_manager.cpp.
References CVC3::ExprManagerNotifyObj::d_em, and CVC3::ExprManager::resumeGC().
unsigned long CVC3::ExprManagerNotifyObj::getMemory | ( | int | verbosity | ) | [inline, virtual, inherited] |
bool CVC3::ExprManager::EqEV::operator() | ( | const ExprValue * | ev1, | |
const ExprValue * | ev2 | |||
) | const [inline, inherited] |
Definition at line 537 of file expr_manager.h.