Skip to content

Commit

Permalink
Fix relational mutex-meet-atomic publishing top with empty environment
Browse files Browse the repository at this point in the history
  • Loading branch information
sim642 committed May 3, 2024
1 parent 52fce5a commit 1dcb3c9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/analyses/apron/relationPriv.apron.ml
Original file line number Diff line number Diff line change
Expand Up @@ -607,7 +607,10 @@ struct
)
in
(* Unprotected invariant is one big relation. *)
sideg (V.mutex atomic_mutex) rel_side;
(* If no globals are contained here, none need to be published *)
(* https://github.com/goblint/analyzer/pull/1354 *)
if RD.vars rel_side <> [] then
sideg (V.mutex atomic_mutex) rel_side;
let rel_local =
let newly_unprot var = match AV.find_metadata var with
| Some (Global g) -> is_unprotected_without ask g atomic_mutex
Expand Down

0 comments on commit 1dcb3c9

Please sign in to comment.