From e0c0126a49910d7b082ae9449bfa724ba23b4dad Mon Sep 17 00:00:00 2001 From: alexcere <48130030+alexcere@users.noreply.github.com> Date: Mon, 16 Sep 2024 13:04:52 +0200 Subject: [PATCH] Replace prints by logging.debug --- src/parser/cfg_block.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/parser/cfg_block.py b/src/parser/cfg_block.py index 23bdd56d..bf502325 100644 --- a/src/parser/cfg_block.py +++ b/src/parser/cfg_block.py @@ -1,3 +1,5 @@ +import logging + from parser.cfg_instruction import CFGInstruction, build_push_spec, build_pushtag_spec from parser.utils_parser import is_in_input_stack, is_in_output_stack, are_dependent_interval, get_empty_spec, \ get_expression, are_dependent_accesses, replace_pos_instrsid, generate_dep, get_interval @@ -522,13 +524,13 @@ def build_spec(self, block_tags_dict: Dict, block_tag_idx: int) -> Dict[str, Any #Just to print information if it is not a jump if not self._jump_type in ["conditional","unconditional"]: - print(str(self.block_id)) - print(json.dumps(spec, indent=4)) + logging.debug(f"Building Spec of block {self.block_id}...") + logging.debug(json.dumps(spec, indent=4)) if self._jump_type in ["conditional","unconditional"]: spec, out_idx, block_tag_idx = self._include_jump_tag(spec,out_idx, block_tags_dict, block_tag_idx) - print(str(self.block_id)) - print(json.dumps(spec, indent=4)) + logging.debug(f"Building Spec of block {self.block_id}...") + logging.debug(json.dumps(spec, indent=4)) return spec, out_idx, block_tag_idx