mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
[SMTChecker] Fix in abi handling - abstracting expressions of type Function inside ABI functions when translating to SMT
This commit is contained in:
parent
2a62814686
commit
32a923c7ef
@ -264,14 +264,14 @@ void SymbolicState::buildABIFunctions(set<FunctionCall const*> const& _abiFuncti
|
|||||||
/// Otherwise we create a tuple wrapping the necessary input or output types.
|
/// Otherwise we create a tuple wrapping the necessary input or output types.
|
||||||
auto typesToSort = [](auto const& _types, string const& _name) -> shared_ptr<Sort> {
|
auto typesToSort = [](auto const& _types, string const& _name) -> shared_ptr<Sort> {
|
||||||
if (_types.size() == 1)
|
if (_types.size() == 1)
|
||||||
return smtSort(*_types.front());
|
return smtSortAbstractFunction(*_types.front());
|
||||||
|
|
||||||
vector<string> inNames;
|
vector<string> inNames;
|
||||||
vector<SortPointer> sorts;
|
vector<SortPointer> sorts;
|
||||||
for (unsigned i = 0; i < _types.size(); ++i)
|
for (unsigned i = 0; i < _types.size(); ++i)
|
||||||
{
|
{
|
||||||
inNames.emplace_back(_name + "_input_" + to_string(i));
|
inNames.emplace_back(_name + "_input_" + to_string(i));
|
||||||
sorts.emplace_back(smtSort(*_types.at(i)));
|
sorts.emplace_back(smtSortAbstractFunction(*_types.at(i)));
|
||||||
}
|
}
|
||||||
return make_shared<smtutil::TupleSort>(
|
return make_shared<smtutil::TupleSort>(
|
||||||
_name + "_input",
|
_name + "_input",
|
||||||
|
Loading…
Reference in New Issue
Block a user