@@ -169,7 +169,7 @@ def main() -> None:
169169
170170 print (f"ESBMC-AI v{ __version__ } " )
171171 print (f"Made by { __author__ } " )
172- print ()
172+ print (flush = True )
173173
174174 _init_logging ()
175175
@@ -200,9 +200,10 @@ def main() -> None:
200200
201201 # Show full config at highest verbosity level (-vvv)
202202 if config .verbose_level >= 3 :
203- logger .debug ("Global configuration:" )
204- print (json .dumps (config .model_dump (), indent = 2 , default = str ))
205- print ()
203+ logger .debug (
204+ "Global configuration:\n "
205+ + json .dumps (config .model_dump (), indent = 2 , default = str )
206+ )
206207
207208 # Run the command
208209 command_name = config .command_name
@@ -215,9 +216,10 @@ def main() -> None:
215216 if config .verbose_level >= 3 :
216217 try :
217218 cmd_config = command .config
218- logger .debug (f"Command '{ command_name } ' configuration:" )
219- print (json .dumps (cmd_config .model_dump (), indent = 2 , default = str ))
220- print ()
219+ logger .debug (
220+ f"Command '{ command_name } ' configuration:\n "
221+ + json .dumps (cmd_config .model_dump (), indent = 2 , default = str )
222+ )
221223 except NotImplementedError :
222224 pass
223225
@@ -227,13 +229,13 @@ def main() -> None:
227229 logger .info (f"Time taken: { time_taken } " )
228230
229231 if result :
230- print (result )
232+ print (result , flush = True )
231233 if config .use_json :
232234 json_result_str : str = result .to_json ()
233235 json_result : dict = json .loads (json_result_str )
234236 json_result ["time_taken_seconds" ] = time_taken
235237 json_result_str = json .dumps (json_result )
236- print (json_result_str )
238+ print (json_result_str , flush = True )
237239 if config .json_path :
238240 with open (config .json_path , "w" , encoding = "utf-8" ) as f :
239241 f .write (json_result_str )
0 commit comments