Skip to content

Commit

Permalink
Add is_modular function back to fix compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
jerhard committed Nov 28, 2023
1 parent 4d2783c commit 18a87f6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/analyses/base.ml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@ struct

let is_privglob v = GobConfig.get_bool "annotation.int.privglobs" && v.vglob

let is_modular ctx =
let ask = Analyses.ask_of_ctx ctx in
ask.f Queries.IsModular

(*This is a bit of a hack to be able to change array domains if a pointer to an array is given as an argument*)
(*We have to prevent different domains to be used at the same time for the same array*)
(*After a function call, the domain has to be the same as before and we can not depend on the pointers staying the same*)
Expand Down

0 comments on commit 18a87f6

Please sign in to comment.