diff --git a/decompiler/pipeline/controlflowanalysis/expression_simplification/rules/collapse_constants.py b/decompiler/pipeline/controlflowanalysis/expression_simplification/rules/collapse_constants.py index a940a6863..b32a84215 100644 --- a/decompiler/pipeline/controlflowanalysis/expression_simplification/rules/collapse_constants.py +++ b/decompiler/pipeline/controlflowanalysis/expression_simplification/rules/collapse_constants.py @@ -14,6 +14,8 @@ class CollapseConstants(SimplificationRule): """ def apply(self, operation: Operation) -> list[tuple[Expression, Expression]]: + if not operation.operands: + return [] # Is this even allowed? if not all(isinstance(o, Constant) for o in operation.operands): return []