diff options
author | Morgan Deters <mdeters@gmail.com> | 2010-10-20 04:09:50 +0000 |
---|---|---|
committer | Morgan Deters <mdeters@gmail.com> | 2010-10-20 04:09:50 +0000 |
commit | daad722774087de1cf35714868d3762b3ea7cb21 (patch) | |
tree | 60c088f7a81b956c86a2439a5ffb255e07181498 /src/util/result.h | |
parent | bfdb4be24bfa474e6036a993e5afac16e77b4d2a (diff) |
fix bug #220 (assertion fails if no query/check-sat); add bug220.smt2 and bug217.smt2 as regressions; fix to build system to only run regressions (not units) if you "make -C test regress", for example (this matches behavior elsewhere)
Diffstat (limited to 'src/util/result.h')
-rw-r--r-- | src/util/result.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/util/result.h b/src/util/result.h index 62ddc74d0..1e0729332 100644 --- a/src/util/result.h +++ b/src/util/result.h @@ -60,6 +60,7 @@ public: INCOMPLETE, TIMEOUT, MEMOUT, + NO_STATUS, OTHER, UNKNOWN_REASON }; @@ -132,16 +133,16 @@ public: return d_unknownExplanation; } - bool operator==(const Result& r) const; - inline bool operator!=(const Result& r) const; - Result asSatisfiabilityResult() const; - Result asValidityResult() const; + bool operator==(const Result& r) const throw(); + inline bool operator!=(const Result& r) const throw(); + Result asSatisfiabilityResult() const throw(); + Result asValidityResult() const throw(); std::string toString() const; };/* class Result */ -inline bool Result::operator!=(const Result& r) const { +inline bool Result::operator!=(const Result& r) const throw() { return !(*this == r); } |