Commit 92d6baf8 authored by Gaurav Parthasarathy's avatar Gaurav Parthasarathy

addressed comments MR 26

parent b8fa6f43
Pipeline #18319 canceled with stage
...@@ -161,9 +161,10 @@ Section rdcss. ...@@ -161,9 +161,10 @@ Section rdcss.
(** Definition of the invariant *) (** 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 := Fixpoint proph_extract_winner (pvs : list (val * val)) : option proph_id :=
match pvs with match pvs with
| ((_, _)%V, LitV (LitProphecy tid)) :: _ => Some tid | (_, LitV (LitProphecy tid)) :: _ => Some tid
| _ => None | _ => None
end. end.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment