Refactor data flow analyzer state access.

This commit is contained in:
chriseth
2022-03-14 19:32:33 +01:00
parent e154d43176
commit eab4ca906c
14 changed files with 81 additions and 48 deletions
+5 -1
View File
@@ -38,6 +38,10 @@ void ExpressionSimplifier::visit(Expression& _expression)
{
ASTModifier::visit(_expression);
while (auto const* match = SimplificationRules::findFirstMatch(_expression, m_dialect, m_value))
while (auto const* match = SimplificationRules::findFirstMatch(
_expression,
m_dialect,
[this](YulString _var) { return variableValue(_var); }
))
_expression = match->action().toExpression(debugDataOf(_expression));
}