Skip to content

Commit

Permalink
Fixes for Gobview (goblint/gobview#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-schwarz committed Apr 18, 2022
1 parent 9114bcc commit 75e3e2f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/incremental/serialize.ml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ let marshal obj fileName =
close_out chan

let unmarshal fileName =
if GobConfig.get_bool "dbg.verbose" then Format.printf "Unmarshalling %a... If type of content changed, this will result in a segmentation fault!" Fpath.pp fileName;
if GobConfig.get_bool "dbg.verbose" then
(* Do NOT replace with Printf because of Gobview: https://github.com/goblint/gobview/issues/10 *)
print_endline ("Unmarshalling " ^ Fpath.to_string fileName ^ "... If type of content changed, this will result in a segmentation fault!");
Marshal.input (open_in_bin (Fpath.to_string fileName))

let results_exist () =
Expand Down
3 changes: 2 additions & 1 deletion src/solvers/generic.ml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ module LoadRunSolver: GenericEqBoxSolver =
let load_run = Fpath.v (get_string "load_run") in
let solver = Fpath.(load_run / solver_file) in
if get_bool "dbg.verbose" then
Format.printf "Loading the solver result of a saved run from %a" Fpath.pp solver;
(* Do NOT replace with Printf because of Gobview: https://github.com/goblint/gobview/issues/10 *)
print_endline ("Loading the solver result of a saved run from " ^ (Fpath.to_string solver));
let vh: S.d VH.t = Serialize.unmarshal solver in
if get_bool "ana.opt.hashcons" then (
let vh' = VH.create (VH.length vh) in
Expand Down

0 comments on commit 75e3e2f

Please sign in to comment.