diff options
author | Morgan Deters <mdeters@gmail.com> | 2010-10-09 04:24:15 +0000 |
---|---|---|
committer | Morgan Deters <mdeters@gmail.com> | 2010-10-09 04:24:15 +0000 |
commit | 97668b64994c5749a5a75822136de49841d2c15d (patch) | |
tree | 23dd1852741a847f6228cc063b0a5ad7ec3c2af3 /src/util/result.h | |
parent | e63abd23b45a078a42cafb277a4817abb4d044a1 (diff) |
Model generation for arith, boolean, and uf theories via
(get-value ...) SMT-LIBv2 command. As per SMT-LIBv2 spec,
you must pass --interactive --produce-models on the command
line (although they don't currently make us do any extra
work). Closes bug #213.
Diffstat (limited to 'src/util/result.h')
-rw-r--r-- | src/util/result.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/util/result.h b/src/util/result.h index ccc36973d..f1f6ae1c2 100644 --- a/src/util/result.h +++ b/src/util/result.h @@ -86,6 +86,21 @@ public: } enum UnknownExplanation whyUnknown(); + inline bool operator==(Result r) { + if(d_which != r.d_which) { + return false; + } + if(d_which == TYPE_SAT) { + return d_sat == r.d_sat; + } + if(d_which == TYPE_VALIDITY) { + return d_validity == r.d_validity; + } + return false; + } + inline bool operator!=(Result r) { + return !(*this == r); + } inline Result asSatisfiabilityResult() const; inline Result asValidityResult() const; |