Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Iris
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
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
Ike Mulder
Iris
Commits
dabe846c
Commit
dabe846c
authored
9 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
Load should bind more strongly than app.
parent
448a8b62
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
barrier/client.v
+7
-4
7 additions, 4 deletions
barrier/client.v
heap_lang/notation.v
+2
-2
2 additions, 2 deletions
heap_lang/notation.v
with
9 additions
and
6 deletions
barrier/client.v
+
7
−
4
View file @
dabe846c
...
...
@@ -2,10 +2,13 @@ From barrier Require Import proof.
From
program_logic
Require
Import
auth
sts
saved_prop
hoare
ownership
.
Import
uPred
.
Definition
worker
(
n
:
Z
)
:=
(
λ
:
"b"
"y"
,
wait
"b"
;;
(
!
"y"
)
'
n
)
%
L
.
Definition
client
:=
(
let
:
"y"
:=
ref
'
0
in
let
:
"b"
:=
newbarrier
'
()
in
Fork
(
Fork
(
worker
12
"b"
"y"
)
;;
worker
17
"b"
"y"
)
;;
"y"
<-
(
λ
:
"z"
,
"z"
+
'
42
)
;;
signal
"b"
)
%
L
.
Definition
worker
(
n
:
Z
)
:
val
:=
λ
:
"b"
"y"
,
wait
"b"
;;
!
"y"
'
n
.
Definition
client
:
expr
:=
let
:
"y"
:=
ref
'
0
in
let
:
"b"
:=
newbarrier
'
()
in
Fork
(
Fork
(
worker
12
"b"
"y"
)
;;
worker
17
"b"
"y"
)
;;
"y"
<-
(
λ
:
"z"
,
"z"
+
'
42
)
;;
signal
"b"
.
Section
client
.
Context
{
Σ
:
iFunctorG
}
`{
!
heapG
Σ
,
!
barrierG
Σ
}
(
heapN
N
:
namespace
)
.
...
...
This diff is collapsed.
Click to expand it.
heap_lang/notation.v
+
2
−
2
View file @
dabe846c
...
...
@@ -24,14 +24,14 @@ Coercion of_val : val >-> expr.
are not put in any scope so as to avoid lots of annoying %L scopes while
pretty printing. *)
Notation
"( e1 , e2 , .. , en )"
:=
(
Pair
.
.
(
Pair
e1
e2
)
.
.
en
)
:
lang_scope
.
Notation
"' l"
:=
(
Lit
l
%
Z
)
(
at
level
8
,
format
"' l"
)
.
Notation
"'match:' e0 'with' 'InjL' x1 => e1 | 'InjR' x2 => e2 'end'"
:=
(
Case
e0
x1
e1
x2
e2
)
(
e0
,
x1
,
e1
,
x2
,
e2
at
level
200
)
:
lang_scope
.
Notation
"' l"
:=
(
Lit
l
%
Z
)
(
at
level
8
,
format
"' l"
)
.
Notation
"' l"
:=
(
LitV
l
%
Z
)
(
at
level
8
,
format
"' l"
)
.
Notation
"'()"
:=
(
Lit
LitUnit
)
(
at
level
0
)
.
Notation
"'()"
:=
(
LitV
LitUnit
)
(
at
level
0
)
.
Notation
"! e"
:=
(
Load
e
%
L
)
(
at
level
10
,
right
associativity
)
:
lang_scope
.
Notation
"! e"
:=
(
Load
e
%
L
)
(
at
level
9
,
right
associativity
)
:
lang_scope
.
Notation
"'ref' e"
:=
(
Alloc
e
%
L
)
(
at
level
30
,
right
associativity
)
:
lang_scope
.
Notation
"- e"
:=
(
UnOp
MinusUnOp
e
%
L
)
...
...
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