Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
examples
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Iris
examples
Commits
4357c43d
Commit
4357c43d
authored
5 years ago
by
Gaurav Parthasarathy
Browse files
Options
Downloads
Patches
Plain Diff
formatting change and proof simplifcation due to Accepted state definition change
parent
fb95184a
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!26
Continuation change, extract_proph_winner change
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
theories/logatom/rdcss/rdcss.v
+4
-8
4 additions, 8 deletions
theories/logatom/rdcss/rdcss.v
with
4 additions
and
8 deletions
theories/logatom/rdcss/rdcss.v
+
4
−
8
View file @
4357c43d
...
...
@@ -186,11 +186,9 @@ Section rdcss.
(* After the prophecy said we are going to win the race, we commit and run the AU,
switching from [pending] to [accepted]. *)
Definition
accepted_state
Q
(
proph_winner
:
option
proph_id
)
(
p_ghost_winner
:
proph_id
)
:=
((
∃
vs
,
proph
p_ghost_winner
vs
)
∗
Q
∗
match
proph_winner
with
None
=>
True
|
Some
p
=>
⌜
p
=
p_ghost_winner
⌝
end
)
%
I
.
((
∃
vs
,
proph
p_ghost_winner
vs
)
∗
Q
∗
⌜
match
proph_winner
with
None
=>
True
|
Some
p
=>
p
=
p_ghost_winner
end
⌝
)
%
I
.
(* The same thread then wins the CmpXchg and moves from [accepted] to [done].
Then, the [γ_t] token guards the transition to take out [Q].
...
...
@@ -463,9 +461,7 @@ Section rdcss.
iModIntro
.
iMod
"Hgc_close"
as
"_"
.
(* close descr inv *)
iModIntro
.
iSplitL
"Q Hp_ghost Hp Hvs Hs Hln'"
.
{
iModIntro
.
iNext
.
iExists
_
.
iFrame
"Hp"
.
iLeft
.
iFrame
.
iRight
.
iSplitL
"Hp_ghost"
;
first
by
iExists
_
.
destruct
(
proph_extract_winner
vs
)
eqn
:
Hvts
;
iFrame
.
}
{
iModIntro
.
iNext
.
iExists
_
.
iFrame
"Hp"
.
eauto
12
with
iFrame
.
}
(* close outer inv *)
iModIntro
.
iSplitR
"Token_a HQ Hn●"
.
{
by
eauto
12
with
iFrame
.
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment