@@ -197,7 +197,7 @@ let handle_flags () =
197197 match get_string " dbg.dump" with
198198 | "" -> ()
199199 | path ->
200- Messages. formatter := Format. formatter_of_out_channel (Out_channel. open_text ( Filename. concat path " warnings.out" ));
200+ Messages. formatter := Format. formatter_of_out_channel (open_out ( Legacy. Filename. concat path " warnings.out" ));
201201 set_string " outfile" " "
202202
203203let handle_options () =
@@ -487,7 +487,7 @@ let parse_preprocessed preprocessed =
487487(* * Merge parsed files *)
488488let merge_parsed parsed =
489489 let cilout =
490- if get_string " dbg.cilout" = " " then Out_channel . stderr else Out_channel. open_text (get_string " dbg.cilout" )
490+ if get_string " dbg.cilout" = " " then Legacy . stderr else Legacy. open_out (get_string " dbg.cilout" )
491491 in
492492
493493 Errormsg. logChannel := Messages. get_out " cil" cilout;
@@ -523,7 +523,7 @@ let do_stats () =
523523 Goblint_solver.SolverStats. print () ;
524524 Logs. newline () ;
525525 Logs. info " Timings:" ;
526- Timing.Default. print (Stdlib.Format. formatter_of_out_channel @@ Messages. get_out " timing" Out_channel . stderr);
526+ Timing.Default. print (Stdlib.Format. formatter_of_out_channel @@ Messages. get_out " timing" Legacy . stderr);
527527 flush_all ()
528528 )
529529
@@ -536,9 +536,9 @@ let reset_stats () =
536536let do_analyze change_info merged_AST =
537537 (* direct the output to file if requested *)
538538 if get_string " outfile" <> " " then (
539- if ! Messages. out <> Out_channel . stdout then
540- Out_channel. close ! Messages. out;
541- Messages. out := Out_channel. open_text (get_string " outfile" ));
539+ if ! Messages. out <> Legacy . stdout then
540+ Legacy. close_out ! Messages. out;
541+ Messages. out := Legacy. open_out (get_string " outfile" ));
542542
543543 let module L = Printable. Liszt (CilType. Fundec ) in
544544 if get_bool " justcil" then
0 commit comments