diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2018-07-28 00:07:56 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-28 00:07:56 +0800 |
commit | 2794a22d84d05c83bd6e9f57d16a9e66a662812f (patch) | |
tree | c861a097b885416b67d2ef98f20ae9f91950756d /libsolidity/formal/Z3Interface.cpp | |
parent | 5faa60e8834b5302f8d58f719c6962ed3affb50f (diff) | |
parent | 55c1fb60b4ba60685262f332f2b197a7ef81d5b8 (diff) | |
download | dexon-solidity-2794a22d84d05c83bd6e9f57d16a9e66a662812f.tar dexon-solidity-2794a22d84d05c83bd6e9f57d16a9e66a662812f.tar.gz dexon-solidity-2794a22d84d05c83bd6e9f57d16a9e66a662812f.tar.bz2 dexon-solidity-2794a22d84d05c83bd6e9f57d16a9e66a662812f.tar.lz dexon-solidity-2794a22d84d05c83bd6e9f57d16a9e66a662812f.tar.xz dexon-solidity-2794a22d84d05c83bd6e9f57d16a9e66a662812f.tar.zst dexon-solidity-2794a22d84d05c83bd6e9f57d16a9e66a662812f.zip |
Merge pull request #4351 from ethereum/smt_portfolio
[SMTChecker] SMTPortfolio: use all SMT solvers available
Diffstat (limited to 'libsolidity/formal/Z3Interface.cpp')
-rw-r--r-- | libsolidity/formal/Z3Interface.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/libsolidity/formal/Z3Interface.cpp b/libsolidity/formal/Z3Interface.cpp index b57bcb94..784fbd28 100644 --- a/libsolidity/formal/Z3Interface.cpp +++ b/libsolidity/formal/Z3Interface.cpp @@ -51,22 +51,19 @@ void Z3Interface::pop() m_solver.pop(); } -Expression Z3Interface::newFunction(string _name, Sort _domain, Sort _codomain) +void Z3Interface::declareFunction(string _name, Sort _domain, Sort _codomain) { m_functions.insert({_name, m_context.function(_name.c_str(), z3Sort(_domain), z3Sort(_codomain))}); - return SolverInterface::newFunction(move(_name), _domain, _codomain); } -Expression Z3Interface::newInteger(string _name) +void Z3Interface::declareInteger(string _name) { m_constants.insert({_name, m_context.int_const(_name.c_str())}); - return SolverInterface::newInteger(move(_name)); } -Expression Z3Interface::newBool(string _name) +void Z3Interface::declareBool(string _name) { m_constants.insert({_name, m_context.bool_const(_name.c_str())}); - return SolverInterface::newBool(std::move(_name)); } void Z3Interface::addAssertion(Expression const& _expr) |