Skip to content

Commit

Permalink
Use Stdlib.Exit instead of Not_found for env_exists_mem_con1
Browse files Browse the repository at this point in the history
  • Loading branch information
sim642 committed Mar 18, 2024
1 parent 6051f2a commit 4f1e717
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cdomains/apron/apronDomain.apron.ml
Original file line number Diff line number Diff line change
Expand Up @@ -643,10 +643,10 @@ struct
(* Lincons1 from polyhedra may contain variable with zero coefficient.
These are silently not printed! *)
if not (Coeff.is_zero coeff) && Environment.mem_var env var then
raise Not_found
raise Stdlib.Exit (* found *)
) con1;
false
with Not_found ->
with Stdlib.Exit -> (* found *)
true
in
let env_exists_mem_con1 env con1 =
Expand Down

0 comments on commit 4f1e717

Please sign in to comment.