From 7ed853fd26faa5997ea794407c8c1749f35bb870 Mon Sep 17 00:00:00 2001 From: tutugordillo Date: Thu, 12 Sep 2024 09:16:02 +0200 Subject: [PATCH] only specification for those blocks whose jump_type != split_instruction_block --- src/parser/cfg_block_list.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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