summaryrefslogtreecommitdiff
path: root/python/mediumlevelil.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/mediumlevelil.py')
-rw-r--r--python/mediumlevelil.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/python/mediumlevelil.py b/python/mediumlevelil.py
index d997fa76..e8d58f96 100644
--- a/python/mediumlevelil.py
+++ b/python/mediumlevelil.py
@@ -317,6 +317,9 @@ class MediumLevelILInstruction(object):
def __repr__(self):
return "<il: %s>" % str(self)
+ def __eq__(self, value):
+ return self.function == value.function and self.expr_index == value.expr_index
+
@property
def tokens(self):
"""MLIL tokens (read-only)"""