From 8ddd6a14faeb0b283541447fa269223951f84210 Mon Sep 17 00:00:00 2001 From: Rihi <19492038+rihi@users.noreply.github.com> Date: Wed, 20 Sep 2023 16:28:39 +0200 Subject: [PATCH] Rename variable in collect_terms.py for readability Co-authored-by: Manuel Blatt <45859907+blattm@users.noreply.github.com> --- .../expression_simplification/rules/collect_terms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/decompiler/pipeline/controlflowanalysis/expression_simplification/rules/collect_terms.py b/decompiler/pipeline/controlflowanalysis/expression_simplification/rules/collect_terms.py index 65c077b82..6ce11d8cb 100644 --- a/decompiler/pipeline/controlflowanalysis/expression_simplification/rules/collect_terms.py +++ b/decompiler/pipeline/controlflowanalysis/expression_simplification/rules/collect_terms.py @@ -34,7 +34,7 @@ def apply(self, operation: Operation) -> list[tuple[Expression, Expression]]: identity_constant = _identity_constant(operation.operation, operation.type) return [ (first, folded_constant), - *((o, identity_constant) for o in rest) + *((constant, identity_constant) for constant in rest) ]