mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
[SMTChecker] Fix internal error on abstract modifier
This commit is contained in:
parent
e21be30df4
commit
103fa3b7eb
@ -2604,9 +2604,12 @@ vector<VariableDeclaration const*> SMTEncoder::modifiersVariables(FunctionDefini
|
||||
continue;
|
||||
|
||||
visited.insert(modifier);
|
||||
if (modifier->isImplemented())
|
||||
{
|
||||
vars += applyMap(modifier->parameters(), [](auto _var) { return _var.get(); });
|
||||
vars += BlockVars(modifier->body()).vars;
|
||||
}
|
||||
}
|
||||
return vars;
|
||||
}
|
||||
|
||||
|
@ -0,0 +1,6 @@
|
||||
pragma experimental SMTChecker;
|
||||
|
||||
abstract contract A {
|
||||
function f() public mod {}
|
||||
modifier mod virtual;
|
||||
}
|
Loading…
Reference in New Issue
Block a user