summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/lowlevelil.py16
-rw-r--r--python/mediumlevelil.py10
2 files changed, 26 insertions, 0 deletions
diff --git a/python/lowlevelil.py b/python/lowlevelil.py
index 6cc2c642..c3f6963a 100644
--- a/python/lowlevelil.py
+++ b/python/lowlevelil.py
@@ -554,6 +554,10 @@ class LowLevelILInstruction(object):
return binaryninja.mediumlevelil.MediumLevelILInstruction(self.function.medium_level_il, expr)
@property
+ def mlil(self):
+ return self.medium_level_il
+
+ @property
def mapped_medium_level_il(self):
"""Gets the mapped medium level IL expression corresponding to this expression"""
expr = self.function.get_mapped_medium_level_il_expr_index(self.expr_index)
@@ -562,6 +566,10 @@ class LowLevelILInstruction(object):
return binaryninja.mediumlevelil.MediumLevelILInstruction(self.function.mapped_medium_level_il, expr)
@property
+ def mmlil(self):
+ return self.mapped_medium_level_il
+
+ @property
def value(self):
"""Value of expression if constant or a known value (read-only)"""
value = core.BNGetLowLevelILExprValue(self.function.handle, self.expr_index)
@@ -813,6 +821,10 @@ class LowLevelILFunction(object):
return binaryninja.mediumlevelil.MediumLevelILFunction(self.arch, result, self.source_function)
@property
+ def mlil(self):
+ return self.medium_level_il
+
+ @property
def mapped_medium_level_il(self):
"""Medium level IL with mappings between low level IL and medium level IL. Unused stores are not removed.
Typically, this should only be used to answer queries on assembly or low level IL where the query is
@@ -822,6 +834,10 @@ class LowLevelILFunction(object):
return None
return binaryninja.mediumlevelil.MediumLevelILFunction(self.arch, result, self.source_function)
+ @property
+ def mmlil(self):
+ return self.mapped_medium_level_il
+
def __setattr__(self, name, value):
try:
object.__setattr__(self, name, value)
diff --git a/python/mediumlevelil.py b/python/mediumlevelil.py
index 90b73e7f..a6867c60 100644
--- a/python/mediumlevelil.py
+++ b/python/mediumlevelil.py
@@ -387,6 +387,11 @@ class MediumLevelILInstruction(object):
return lowlevelil.LowLevelILInstruction(self.function.low_level_il.ssa_form, expr)
@property
+ def llil(self):
+ """Alias for low_level_il"""
+ return self.low_level_il
+
+ @property
def ssa_memory_version(self):
"""Version of active memory contents in SSA form for this instruction"""
return core.BNGetMediumLevelILSSAMemoryVersionAtILInstruction(self.function.handle, self.instr_index)
@@ -693,6 +698,11 @@ class MediumLevelILFunction(object):
return None
return lowlevelil.LowLevelILFunction(self.arch, result, self.source_function)
+ @property
+ def llil(self):
+ """Alias for low_level_il"""
+ return self.low_level_il
+
def __setattr__(self, name, value):
try:
object.__setattr__(self, name, value)