From 2d710425c0e43c80a45378cfa6f58744586bf14d Mon Sep 17 00:00:00 2001 From: rihi <19492038+rihi@users.noreply.github.com> Date: Wed, 3 Jul 2024 14:41:33 +0200 Subject: [PATCH] black --- .../rules/collapse_nested_constants.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/decompiler/pipeline/controlflowanalysis/expression_simplification/rules/collapse_nested_constants.py b/decompiler/pipeline/controlflowanalysis/expression_simplification/rules/collapse_nested_constants.py index 07a9f7fd5..89e7b0042 100644 --- a/decompiler/pipeline/controlflowanalysis/expression_simplification/rules/collapse_nested_constants.py +++ b/decompiler/pipeline/controlflowanalysis/expression_simplification/rules/collapse_nested_constants.py @@ -67,7 +67,11 @@ def _collect_constants(operation: Operation) -> Iterator[Constant]: if operand.operation == operation_type: context_stack.append(operand) continue - elif isinstance(operand, Constant) and isinstance(operand.value, int) and _identity_constant(operation_type, operand_type).value != operand.value: + elif ( + isinstance(operand, Constant) + and isinstance(operand.value, int) + and _identity_constant(operation_type, operand_type).value != operand.value + ): yield operand