diff options
Diffstat (limited to 'python/mediumlevelil.py')
| -rw-r--r-- | python/mediumlevelil.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/python/mediumlevelil.py b/python/mediumlevelil.py index e7059918..c88ab6b8 100644 --- a/python/mediumlevelil.py +++ b/python/mediumlevelil.py @@ -673,6 +673,13 @@ class MediumLevelILFunction(object): return result @property + def instructions(self): + """A generator of mlil instructions of the current function""" + for block in self.basic_blocks: + for i in block: + yield i + + @property def ssa_form(self): """Medium level IL in SSA form (read-only)""" result = core.BNGetMediumLevelILSSAForm(self.handle) |
