From 4f318ec191fbc9e2dce7029c8273c82fdd4b342f Mon Sep 17 00:00:00 2001 From: Rihi <19492038+rihi@users.noreply.github.com> Date: Wed, 20 Sep 2023 16:31:45 +0200 Subject: [PATCH] Rename variable in simplify_redundant_reference.py for readability Co-authored-by: Manuel Blatt <45859907+blattm@users.noreply.github.com> --- .../rules/simplify_redundant_reference.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/decompiler/pipeline/controlflowanalysis/expression_simplification/rules/simplify_redundant_reference.py b/decompiler/pipeline/controlflowanalysis/expression_simplification/rules/simplify_redundant_reference.py index 70780a062..9337be30b 100644 --- a/decompiler/pipeline/controlflowanalysis/expression_simplification/rules/simplify_redundant_reference.py +++ b/decompiler/pipeline/controlflowanalysis/expression_simplification/rules/simplify_redundant_reference.py @@ -13,8 +13,8 @@ def apply(self, operation: Operation) -> list[tuple[Expression, Expression]]: match operation: case UnaryOperation( operation=OperationType.dereference, - operand=UnaryOperation(operation=OperationType.address, operand=operand) + operand=UnaryOperation(operation=OperationType.address, operand=inner_operand) ): - return [(operation, operand)] + return [(operation, inner_operand)] case _: return []