From 01a9eb27ea90e62476bb368f1e418745777f24b5 Mon Sep 17 00:00:00 2001 From: Jordan Wiens Date: Wed, 12 Dec 2018 13:26:52 -0500 Subject: deprecate current_function.medium_level_il in favor of .mlil and move .instructions to mlil instead of main function -- likewise for llil --- python/mediumlevelil.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'python/mediumlevelil.py') diff --git a/python/mediumlevelil.py b/python/mediumlevelil.py index e7059918..c88ab6b8 100644 --- a/python/mediumlevelil.py +++ b/python/mediumlevelil.py @@ -672,6 +672,13 @@ class MediumLevelILFunction(object): core.BNFreeBasicBlockList(blocks, count.value) 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)""" -- cgit v1.3.1