diff options
author | Morgan Deters <mdeters@gmail.com> | 2012-09-04 22:22:41 +0000 |
---|---|---|
committer | Morgan Deters <mdeters@gmail.com> | 2012-09-04 22:22:41 +0000 |
commit | ce6c366450cc9cb30c254f26089696c1c7c913c0 (patch) | |
tree | a7ea29ec2f222c0e7ae4d9559a486905be10a923 /src/expr/command.h | |
parent | 5d9670acc3c8eacdebdbb07302a8e35f837d0e52 (diff) |
Accepted some patches from the Multicore Programming Group at Imperial College London (via Peter Collingbourne):
cvc4-0001-Look-for-cxxtestgen-as-well-as-cxxtestgen.pl-and-cxx.patch
* better checking for cxxtest
cvc4-0002-Do-not-read-an-additional-command-after-failure.patch
* more correct failure behavior for interactive tools
cvc4-0003-Only-exit-when-encountering-a-CommandFailure.patch
* don't consider "unsupported" as a failure (accepted with modifications)
cvc4-0004-Produce-SMT-LIB-v2-conformant-output-for-get-info.patch
* better get-info responses (accepted with modifications)
These patches will help the group build Boogie support for CVC4.
(this commit was certified error- and warning-free by the test-and-commit script.)
Diffstat (limited to 'src/expr/command.h')
-rw-r--r-- | src/expr/command.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/expr/command.h b/src/expr/command.h index 4657755e7..0f517e7f2 100644 --- a/src/expr/command.h +++ b/src/expr/command.h @@ -211,9 +211,18 @@ public: std::string toString() const throw(); - /** Either the command hasn't run yet, or it completed successfully. */ + /** + * Either the command hasn't run yet, or it completed successfully + * (CommandSuccess, not CommandUnsupported or CommandFailure). + */ bool ok() const throw(); + /** + * The command completed in a failure state (CommandFailure, not + * CommandSuccess or CommandUnsupported). + */ + bool fail() const throw(); + /** Get the command status (it's NULL if we haven't run yet). */ const CommandStatus* getCommandStatus() const throw() { return d_commandStatus; } |