Skip to content

Commit

Permalink
forgot to wrap speculative mode around bounds computation
Browse files Browse the repository at this point in the history
  • Loading branch information
DrMichaelPetter committed Dec 19, 2024
1 parent 4d60a82 commit 5dba343
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/cdomains/apron/sharedFunctions.apron.ml
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ struct
| exception Invalid_argument _ -> raise (Unsupported_CilExp Exp_not_supported)
| true -> texpr1 e
| false -> (* Cast is not injective - we now try to establish suitable ranges manually *)
GobRef.wrap AnalysisState.executing_speculative_computations true @@ fun () ->
(* try to evaluate e by EvalInt Query *)
let res = try (query e @@ Cilfacade.get_ikind_exp e) with Invalid_argument _ -> raise (Unsupported_CilExp Exp_not_supported) in
(* convert response to a constant *)
Expand Down

0 comments on commit 5dba343

Please sign in to comment.