summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorGlenn Smith <glenn@vector35.com>2025-06-11 16:40:44 -0400
committerGlenn Smith <glenn@vector35.com>2025-06-11 17:37:34 -0400
commit7113133156893477152592257597568507482197 (patch)
treedfb4dc2fa63bb2e621eee4bc93fcd7a4ae1a98ac /python
parent5979718829775791122215227882866689469179 (diff)
Python: LLIL_GOTO/IF ops have InstructionIndex operands
Diffstat (limited to 'python')
-rw-r--r--python/lowlevelil.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/python/lowlevelil.py b/python/lowlevelil.py
index bd1a25bf..ef2b7c26 100644
--- a/python/lowlevelil.py
+++ b/python/lowlevelil.py
@@ -1673,13 +1673,13 @@ class LowLevelILFlag(LowLevelILInstruction):
@dataclass(frozen=True, repr=False, eq=False)
class LowLevelILGoto(LowLevelILInstruction, Terminal):
@property
- def dest(self) -> int:
- return self._get_int(0)
+ def dest(self) -> InstructionIndex:
+ return InstructionIndex(self._get_int(0))
@property
def detailed_operands(self) -> List[Tuple[str, LowLevelILOperandType, str]]:
return [
- ("dest", self.dest, "int"),
+ ("dest", self.dest, "InstructionIndex"),
]
@@ -2612,19 +2612,19 @@ class LowLevelILIf(LowLevelILInstruction, ControlFlow):
return self._get_expr(0)
@property
- def true(self) -> int:
- return self._get_int(1)
+ def true(self) -> InstructionIndex:
+ return InstructionIndex(self._get_int(1))
@property
- def false(self) -> int:
- return self._get_int(2)
+ def false(self) -> InstructionIndex:
+ return InstructionIndex(self._get_int(2))
@property
def detailed_operands(self) -> List[Tuple[str, LowLevelILOperandType, str]]:
return [
("condition", self.condition, "LowLevelILInstruction"),
- ("true", self.true, "int"),
- ("false", self.false, "int"),
+ ("true", self.true, "InstructionIndex"),
+ ("false", self.false, "InstructionIndex"),
]