diff options
author | Liana Hadarean <lianah@cs.nyu.edu> | 2014-11-17 15:26:42 -0500 |
---|---|---|
committer | Morgan Deters <mdeters@cs.nyu.edu> | 2014-11-17 15:26:42 -0500 |
commit | 3ba7ed6b1b09739385ae2ffb77a5c7ccd18b40a5 (patch) | |
tree | 845ae47600ffff9c68fa654c0f78d3474e406beb /src/expr/command.h | |
parent | d8da3b13bc9df7750723cf3da38edc8cb6f67d3d (diff) |
Resource-limiting work.
Signed-off-by: Morgan Deters <mdeters@cs.nyu.edu>
Diffstat (limited to 'src/expr/command.h')
-rw-r--r-- | src/expr/command.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/expr/command.h b/src/expr/command.h index c4f2fc1bc..cfa00bff4 100644 --- a/src/expr/command.h +++ b/src/expr/command.h @@ -168,6 +168,13 @@ public: CommandStatus& clone() const { return const_cast<CommandSuccess&>(*this); } };/* class CommandSuccess */ +class CVC4_PUBLIC CommandInterrupted : public CommandStatus { + static const CommandInterrupted* s_instance; +public: + static const CommandInterrupted* instance() throw() { return s_instance; } + CommandStatus& clone() const { return const_cast<CommandInterrupted&>(*this); } +};/* class CommandInterrupted */ + class CVC4_PUBLIC CommandUnsupported : public CommandStatus { public: CommandStatus& clone() const { return *new CommandUnsupported(*this); } @@ -240,6 +247,11 @@ public: */ bool fail() const throw(); + /** + * The command was ran but was interrupted due to resource limiting. + */ + bool interrupted() const throw(); + /** Get the command status (it's NULL if we haven't run yet). */ const CommandStatus* getCommandStatus() const throw() { return d_commandStatus; } |