diff options
author | Morgan Deters <mdeters@gmail.com> | 2011-10-04 01:06:41 +0000 |
---|---|---|
committer | Morgan Deters <mdeters@gmail.com> | 2011-10-04 01:06:41 +0000 |
commit | 09f28a6a107e2599c2f53d1dd8d201d8c18e625f (patch) | |
tree | 70dad125085528f9f9ad1b802dae13d7f164520f /src/compat | |
parent | d806d10b7050040b52566216314d9ed0645a56f8 (diff) |
mimicking Chris's recent contribution to QueryResult in CVC3 in the compatibility layer
Diffstat (limited to 'src/compat')
-rw-r--r-- | src/compat/cvc3_compat.cpp | 6 | ||||
-rw-r--r-- | src/compat/cvc3_compat.h | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/compat/cvc3_compat.cpp b/src/compat/cvc3_compat.cpp index c8e9106a7..6db6b440e 100644 --- a/src/compat/cvc3_compat.cpp +++ b/src/compat/cvc3_compat.cpp @@ -67,6 +67,12 @@ std::ostream& operator<<(std::ostream& out, QueryResult qr) { return out; } +std::string QueryResultToString(QueryResult qr) { + stringstream sstr; + sstr << qr; + return sstr.str(); +} + std::ostream& operator<<(std::ostream& out, FormulaValue fv) { switch(fv) { case TRUE_VAL: out << "TRUE_VAL"; break; diff --git a/src/compat/cvc3_compat.h b/src/compat/cvc3_compat.h index 2798c5b3c..b4c9cba3e 100644 --- a/src/compat/cvc3_compat.h +++ b/src/compat/cvc3_compat.h @@ -428,6 +428,7 @@ typedef enum QueryResult { } QueryResult; std::ostream& operator<<(std::ostream& out, QueryResult qr); +std::string QueryResultToString(QueryResult query_result); /*****************************************************************************/ /* |