Skip to content

Commit

Permalink
Add exp.volatiles_are_top back to none privatization
Browse files Browse the repository at this point in the history
  • Loading branch information
sim642 committed Dec 20, 2024
1 parent c14fdf3 commit 51676de
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/analyses/basePriv.ml
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,12 @@ struct
getg x

let write_global ?(invariant=false) (ask: Queries.ask) getg sideg (st: BaseComponents (D).t) x v =
let v = (* Copied from MainFunctor.update_variable *)
if get_bool "exp.volatiles_are_top" && is_always_unknown x then (* TODO: why don't other privatizations do this? why in write_global, not read_global? why not in base directly? why not in other value analyses? *)
VD.top ()
else
v
in
if not invariant then
sideg x v;
st
Expand Down

0 comments on commit 51676de

Please sign in to comment.