diff --git a/src/parser/cfg_block_list.py b/src/parser/cfg_block_list.py index 9824d313..afcfe6e1 100644 --- a/src/parser/cfg_block_list.py +++ b/src/parser/cfg_block_list.py @@ -50,10 +50,13 @@ def build_spec(self, block_tag_idx, return_function_element = 0): Build specs from blocks """ list_spec = {} - for b in self.blocks: + + valid_blocks = filter(lambda x: x.get_jump_type() != "split_instruction_block", self.blocks) + + for b in valid_blocks: block = self.blocks[b] spec, block_tag_idx = block.build_spec(self.block_tags_dict, block_tag_idx) - + list_spec[b.get_block_id()] = spec return list_spec, block_tag_idx