mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
[SMTChecker] Reset reference variables on assignment to a variable of reference type
This commit is contained in:
@@ -2034,7 +2034,11 @@ void SMTEncoder::assignment(
|
||||
m_context.newValue(*varDecl);
|
||||
}
|
||||
else if (auto varDecl = identifierToVariable(*left))
|
||||
{
|
||||
if (varDecl->hasReferenceOrMappingType())
|
||||
resetReferences(*varDecl);
|
||||
assignment(*varDecl, _right);
|
||||
}
|
||||
else if (
|
||||
dynamic_cast<IndexAccess const*>(left) ||
|
||||
dynamic_cast<MemberAccess const*>(left)
|
||||
|
||||
Reference in New Issue
Block a user