diff --git a/decompiler/structures/pseudo/expressions.py b/decompiler/structures/pseudo/expressions.py index 913a3019d..e1f03e8ff 100644 --- a/decompiler/structures/pseudo/expressions.py +++ b/decompiler/structures/pseudo/expressions.py @@ -596,8 +596,15 @@ def __init__(self, value: dict[int, Expression], vartype: Struct, tags: Optional tags, ) + def __eq__(self, __value): + return isinstance(__value, StructConstant) and super().__eq__(__value) + + def __hash__(self): + return hash(tuple(self.value.items())) + def __str__(self) -> str: """Return a string representation of the ConstantComposition""" + # TODO: return f"to_fix_struct_repr." def __iter__(self) -> Iterator[Expression]: