#include <vc_cmd.h>
Collaboration diagram for CVC3::VCCmd:
Definition at line 39 of file vc_cmd.h.
typedef std::hash_map<const char*, Context*> CVC3::VCCmd::CtxtMap [private] |
VCCmd::VCCmd | ( | ValidityChecker * | vc, | |
Parser * | parser | |||
) |
Definition at line 32 of file vc_cmd.cpp.
References d_map, d_name_of_cur_ctxt, d_vc, and CVC3::ValidityChecker::getCurrentContext().
VCCmd::~VCCmd | ( | ) |
Definition at line 38 of file vc_cmd.cpp.
bool VCCmd::evaluateCommand | ( | const Expr & | e | ) | [private] |
Take a parsed Expr and evaluate it.
Definition at line 151 of file vc_cmd.cpp.
References CVC3::ABORT, CVC3::ASSERT, CVC3::ValidityChecker::assertFormula(), CVC3::ASSERTIONS, CVC3::ASSUMPTIONS, CVC3::ExprMap< Data >::begin(), CVC3::CHECK_TYPE, CVC3::ValidityChecker::checkContinue(), CVC3::CHECKSAT, CVC3::ValidityChecker::checkUnsat(), CVC3::CLFLAG_BOOL, CVC3::CLFLAG_INT, CVC3::CLFLAG_STRING, CVC3::CONST, CVC3::CONTINUE, CVC3::COUNTEREXAMPLE, CVC3::COUNTERMODEL, CVC3::CLFlags::countFlags(), CVC3::ValidityChecker::createOp(), CVC3::ValidityChecker::createType(), d_vc, CVC3::DBG, DebugAssert, CVC3::debugger, CVC3::DEFUN, CVC3::DUMP_ASSUMPTIONS, CVC3::DUMP_CLOSURE, CVC3::DUMP_CLOSURE_PROOF, CVC3::DUMP_PROOF, CVC3::DUMP_SIG, CVC3::DUMP_TCC, CVC3::DUMP_TCC_ASSUMPTIONS, CVC3::DUMP_TCC_PROOF, CVC3::ECHO, CVC3::ExprMap< Data >::end(), std::endl(), FatalAssert, findAxioms(), CVC3::GET_CHILD, CVC3::GET_TYPE, CVC3::ValidityChecker::getAssumptions(), CVC3::ValidityChecker::getAssumptionsTCC(), CVC3::ValidityChecker::getAssumptionsUsed(), CVC3::ValidityChecker::getClosure(), CVC3::ValidityChecker::getConcreteModel(), CVC3::ValidityChecker::getCounterExample(), CVC3::ValidityChecker::getEM(), CVC3::ValidityChecker::getFlags(), CVC3::ExprManager::getInputLang(), CVC3::ExprManager::getKind(), CVC3::ValidityChecker::getProof(), CVC3::ValidityChecker::getProofClosure(), CVC3::ValidityChecker::getProofTCC(), CVC3::ValidityChecker::getTCC(), CVC3::CLFlag::getType(), CVC3::HELP, CVC3::ID, IF_DEBUG, CVC3::INCLUDE, CVC3::ValidityChecker::incomplete(), CVC3::INVALID, CVC3::Proof::isNull(), CVC3::Expr::isNull(), CVC3::isRational(), CVC3::ValidityChecker::listExpr(), CVC3::ValidityChecker::loadFile(), CVC3::CLFlag::modified(), CVC3::NULL_KIND, CVC3::OPTION, CVC3::ValidityChecker::parseExpr(), CVC3::ValidityChecker::pop(), CVC3::POP, CVC3::POP_SCOPE, CVC3::ValidityChecker::popScope(), CVC3::ValidityChecker::popto(), CVC3::POPTO, CVC3::POPTO_SCOPE, CVC3::ValidityChecker::poptoScope(), CVC3::PRESENTATION_LANG, CVC3::PRINT, CVC3::ValidityChecker::printExpr(), CVC3::ValidityChecker::push(), CVC3::PUSH, CVC3::PUSH_SCOPE, CVC3::ValidityChecker::pushScope(), CVC3::ValidityChecker::query(), CVC3::QUERY, CVC3::RATIONAL_EXPR, CVC3::RAW_LIST, reportResult(), CVC3::ValidityChecker::reprocessFlags(), CVC3::ValidityChecker::restart(), CVC3::RESTART, CVC3::ValidityChecker::scopeLevel(), CVC3::SEQ, CVC3::CLFlags::setFlag(), CVC3::ValidityChecker::simplify(), skolemizeAx(), CVC3::ValidityChecker::stackLevel(), CVC3::SUBSTITUTE, CVC3::Expr::toString(), CVC3::TRACE, TRACE_MSG, CVC3::Debug::traceFlag(), CVC3::TRANSFORM, CVC3::ValidityChecker::trueExpr(), CVC3::TYPE, CVC3::TYPEDEF, CVC3::UNKNOWN, CVC3::UNTRACE, CVC3::VALID, CVC3::ValidityChecker::varExpr(), and CVC3::WHERE.
Referenced by evaluateNext().
bool VCCmd::evaluateNext | ( | ) | [private] |
Definition at line 72 of file vc_cmd.cpp.
References CVC3::Debug::counter(), d_parser, CVC3::debugger, CVC3::Parser::done(), std::endl(), evaluateCommand(), IF_DEBUG, CVC3::Parser::next(), CVC3::TRACE, and TRACE_MSG.
Referenced by processCommands().
void VCCmd::findAxioms | ( | const Expr & | e, | |
ExprMap< bool > & | skolemAxioms, | |||
ExprMap< bool > & | visited | |||
) | [private] |
Definition at line 40 of file vc_cmd.cpp.
References CVC3::Expr::arity(), CVC3::Expr::begin(), CVC3::ExprMap< Data >::count(), CVC3::Expr::end(), CVC3::Expr::getBody(), CVC3::Expr::getExistential(), CVC3::ExprMap< Data >::insert(), CVC3::Expr::isClosure(), and CVC3::Expr::isSkolem().
Referenced by evaluateCommand().
Definition at line 60 of file vc_cmd.cpp.
References CVC3::Expr::getBody(), CVC3::Expr::getVars(), CVC3::Expr::iffExpr(), CVC3::Expr::skolemExpr(), and CVC3::Expr::substExpr().
Referenced by evaluateCommand().
void VCCmd::reportResult | ( | QueryResult | qres, | |
bool | checkingValidity = true | |||
) | [private] |
Definition at line 97 of file vc_cmd.cpp.
References CVC3::ABORT, d_vc, DebugAssert, std::endl(), FatalAssert, CVC3::ValidityChecker::getEM(), CVC3::ValidityChecker::getFlags(), CVC3::ExprManager::getOutputLang(), IF_DEBUG, CVC3::ValidityChecker::incomplete(), CVC3::INVALID, CVC3::SMTLIB_LANG, CVC3::UNKNOWN, and CVC3::VALID.
Referenced by evaluateCommand().
void VCCmd::processCommands | ( | ) |
Definition at line 729 of file vc_cmd.cpp.
References d_parser, std::endl(), evaluateNext(), and CVC3::Parser::printLocation().
Referenced by CVC3::VCL::loadFile().
ValidityChecker* CVC3::VCCmd::d_vc [private] |
Definition at line 40 of file vc_cmd.h.
Referenced by evaluateCommand(), reportResult(), and VCCmd().
Parser* CVC3::VCCmd::d_parser [private] |
std::string CVC3::VCCmd::d_name_of_cur_ctxt [private] |
CtxtMap CVC3::VCCmd::d_map [private] |