Merge pull request #14276 from ethereum/smtchecker-fix-ice

SMTChecker: External function call with struct member is not getter
This commit is contained in:
Leo
2023-05-30 13:46:35 +02:00
committed by GitHub
2 changed files with 35 additions and 1 deletions
+2 -1
View File
@@ -2839,7 +2839,8 @@ smtutil::Expression SMTEncoder::contractAddressValue(FunctionCall const& _f)
VariableDeclaration const* SMTEncoder::publicGetter(Expression const& _expr) const {
if (auto memberAccess = dynamic_cast<MemberAccess const*>(&_expr))
return dynamic_cast<VariableDeclaration const*>(memberAccess->annotation().referencedDeclaration);
if (auto variableDeclaration = dynamic_cast<VariableDeclaration const*>(memberAccess->annotation().referencedDeclaration))
return variableDeclaration->isStateVariable() ? variableDeclaration : nullptr;
return nullptr;
}