mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
[SMTChecker] SMTPortfolio: use all SMT solvers available
This commit is contained in:
committed by
Alex Beregszaszi
parent
5faa60e883
commit
87a38e1abe
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user