diff options
author | Dejan Jovanović <dejan.jovanovic@gmail.com> | 2012-09-24 20:55:58 +0000 |
---|---|---|
committer | Dejan Jovanović <dejan.jovanovic@gmail.com> | 2012-09-24 20:55:58 +0000 |
commit | 86df00c36c6cbabac53001082219c3fc8c0fa297 (patch) | |
tree | be6865d50b8be133bc7d914fb80b531295021da4 /src/smt | |
parent | 1f48835b7252757bb778a93bdac2d62e1dea59bc (diff) |
some api changes
Diffstat (limited to 'src/smt')
-rw-r--r-- | src/smt/smt_engine.cpp | 2 | ||||
-rw-r--r-- | src/smt/smt_engine.h | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/src/smt/smt_engine.cpp b/src/smt/smt_engine.cpp index 6e8cc9b5d..cedd866f9 100644 --- a/src/smt/smt_engine.cpp +++ b/src/smt/smt_engine.cpp @@ -1888,7 +1888,7 @@ Expr SmtEngine::getValue(const Expr& e) "Cannot get value unless immediately preceded by SAT/INVALID or UNKNOWN response."; throw ModalException(msg); } - if(type.isKind() || type.isSortConstructor()) { + if(type.isSort() || type.isSortConstructor()) { const char* msg = "Cannot get value of a sort."; throw ModalException(msg); diff --git a/src/smt/smt_engine.h b/src/smt/smt_engine.h index cbb97f9f7..0214cddd3 100644 --- a/src/smt/smt_engine.h +++ b/src/smt/smt_engine.h @@ -559,7 +559,10 @@ public: */ SExpr getStatistic(std::string name) const throw(); - Result getStatusOfLastCommand() const { + /** + * Returns the most recent result of checkSat/query or (set-info :status). + */ + Result getStatusOfLastCommand() const throw() { return d_status; } |