Skip to content

Commit

Permalink
Update witness timings
Browse files Browse the repository at this point in the history
  • Loading branch information
sim642 committed Oct 30, 2023
1 parent e01cacc commit 6cd62e5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/witness/witness.ml
Original file line number Diff line number Diff line change
Expand Up @@ -572,13 +572,13 @@ struct

let write entrystates =
let module Task = (val (BatOption.get !task)) in
let module TaskResult = (val (Timing.wrap "determine" (determine_result entrystates) (module Task))) in
let module TaskResult = (val (Timing.wrap "sv-comp result" (determine_result entrystates) (module Task))) in

print_task_result (module TaskResult);

if get_bool "witness.graphml.enabled" && (TaskResult.result <> Result.Unknown || get_bool "witness.graphml.unknown") then (
let witness_path = get_string "witness.graphml.path" in
Timing.wrap "write" (write_file witness_path (module Task)) (module TaskResult)
Timing.wrap "graphml witness" (write_file witness_path (module Task)) (module TaskResult)
)

let write entrystates =
Expand All @@ -595,7 +595,4 @@ struct
)
else
write entrystates

let write entrystates =
Timing.wrap "witness" write entrystates
end
3 changes: 3 additions & 0 deletions src/witness/yamlWitness.ml
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,9 @@ struct
];

yaml_entries_to_file yaml_entries (Fpath.v (GobConfig.get_string "witness.yaml.path"))

let write () =
Timing.wrap "yaml witness" write ()
end


Expand Down

0 comments on commit 6cd62e5

Please sign in to comment.