diff options
Diffstat (limited to 'python/lowlevelil.py')
| -rw-r--r-- | python/lowlevelil.py | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/python/lowlevelil.py b/python/lowlevelil.py index dc679e9f..8249afe8 100644 --- a/python/lowlevelil.py +++ b/python/lowlevelil.py @@ -814,6 +814,26 @@ class LowLevelILInstruction(object): return False return self._function == value.function and self.expr_index == value.expr_index + def __lt__(self, value): + if not isinstance(value, type(self)): + return False + return self._function == value.function and self.expr_index < value.expr_index + + def __le__(self, value): + if not isinstance(value, type(self)): + return False + return self._function == value.function and self.expr_index <= value.expr_index + + def __gt__(self, value): + if not isinstance(value, type(self)): + return False + return self._function == value.function and self.expr_index > value.expr_index + + def __ge__(self, value): + if not isinstance(value, type(self)): + return False + return self._function == value.function and self.expr_index >= value.expr_index + @property def tokens(self): """LLIL tokens (read-only)""" |
