summaryrefslogtreecommitdiff
path: root/python/mediumlevelil.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/mediumlevelil.py')
-rw-r--r--python/mediumlevelil.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/python/mediumlevelil.py b/python/mediumlevelil.py
index cfa8f900..c024d287 100644
--- a/python/mediumlevelil.py
+++ b/python/mediumlevelil.py
@@ -334,6 +334,11 @@ class MediumLevelILInstruction(object):
return result
@property
+ def il_basic_block(self):
+ """IL basic block object containing this expression (read-only) (only available on finalized functions)"""
+ return MediumLevelILBasicBlock(self.function.source_function.view, core.BNGetMediumLevelILBasicBlockForInstruction(self.function.handle, self.instr_index), self.function)
+
+ @property
def ssa_form(self):
"""SSA form of expression (read-only)"""
return MediumLevelILInstruction(self.function.ssa_form,