From 5fd35c56af33c7f7aeeb4b3206a826eba2de9e1f Mon Sep 17 00:00:00 2001 From: Peter LaFosse Date: Sun, 28 Jul 2019 10:04:05 -0400 Subject: Fix llil ssa_form and non_ssa_form instruction index --- python/lowlevelil.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'python/lowlevelil.py') diff --git a/python/lowlevelil.py b/python/lowlevelil.py index 6ed25c80..10bebcc5 100644 --- a/python/lowlevelil.py +++ b/python/lowlevelil.py @@ -863,13 +863,15 @@ class LowLevelILInstruction(object): def ssa_form(self): """SSA form of expression (read-only)""" return LowLevelILInstruction(self._function.ssa_form, - core.BNGetLowLevelILSSAExprIndex(self._function.handle, self.expr_index), self._instr_index) + core.BNGetLowLevelILSSAExprIndex(self._function.handle, self.expr_index), + core.BNGetLowLevelILSSAInstructionIndex(self._function.handle, self._instr_index) if self._instr_index is not None else None) @property def non_ssa_form(self): """Non-SSA form of expression (read-only)""" return LowLevelILInstruction(self._function.non_ssa_form, - core.BNGetLowLevelILNonSSAExprIndex(self._function.handle, self.expr_index), self._instr_index) + core.BNGetLowLevelILNonSSAExprIndex(self._function.handle, self.expr_index), + core.BNGetLowLevelILNonSSAInstructionIndex(self._function.handle, self._instr_index) if self._instr_index is not None else None) @property def medium_level_il(self): -- cgit v1.3.1