summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/mediumlevelil.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/python/mediumlevelil.py b/python/mediumlevelil.py
index e7909be4..fc9ba398 100644
--- a/python/mediumlevelil.py
+++ b/python/mediumlevelil.py
@@ -3677,6 +3677,12 @@ class MediumLevelILFunction:
"""
return core.BNIsMediumLevelILSSAVarLiveAt(self.handle, ssa_var.var.to_BNVariable(), ssa_var.version, instr)
+ def is_var_live_at(self, var: 'variable.Variable', instr: InstructionIndex) -> bool:
+ """
+ ``is_var_live_at`` determines if ``var`` is live at a given point in the function
+ """
+ return core.BNIsMediumLevelILVarLiveAt(self.handle, var.to_BNVariable(), instr)
+
def get_var_definitions(self, var: 'variable.Variable') -> List[MediumLevelILInstruction]:
count = ctypes.c_ulonglong()
var_data = var.to_BNVariable()