From 7113133156893477152592257597568507482197 Mon Sep 17 00:00:00 2001 From: Glenn Smith Date: Wed, 11 Jun 2025 16:40:44 -0400 Subject: Python: LLIL_GOTO/IF ops have InstructionIndex operands --- python/lowlevelil.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'python') 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"), ] -- cgit v1.3.1