Skip to content

Commit

Permalink
only specification for those blocks whose jump_type != split_instruct…
Browse files Browse the repository at this point in the history
…ion_block
  • Loading branch information
tutugordillo committed Sep 12, 2024
1 parent acc6f6f commit 7ed853f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/parser/cfg_block_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7ed853f

Please sign in to comment.