summaryrefslogtreecommitdiff
path: root/src/api/cpp/cvc5.cpp
diff options
context:
space:
mode:
authorGereon Kremer <gkremer@stanford.edu>2021-04-16 12:45:10 +0200
committerGitHub <noreply@github.com>2021-04-16 10:45:10 +0000
commit7cae3947227391313d93fa1e2ef7bfb4e9e3986d (patch)
tree81860022a8288282678ebcfcf4976e8f20388ffc /src/api/cpp/cvc5.cpp
parent03c2724cef26fa20862634e25e3adc476d049db4 (diff)
Replace SExpr class by simpler conversion routines (#6363)
This PR finally removes the SExpr class. SMT-LIB compatible output is retained by using new on-the-fly conversion to s-expression strings. This finally allows us to remove includes to integer and rational from smt_engine.h. In detail: - a new set of toSExpr() methods is implemented that converts certain types to s-expression strings (without an intermediate class representing s-expressions) - SmtEngine::getInfo() returns a string instead of SExpr and uses the new toSExpr methods - SmtEngine::getStatistic() is removed - SExpr class is removed - d_commandVerbosity uses int instead of Integer
Diffstat (limited to 'src/api/cpp/cvc5.cpp')
-rw-r--r--src/api/cpp/cvc5.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/cpp/cvc5.cpp b/src/api/cpp/cvc5.cpp
index 2b4cc4795..a32ff4caa 100644
--- a/src/api/cpp/cvc5.cpp
+++ b/src/api/cpp/cvc5.cpp
@@ -6418,7 +6418,7 @@ std::string Solver::getInfo(const std::string& flag) const
CVC5_API_RECOVERABLE_CHECK(d_smtEngine->isValidGetInfoFlag(flag))
<< "Unrecognized flag for getInfo.";
//////// all checks before this line
- return d_smtEngine->getInfo(flag).toString();
+ return d_smtEngine->getInfo(flag);
////////
CVC5_API_TRY_CATCH_END;
}
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback