aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/formal/CVC4Interface.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/CVC4Interface.cpp
parent5faa60e8834b5302f8d58f719c6962ed3affb50f (diff)
downloaddexon-solidity-87a38e1abe61547e66aedfa595a73fb78184d609.tar
dexon-solidity-87a38e1abe61547e66aedfa595a73fb78184d609.tar.gz
dexon-solidity-87a38e1abe61547e66aedfa595a73fb78184d609.tar.bz2
dexon-solidity-87a38e1abe61547e66aedfa595a73fb78184d609.tar.lz
dexon-solidity-87a38e1abe61547e66aedfa595a73fb78184d609.tar.xz
dexon-solidity-87a38e1abe61547e66aedfa595a73fb78184d609.tar.zst
dexon-solidity-87a38e1abe61547e66aedfa595a73fb78184d609.zip
[SMTChecker] SMTPortfolio: use all SMT solvers available
Diffstat (limited to 'libsolidity/formal/CVC4Interface.cpp')
-rw-r--r--libsolidity/formal/CVC4Interface.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/libsolidity/formal/CVC4Interface.cpp b/libsolidity/formal/CVC4Interface.cpp
index 0530e940..84d36de0 100644
--- a/libsolidity/formal/CVC4Interface.cpp
+++ b/libsolidity/formal/CVC4Interface.cpp
@@ -50,23 +50,20 @@ void CVC4Interface::pop()
m_solver.pop();
}
-Expression CVC4Interface::newFunction(string _name, Sort _domain, Sort _codomain)
+void CVC4Interface::declareFunction(string _name, Sort _domain, Sort _codomain)
{
CVC4::Type fType = m_context.mkFunctionType(cvc4Sort(_domain), cvc4Sort(_codomain));
m_functions.insert({_name, m_context.mkVar(_name.c_str(), fType)});
- return SolverInterface::newFunction(move(_name), _domain, _codomain);
}
-Expression CVC4Interface::newInteger(string _name)
+void CVC4Interface::declareInteger(string _name)
{
m_constants.insert({_name, m_context.mkVar(_name.c_str(), m_context.integerType())});
- return SolverInterface::newInteger(move(_name));
}
-Expression CVC4Interface::newBool(string _name)
+void CVC4Interface::declareBool(string _name)
{
m_constants.insert({_name, m_context.mkVar(_name.c_str(), m_context.booleanType())});
- return SolverInterface::newBool(std::move(_name));
}
void CVC4Interface::addAssertion(Expression const& _expr)