diff --git a/src/analyses/apron/relationPriv.apron.ml b/src/analyses/apron/relationPriv.apron.ml index 66548c117c..1a91b4d39a 100644 --- a/src/analyses/apron/relationPriv.apron.ml +++ b/src/analyses/apron/relationPriv.apron.ml @@ -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