Skip to content
Snippets Groups Projects

Continuation change, extract_proph_winner change

Merged Ghost User requested to merge (removed):master into master
1 unresolved thread
@@ -161,9 +161,10 @@ Section rdcss.
(** Definition of the invariant *)
(** Extract the TID of the winner from the prophecy value. The winner is the first thread that performs a CAS. *)
Fixpoint proph_extract_winner (pvs : list (val * val)) : option proph_id :=
match pvs with
| ((_, _)%V, LitV (LitProphecy tid)) :: _ => Some tid
| (_, LitV (LitProphecy tid)) :: _ => Some tid
| _ => None
end.
Loading