diff options
| author | Peter LaFosse <peter@vector35.com> | 2019-07-28 10:04:05 -0400 |
|---|---|---|
| committer | Peter LaFosse <peter@vector35.com> | 2019-08-03 10:30:42 -0400 |
| commit | 5fd35c56af33c7f7aeeb4b3206a826eba2de9e1f (patch) | |
| tree | fca6cca8408d1b613b025bd974339252dce87559 /python/lowlevelil.py | |
| parent | 6c04a6b0ffc27daac82f65d1b26055f4524ca3c1 (diff) | |
Fix llil ssa_form and non_ssa_form instruction index
Diffstat (limited to 'python/lowlevelil.py')
| -rw-r--r-- | python/lowlevelil.py | 6 |
1 files changed, 4 insertions, 2 deletions
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): |
