diff options
| author | Jordan Wiens <jordan@psifertex.com> | 2018-12-12 13:26:52 -0500 |
|---|---|---|
| committer | Jordan Wiens <jordan@psifertex.com> | 2018-12-12 13:26:52 -0500 |
| commit | 01a9eb27ea90e62476bb368f1e418745777f24b5 (patch) | |
| tree | 6cfb365b8208f9f39137db77d54473b5599a5310 /python/mediumlevelil.py | |
| parent | ce132a1c7937b494711eee2a5596b16ecfa1993d (diff) | |
deprecate current_function.medium_level_il in favor of .mlil and move .instructions to mlil instead of main function -- likewise for llil
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) |
