cvc4-1.4
|
#include <command.h>
Public Types | |
typedef CommandPrintSuccess | printsuccess |
Public Member Functions | |
DeclarationDefinitionCommand (const std::string &id) throw () | |
~DeclarationDefinitionCommand () throw () | |
virtual void | invoke (SmtEngine *smtEngine) throw () =0 |
std::string | getSymbol () const throw () |
virtual void | invoke (SmtEngine *smtEngine, std::ostream &out) throw () |
virtual void | toStream (std::ostream &out, int toDepth=-1, bool types=false, size_t dag=1, OutputLanguage language=language::output::LANG_AUTO) const throw () |
std::string | toString () const throw () |
virtual std::string | getCommandName () const throw () =0 |
void | setMuted (bool muted) throw () |
If false, instruct this Command not to print a success message. | |
bool | isMuted () throw () |
Determine whether this Command will print a success message. | |
bool | ok () const throw () |
Either the command hasn't run yet, or it completed successfully (CommandSuccess, not CommandUnsupported or CommandFailure). | |
bool | fail () const throw () |
The command completed in a failure state (CommandFailure, not CommandSuccess or CommandUnsupported). | |
const CommandStatus * | getCommandStatus () const throw () |
Get the command status (it's NULL if we haven't run yet). | |
virtual void | printResult (std::ostream &out, uint32_t verbosity=2) const throw () |
virtual Command * | exportTo (ExprManager *exprManager, ExprManagerMapCollection &variableMap)=0 |
Maps this Command into one for a different ExprManager, using variableMap for the translation and extending it with any new mappings. | |
virtual Command * | clone () const =0 |
Clone this Command (make a shallow copy). | |
Protected Attributes | |
std::string | d_symbol |
const CommandStatus * | d_commandStatus |
This field contains a command status if the command has been invoked, or NULL if it has not. | |
bool | d_muted |
True if this command is "muted"—i.e., don't print "success" on successful execution. | |
|
inherited |
CVC4::DeclarationDefinitionCommand::DeclarationDefinitionCommand | ( | const std::string & | id | ) | ||
throw | ( | ) |
|
inline |
|
pure virtualinherited |
Clone this Command (make a shallow copy).
Implemented in CVC4::AssertCommand, CVC4::CheckSatCommand, CVC4::CommandSequence, CVC4::CommentCommand, CVC4::DatatypeDeclarationCommand, CVC4::DeclareFunctionCommand, CVC4::DeclareTypeCommand, CVC4::DefineFunctionCommand, CVC4::DefineNamedFunctionCommand, CVC4::DefineTypeCommand, CVC4::EchoCommand, CVC4::EmptyCommand, CVC4::ExpandDefinitionsCommand, CVC4::GetAssertionsCommand, CVC4::GetAssignmentCommand, CVC4::GetInfoCommand, CVC4::GetInstantiationsCommand, CVC4::GetModelCommand, CVC4::GetOptionCommand, CVC4::GetProofCommand, CVC4::GetUnsatCoreCommand, CVC4::GetValueCommand, CVC4::PopCommand, CVC4::PropagateRuleCommand, CVC4::PushCommand, CVC4::QueryCommand, CVC4::QuitCommand, CVC4::RewriteRuleCommand, CVC4::SetBenchmarkLogicCommand, CVC4::SetBenchmarkStatusCommand, CVC4::SetInfoCommand, CVC4::SetOptionCommand, CVC4::SetUserAttributeCommand, and CVC4::SimplifyCommand.
|
pure virtualinherited |
Maps this Command into one for a different ExprManager, using variableMap for the translation and extending it with any new mappings.
Implemented in CVC4::AssertCommand, CVC4::CheckSatCommand, CVC4::CommandSequence, CVC4::CommentCommand, CVC4::DatatypeDeclarationCommand, CVC4::DeclareFunctionCommand, CVC4::DeclareTypeCommand, CVC4::DefineFunctionCommand, CVC4::DefineNamedFunctionCommand, CVC4::DefineTypeCommand, CVC4::EchoCommand, CVC4::EmptyCommand, CVC4::ExpandDefinitionsCommand, CVC4::GetAssertionsCommand, CVC4::GetAssignmentCommand, CVC4::GetInfoCommand, CVC4::GetInstantiationsCommand, CVC4::GetModelCommand, CVC4::GetOptionCommand, CVC4::GetProofCommand, CVC4::GetUnsatCoreCommand, CVC4::GetValueCommand, CVC4::PopCommand, CVC4::PropagateRuleCommand, CVC4::PushCommand, CVC4::QueryCommand, CVC4::QuitCommand, CVC4::RewriteRuleCommand, CVC4::SetBenchmarkLogicCommand, CVC4::SetBenchmarkStatusCommand, CVC4::SetInfoCommand, CVC4::SetOptionCommand, CVC4::SetUserAttributeCommand, and CVC4::SimplifyCommand.
|
inherited |
The command completed in a failure state (CommandFailure, not CommandSuccess or CommandUnsupported).
|
pure virtualinherited |
Implemented in CVC4::AssertCommand, CVC4::CheckSatCommand, CVC4::CommandSequence, CVC4::CommentCommand, CVC4::DatatypeDeclarationCommand, CVC4::DeclareFunctionCommand, CVC4::DeclareTypeCommand, CVC4::DefineFunctionCommand, CVC4::DefineTypeCommand, CVC4::EchoCommand, CVC4::EmptyCommand, CVC4::ExpandDefinitionsCommand, CVC4::GetAssertionsCommand, CVC4::GetAssignmentCommand, CVC4::GetInfoCommand, CVC4::GetInstantiationsCommand, CVC4::GetModelCommand, CVC4::GetOptionCommand, CVC4::GetProofCommand, CVC4::GetUnsatCoreCommand, CVC4::GetValueCommand, CVC4::PopCommand, CVC4::PropagateRuleCommand, CVC4::PushCommand, CVC4::QueryCommand, CVC4::QuitCommand, CVC4::RewriteRuleCommand, CVC4::SetBenchmarkLogicCommand, CVC4::SetBenchmarkStatusCommand, CVC4::SetInfoCommand, CVC4::SetOptionCommand, CVC4::SetUserAttributeCommand, and CVC4::SimplifyCommand.
|
inlineinherited |
std::string CVC4::DeclarationDefinitionCommand::getSymbol | ( | ) | const | |||
throw | ( | ) |
|
virtualinherited |
Reimplemented in CVC4::CommandSequence, and CVC4::EchoCommand.
|
pure virtual |
Implements CVC4::Command.
Implemented in CVC4::DeclareFunctionCommand, CVC4::DeclareTypeCommand, CVC4::DefineFunctionCommand, CVC4::DefineNamedFunctionCommand, and CVC4::DefineTypeCommand.
|
inlineinherited |
|
inherited |
Either the command hasn't run yet, or it completed successfully (CommandSuccess, not CommandUnsupported or CommandFailure).
|
virtualinherited |
Reimplemented in CVC4::CheckSatCommand, CVC4::ExpandDefinitionsCommand, CVC4::GetAssertionsCommand, CVC4::GetAssignmentCommand, CVC4::GetInfoCommand, CVC4::GetInstantiationsCommand, CVC4::GetModelCommand, CVC4::GetOptionCommand, CVC4::GetProofCommand, CVC4::GetUnsatCoreCommand, CVC4::GetValueCommand, CVC4::QueryCommand, and CVC4::SimplifyCommand.
|
inlineinherited |
|
virtualinherited |
|
inherited |
|
protectedinherited |
This field contains a command status if the command has been invoked, or NULL if it has not.
This field is either a dynamically-allocated pointer, or it's a pointer to the singleton CommandSuccess instance. Doing so is somewhat asymmetric, but it avoids the need to dynamically allocate memory in the common case of a successful command.
|
protectedinherited |
|
protected |