diff options
Diffstat (limited to 'src/expr/command.cpp')
-rw-r--r-- | src/expr/command.cpp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/expr/command.cpp b/src/expr/command.cpp index d300b27de..f416f84bb 100644 --- a/src/expr/command.cpp +++ b/src/expr/command.cpp @@ -279,6 +279,28 @@ void DefineNamedFunctionCommand::toStream(std::ostream& out) const { out << " )"; } +/* class Simplify */ + +SimplifyCommand::SimplifyCommand(Expr term) : + d_term(term) { +} + +void SimplifyCommand::invoke(SmtEngine* smtEngine) { + d_result = smtEngine->simplify(d_term); +} + +Expr SimplifyCommand::getResult() const { + return d_result; +} + +void SimplifyCommand::printResult(std::ostream& out) const { + out << d_result << endl; +} + +void SimplifyCommand::toStream(std::ostream& out) const { + out << "Simplify( << " << d_term << " >> )"; +} + /* class GetValueCommand */ GetValueCommand::GetValueCommand(Expr term) : |