aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/formal/SMTLib2Interface.cpp
diff options
context:
space:
mode:
authorLeonardo Alt <leo@ethereum.org>2018-04-20 22:56:10 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2018-07-27 23:15:34 +0800
commit87a38e1abe61547e66aedfa595a73fb78184d609 (patch)
treeba41f379fbf2713f2e885c0d641a5780a06d7fe4 /libsolidity/formal/SMTLib2Interface.cpp
parent5faa60e8834b5302f8d58f719c6962ed3affb50f (diff)
downloaddexon-solidity-87a38e1abe61547e66aedfa595a73fb78184d609.tar.gz
dexon-solidity-87a38e1abe61547e66aedfa595a73fb78184d609.tar.zst
dexon-solidity-87a38e1abe61547e66aedfa595a73fb78184d609.zip
[SMTChecker] SMTPortfolio: use all SMT solvers available
Diffstat (limited to 'libsolidity/formal/SMTLib2Interface.cpp')
-rw-r--r--libsolidity/formal/SMTLib2Interface.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/libsolidity/formal/SMTLib2Interface.cpp b/libsolidity/formal/SMTLib2Interface.cpp
index 00ac523f..d9ea6df6 100644
--- a/libsolidity/formal/SMTLib2Interface.cpp
+++ b/libsolidity/formal/SMTLib2Interface.cpp
@@ -62,7 +62,7 @@ void SMTLib2Interface::pop()
m_accumulatedOutput.pop_back();
}
-Expression SMTLib2Interface::newFunction(string _name, Sort _domain, Sort _codomain)
+void SMTLib2Interface::declareFunction(string _name, Sort _domain, Sort _codomain)
{
write(
"(declare-fun |" +
@@ -73,19 +73,16 @@ Expression SMTLib2Interface::newFunction(string _name, Sort _domain, Sort _codom
(_codomain == Sort::Int ? "Int" : "Bool") +
")"
);
- return SolverInterface::newFunction(move(_name), _domain, _codomain);
}
-Expression SMTLib2Interface::newInteger(string _name)
+void SMTLib2Interface::declareInteger(string _name)
{
write("(declare-const |" + _name + "| Int)");
- return SolverInterface::newInteger(move(_name));
}
-Expression SMTLib2Interface::newBool(string _name)
+void SMTLib2Interface::declareBool(string _name)
{
write("(declare-const |" + _name + "| Bool)");
- return SolverInterface::newBool(std::move(_name));
}
void SMTLib2Interface::addAssertion(Expression const& _expr)