diff options
Diffstat (limited to 'src/expr/command.h')
-rw-r--r-- | src/expr/command.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/expr/command.h b/src/expr/command.h index bb295a662..3be957feb 100644 --- a/src/expr/command.h +++ b/src/expr/command.h @@ -93,6 +93,7 @@ public: class CVC4_PUBLIC DeclarationCommand : public EmptyCommand { public: + DeclarationCommand(const std::string& id, const Type& t); DeclarationCommand(const std::vector<std::string>& ids, const Type& t); void toStream(std::ostream& out) const; protected: @@ -259,6 +260,12 @@ inline void CommandSequence::addCommand(Command* cmd) { /* class DeclarationCommand */ +inline DeclarationCommand::DeclarationCommand(const std::string& id, const Type& t) : + d_type(t) +{ + d_declaredSymbols.push_back(id); +} + inline DeclarationCommand::DeclarationCommand(const std::vector<std::string>& ids, const Type& t) : d_declaredSymbols(ids), d_type(t) |