diff options
Diffstat (limited to 'src/expr/command.cpp')
-rw-r--r-- | src/expr/command.cpp | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/src/expr/command.cpp b/src/expr/command.cpp index 4d9ca9f30..c976588d4 100644 --- a/src/expr/command.cpp +++ b/src/expr/command.cpp @@ -362,11 +362,31 @@ std::string QueryCommand::getCommandName() const throw() { return "query"; } -/* class QuitCommand */ +/* class ResetCommand */ + +void ResetCommand::invoke(SmtEngine* smtEngine) throw() { + try { + smtEngine->reset(); + d_commandStatus = CommandSuccess::instance(); + } catch(exception& e) { + d_commandStatus = new CommandFailure(e.what()); + } +} + +Command* ResetCommand::exportTo(ExprManager* exprManager, ExprManagerMapCollection& variableMap) { + return new ResetCommand(); +} -QuitCommand::QuitCommand() throw() { +Command* ResetCommand::clone() const { + return new ResetCommand(); } +std::string ResetCommand::getCommandName() const throw() { + return "reset"; +} + +/* class QuitCommand */ + void QuitCommand::invoke(SmtEngine* smtEngine) throw() { Dump("benchmark") << *this; d_commandStatus = CommandSuccess::instance(); |