Skip to content

Commit

Permalink
fixing minor with push tags identifier
Browse files Browse the repository at this point in the history
  • Loading branch information
tutugordillo committed Oct 28, 2024
1 parent 2217ebe commit 5029bf1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/parser/cfg_block.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ def _process_instructions_from_jump(self, tags_dict: Dict[str, int], tag_idx: in
self._instructions.insert(0, CFGInstruction("PUSH [tag]", [], [str(tag_value)]))

# Add a JUMP instruction
self._instructions.append(CFGInstruction("JUMP", [self._jump_to], []))
self._instructions.append(CFGInstruction("JUMP", [str(tag_value)], []))

return tag_idx

Expand All @@ -210,7 +210,7 @@ def _process_instructions_from_jumpi(self, condition: str, tags_dict: Dict[str,i
self._instructions.insert(0, CFGInstruction("PUSH [tag]", [], [str(tag_value)]))

# Add a JUMPI instruction
self._instructions.append(CFGInstruction("JUMPI", [condition, self._jump_to], []))
self._instructions.append(CFGInstruction("JUMPI", [condition, str(tag_value)], []))

return tag_idx

Expand Down

0 comments on commit 5029bf1

Please sign in to comment.