Skip to content

Commit

Permalink
Output unprotected invariants from vojdani privatization
Browse files Browse the repository at this point in the history
  • Loading branch information
sim642 committed Jan 13, 2025
1 parent 8f4048e commit dc678ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/analyses/basePriv.ml
Original file line number Diff line number Diff line change
Expand Up @@ -831,7 +831,7 @@ struct

let invariant_global (ask: Q.ask) getg g =
let locks = ask.f (Q.MustProtectingLocks {global = g; write = false}) in
if LockDomain.MustLockset.is_all locks || LockDomain.MustLockset.is_empty locks then (* TODO: output unprotected invariant with empty lockset? *)
if LockDomain.MustLockset.is_all locks then
Invariant.none
else (
let read_global g = getg g in (* TODO: read top for others? or at least those which might not have all same protecting locks? *)
Expand Down

0 comments on commit dc678ab

Please sign in to comment.