mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Rephrase erasure condition in DataFlowAnalyzer.
This commit is contained in:
parent
3ed55613ba
commit
eb035147d2
@ -64,10 +64,9 @@ void DataFlowAnalyzer::operator()(ExpressionStatement& _statement)
|
|||||||
{
|
{
|
||||||
ASTModifier::operator()(_statement);
|
ASTModifier::operator()(_statement);
|
||||||
cxx20::erase_if(m_storage, [&](auto const& entry) {
|
cxx20::erase_if(m_storage, [&](auto const& entry) {
|
||||||
return !(
|
return
|
||||||
m_knowledgeBase.knownToBeDifferent(vars->first, entry.first) ||
|
!m_knowledgeBase.knownToBeDifferent(vars->first, entry.first) &&
|
||||||
m_knowledgeBase.knownToBeEqual(vars->second, entry.second)
|
!m_knowledgeBase.knownToBeEqual(vars->second, entry.second);
|
||||||
);
|
|
||||||
});
|
});
|
||||||
m_storage[vars->first] = vars->second;
|
m_storage[vars->first] = vars->second;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user