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/lowlevelil.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'python/lowlevelil.py') diff --git a/python/lowlevelil.py b/python/lowlevelil.py index c8db74b6..a98de6d3 100644 --- a/python/lowlevelil.py +++ b/python/lowlevelil.py @@ -791,6 +791,13 @@ class LowLevelILFunction(object): core.BNFreeBasicBlockList(blocks, count.value) return result + @property + def instructions(self): + """A generator of llil instructions of the current llil function""" + for block in self.basic_blocks: + for i in block: + yield i + @property def ssa_form(self): """Low level IL in SSA form (read-only)""" -- cgit v1.3.1