@@ -2998,15 +2998,13 @@ def llil_basic_blocks(self) -> Generator['lowlevelil.LowLevelILBasicBlock', None
29982998 def mlil_basic_blocks (self ) -> Generator ['mediumlevelil.MediumLevelILBasicBlock' , None , None ]:
29992999 """A generator of all MediumLevelILBasicBlock objects in the BinaryView"""
30003000 for func in self .mlil_functions ():
3001- if func is not None :
3002- yield from func .basic_blocks
3001+ yield from func .basic_blocks
30033002
30043003 @property
30053004 def hlil_basic_blocks (self ) -> Generator ['highlevelil.HighLevelILBasicBlock' , None , None ]:
30063005 """A generator of all HighLevelILBasicBlock objects in the BinaryView"""
30073006 for func in self .hlil_functions ():
3008- if func is not None :
3009- yield from func .basic_blocks
3007+ yield from func .basic_blocks
30103008
30113009 @property
30123010 def instructions (self ) -> InstructionsType :
@@ -3195,7 +3193,9 @@ def mlil_functions(
31953193 for func in AdvancedILFunctionList (
31963194 self , self .preload_limit if preload_limit is None else preload_limit , function_generator
31973195 ):
3198- yield func .mlil
3196+ mlil = func .mlil
3197+ if mlil is not None :
3198+ yield mlil
31993199
32003200 def hlil_functions (
32013201 self , preload_limit : Optional [int ] = None ,
@@ -3208,7 +3208,9 @@ def hlil_functions(
32083208 for func in AdvancedILFunctionList (
32093209 self , self .preload_limit if preload_limit is None else preload_limit , function_generator
32103210 ):
3211- yield func .hlil
3211+ hlil = func .hlil
3212+ if hlil is not None :
3213+ yield hlil
32123214
32133215 @property
32143216 def has_functions (self ) -> bool :
0 commit comments