CVC3
|
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 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, FALSE_EXPR, CVC3::ContextManager::getCurrentContext(), IF_DEBUG, CVC3::ExprManager::newLeafExpr(), registerKinds(), CVC3::Expr::setType(), TRUE_EXPR, and CVC3::Type::typeBool().
Referenced by CVC3::ExprManager::getMemory().
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, CVC3::ExprValue::getMMIndex(), IF_DEBUG, CVC3::ExprManager::isActive(), CVC3::Expr::isNull(), Hash::hash_set< _Key, _HashFcn, _EqualKey >::size(), TRACE, and TRACE_MSG.
Referenced by 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::newExprValue(), 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, CVC3::ExprValue::getMMIndex(), 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.
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, CVC3::ExprManager::d_postponeGC, and CVC3::ExprValue::getMMIndex().
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::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] |
Definition at line 269 of file expr_manager.h.
Referenced by CVC3::Expr::hasLastIndex().
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] |
BOOLEAN Expr.
Definition at line 276 of file expr_manager.h.
Referenced by CVC3::TheoryCore::parseExprOp(), and CVC3::Type::sizeFinite().
const Expr& CVC3::ExprManager::falseExpr | ( | ) | [inline, inherited] |
FALSE Expr.
Definition at line 278 of file expr_manager.h.
Referenced by CVC3::TheorySimulate::computeTCC(), CVC3::SearchEngineTheoremProducer::confAndrAF(), CVC3::SearchEngineTheoremProducer::confAndrAT(), CVC3::SearchEngineTheoremProducer::confIffr(), CVC3::SearchEngineTheoremProducer::confIterIfThen(), CVC3::SearchEngineTheoremProducer::confIterThenElse(), CVC3::SearchEngineTheoremProducer::conflictRule(), CVC3::CommonTheoremProducer::contradictionRule(), LFSCConvert::cvc3_to_lfsc(), CVC3::Theory::falseExpr(), CVC3::CommonTheoremProducer::iffNotFalse(), CVC3::CommonTheoremProducer::notToIff(), CVC3::TheoryCore::parseExprOp(), CVC3::TheoryCore::print(), LFSCObj::queryAtomic(), CVC3::CommonTheoremProducer::rewriteAnd(), CVC3::CommonTheoremProducer::rewriteIff(), CVC3::CommonTheoremProducer::rewriteNotTrue(), CVC3::CommonTheoremProducer::rewriteOr(), CVC3::ExprTransform::simplifyWithCare(), and LFSCObj::what_is_proven().
const Expr& CVC3::ExprManager::trueExpr | ( | ) | [inline, inherited] |
TRUE Expr.
Definition at line 280 of file expr_manager.h.
Referenced by CVC3::TheoryCore::computeModelBasic(), CVC3::TheorySimulate::computeTCC(), CVC3::TheoryCore::computeTypePred(), CVC3::TheoryBitvector::computeTypePred(), CVC3::TheoryArithOld::computeTypePred(), CVC3::TheoryArithNew::computeTypePred(), CVC3::TheoryArith3::computeTypePred(), CVC3::Theory::computeTypePred(), LFSCConvert::cvc3_to_lfsc(), LFSCObj::getY(), CVC3::CommonTheoremProducer::iffTrue(), CVC3::TheoryCore::parseExprOp(), CVC3::QuantTheoremProducer::partialUniversalInst(), CVC3::TheoryCore::print(), LFSCObj::queryAtomic(), CVC3::CommonTheoremProducer::rewriteAnd(), CVC3::CoreTheoremProducer::rewriteDistinct(), CVC3::CommonTheoremProducer::rewriteNotFalse(), CVC3::CommonTheoremProducer::rewriteOr(), CVC3::CommonTheoremProducer::rewriteReflexivity(), CVC3::ExprTransform::simplifyWithCare(), CVC3::Theory::trueExpr(), CVC3::CommonTheoremProducer::trueTheorem(), CVC3::QuantTheoremProducer::universalInst(), and LFSCObj::what_is_proven().
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::begin(), CVC3::Expr::end(), and CVC3::Expr::getKids().
const Expr& CVC3::ExprManager::getNullExpr | ( | ) | [inline, inherited] |
References to empty objects (used in ExprValue)
Definition at line 284 of file expr_manager.h.
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 455 of file expr_manager.h.
References APPLY, DebugAssert, CVC3::Expr::getEM(), CVC3::Op::getExpr(), CVC3::Op::getKind(), and CVC3::ExprManager::newExpr().
Referenced by CVC3::ExprStream::addLetHeader(), CVC3::SearchEngineTheoremProducer::eliminateSkolemAxioms(), CVC3::ExprManager::ExprManager(), CVC3::TheoryCore::parseExprOp(), CVC3::TheoryArithOld::parseExprOp(), CVC3::TheoryArithNew::parseExprOp(), CVC3::TheoryArith3::parseExprOp(), CVC3::CommonTheoremProducer::substitutivityRule(), CVC3::TheoremProducer::TheoremProducer(), and CVC3::Type::typeBool().
Expr CVC3::ExprManager::newStringExpr | ( | const std::string & | s | ) | [inline, inherited] |
Definition at line 469 of file expr_manager.h.
References CVC3::ExprManager::newExpr().
Referenced by CVC3::Translator::finish(), LFSCObj::initialize(), and CVC3::TheoryQuant::TheoryQuant().
Expr CVC3::ExprManager::newRatExpr | ( | const Rational & | r | ) | [inline, inherited] |
Definition at line 472 of file expr_manager.h.
References CVC3::ExprManager::newExpr().
Referenced by CVC3::CommonTheoremProducer::andElim(), LFSCConvert::cvc3_to_lfsc(), CVC3::CompleteInstPreProcessor::inst(), CVC3::CompleteInstPreProcessor::minusOne(), CVC3::CompleteInstPreProcessor::plusOne(), CVC3::TheoryBitvector::rat(), CVC3::TheoryArith::rat(), CVC3::BitvectorTheoremProducer::rat(), CVC3::ArithTheoremProducerOld::rat(), CVC3::ArithTheoremProducer3::rat(), CVC3::ArithTheoremProducer::rat(), and LFSCObj::what_is_proven().
Expr CVC3::ExprManager::newSkolemExpr | ( | const Expr & | e, |
int | i | ||
) | [inline, inherited] |
Definition at line 475 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 479 of file expr_manager.h.
References CVC3::ExprManager::newExpr().
Referenced by CVC3::ExprStream::addLetHeader(), CVC3::TheoryQuant::checkSat(), LFSCObj::initialize(), 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 482 of file expr_manager.h.
References CVC3::ExprManager::newExpr().
Referenced by CVC3::TheoryDatatype::dataType(), CVC3::Theory::lookupFunction(), CVC3::Theory::newFunction(), CVC3::Theory::newVar(), and CVC3::Translator::printArrayExpr().
Expr CVC3::ExprManager::newBoundVarExpr | ( | const std::string & | name, |
const std::string & | uid | ||
) | [inline, inherited] |
Definition at line 485 of file expr_manager.h.
References CVC3::ExprManager::newExpr().
Referenced by CVC3::ArrayTheoremProducer::arrayNotEq(), CVC3::BitvectorTheoremProducer::bvUDivTheorem(), CVC3::TheoryUF::computeModel(), CVC3::SearchEngineTheoremProducer::findInLocalCache(), CVC3::ExprManager::newBoundVarExpr(), CVC3::TheoremProducer::newLabel(), CVC3::Theory::newSubtypeExpr(), CVC3::QuantTheoremProducer::normalizeQuant(), CVC3::BitvectorTheoremProducer::processExtract(), CVC3::BitvectorTheoremProducer::solveExtractOverlap(), CVC3::TheoryQuant::TheoryQuant(), and CVC3::CommonTheoremProducer::varIntroRule().
Expr CVC3::ExprManager::newBoundVarExpr | ( | const std::string & | name, |
const std::string & | uid, | ||
const Type & | type | ||
) | [inline, inherited] |
Definition at line 489 of file expr_manager.h.
References 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] |
Definition at line 500 of file expr_manager.h.
Expr CVC3::ExprManager::newClosureExpr | ( | int | kind, |
const Expr & | var, | ||
const Expr & | body | ||
) | [inline, inherited] |
Definition at line 507 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::TheoryDatatypeLazy::instantiate(), CVC3::TheoryDatatype::instantiate(), CVC3::CompleteInstPreProcessor::isMacro(), 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::BitvectorTheoremProducer::processExtract(), CVC3::CompleteInstPreProcessor::pullVarOut(), CVC3::QuantTheoremProducer::pullVarOut(), CVC3::CompleteInstPreProcessor::recInstMacros(), CVC3::CompleteInstPreProcessor::recRewriteNot(), CVC3::CompleteInstPreProcessor::recSkolemize(), 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 | ||
) | [inline, inherited] |
Definition at line 512 of file expr_manager.h.
References CVC3::ExprManager::newExpr().
Expr CVC3::ExprManager::newClosureExpr | ( | int | kind, |
const std::vector< Expr > & | vars, | ||
const Expr & | body, | ||
const Expr & | trigger | ||
) | [inline, inherited] |
Definition at line 531 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 > & | triggers | ||
) | [inline, inherited] |
Definition at line 517 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 > > & | triggers | ||
) | [inline, inherited] |
Definition at line 524 of file expr_manager.h.
References CVC3::ExprManager::newExpr(), and CVC3::Expr::setTriggers().
Expr CVC3::ExprManager::andExpr | ( | const std::vector< Expr > & | children | ) | [inline, inherited] |
Definition at line 312 of file expr_manager.h.
References AND.
Expr CVC3::ExprManager::orExpr | ( | const std::vector< Expr > & | children | ) | [inline, inherited] |
Definition at line 314 of file expr_manager.h.
References OR.
size_t CVC3::ExprManager::hash | ( | const Expr & | e | ) | const [inline, inherited] |
Hash function for a single Expr.
Definition at line 543 of file expr_manager.h.
ContextManager* CVC3::ExprManager::getCM | ( | ) | const [inline, inherited] |
Fetch our ContextManager.
Definition at line 322 of file expr_manager.h.
Context* CVC3::ExprManager::getCurrentContext | ( | ) | const [inline, inherited] |
Get the current context from our ContextManager.
Definition at line 324 of file expr_manager.h.
Referenced by CVC3::Expr::setEqNext(), CVC3::Expr::setFind(), CVC3::Expr::setRep(), and CVC3::Expr::setSig().
int CVC3::ExprManager::scopelevel | ( | ) | [inline, inherited] |
Get current scope level.
Definition at line 326 of file expr_manager.h.
void CVC3::ExprManager::setTM | ( | TheoremManager * | tm | ) | [inline, inherited] |
Set the TheoremManager.
Definition at line 329 of file expr_manager.h.
TheoremManager* CVC3::ExprManager::getTM | ( | ) | const [inline, inherited] |
Fetch the TheoremManager.
Definition at line 331 of file expr_manager.h.
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::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] |
Get printing depth.
Definition at line 348 of file expr_manager.h.
bool CVC3::ExprManager::withIndentation | ( | ) | const [inline, inherited] |
Whether to print with indentation.
Definition at line 350 of file expr_manager.h.
int CVC3::ExprManager::lineWidth | ( | ) | const [inline, inherited] |
Suggested line width for printing with indentation.
Definition at line 352 of file expr_manager.h.
int CVC3::ExprManager::indent | ( | ) | const [inline, inherited] |
Get initial indentation.
Definition at line 354 of file expr_manager.h.
Referenced by CVC3::ExprStream::ExprStream().
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.
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::dumpQueryResult(), CVC3::Translator::escapeSymbol(), CVC3::Translator::finish(), CVC3::Translator::fixConstName(), main(), CVC3::Translator::printArrayExpr(), CVC3::VCCmd::reportResult(), and CVC3::Translator::start().
bool CVC3::ExprManager::dagPrinting | ( | ) | const [inline, inherited] |
Whether to print Expr's as DAGs.
Definition at line 368 of file expr_manager.h.
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.
Referenced by CVC3::operator<<().
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, Hash::hash_set< _Key, _HashFcn, _EqualKey >::insert(), and CVC3::int2string().
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, DebugAssert, and CVC3::int2string().
Referenced by CVC3::BitvectorTheoremProducer::bitExtractBitwise(), CVC3::TheoryArithOld::computeType(), CVC3::TheoryArithNew::computeType(), CVC3::TheoryArith3::computeType(), CVC3::BitvectorTheoremProducer::extractBitwise(), CVC3::SearchEngineTheoremProducer::opCNFRule(), 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 NULL_KIND.
Referenced by CVC3::VCCmd::evaluateCommand(), CVC3::TheoryCore::parseExpr(), CVC3::TheoryUF::parseExprOp(), CVC3::TheorySimulate::parseExprOp(), CVC3::TheoryRecords::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, CVC3::ExprManager::ExprManager(), CVC3::MemoryTracker::getString(), and CVC3::MemoryTracker::print().
CVC3::ExprManagerNotifyObj::ExprManagerNotifyObj | ( | ExprManager * | em, |
Context * | cxt | ||
) | [inline, inherited] |
Constructor.
Definition at line 433 of file expr_manager.h.
Referenced by CVC3::ExprManagerNotifyObj::getMemory().
void ExprManagerNotifyObj::notifyPre | ( | void | ) | [virtual, inherited] |
Reimplemented from CVC3::ContextNotifyObj.
Definition at line 657 of file expr_manager.cpp.
void ExprManagerNotifyObj::notify | ( | void | ) | [virtual, inherited] |
Reimplemented from CVC3::ContextNotifyObj.
Definition at line 662 of file expr_manager.cpp.
unsigned long CVC3::ExprManagerNotifyObj::getMemory | ( | int | verbosity | ) | [inline, virtual, inherited] |
Reimplemented from CVC3::ContextNotifyObj.
Definition at line 438 of file expr_manager.h.
References CVC3::ExprManagerNotifyObj::ExprManagerNotifyObj().
bool CVC3::ExprManager::EqEV::operator() | ( | const ExprValue * | ev1, |
const ExprValue * | ev2 | ||
) | const [inline, inherited] |
Definition at line 538 of file expr_manager.h.