Skip to content

Commit

Permalink
Avoid creating unneeded Task module which may not be set in `is_error…
Browse files Browse the repository at this point in the history
…_function'`
  • Loading branch information
michael-schwarz committed Nov 19, 2023
1 parent a40f2cf commit 1f4d8be
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/witness/svcomp.ml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ let task: (module Task) option ref = ref None


let is_error_function' f spec =
let module Task = (val (Option.get !task)) in
List.exists (function
| Specification.UnreachCall f_spec -> f.vname = f_spec
| _ -> false
Expand Down

0 comments on commit 1f4d8be

Please sign in to comment.