Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
examples_rdcss_old
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Gaurav Parthasarathy
examples_rdcss_old
Commits
14821493
Commit
14821493
authored
Mar 06, 2019
by
Daniel Gratzer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Restore comments
parent
9f47522f
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
0 deletions
+8
-0
theories/concurrent_stacks/concurrent_stack1.v
theories/concurrent_stacks/concurrent_stack1.v
+2
-0
theories/concurrent_stacks/concurrent_stack2.v
theories/concurrent_stacks/concurrent_stack2.v
+2
-0
theories/concurrent_stacks/concurrent_stack3.v
theories/concurrent_stacks/concurrent_stack3.v
+2
-0
theories/concurrent_stacks/concurrent_stack4.v
theories/concurrent_stacks/concurrent_stack4.v
+2
-0
No files found.
theories/concurrent_stacks/concurrent_stack1.v
View file @
14821493
...
...
@@ -4,6 +4,8 @@ From iris.heap_lang Require Import notation proofmode.
From
iris_examples
.
concurrent_stacks
Require
Import
specs
.
Set
Default
Proof
Using
"Type"
.
(** Stack 1: No helping, bag spec. *)
Definition
new_stack
:
val
:
=
λ
:
"_"
,
ref
NONEV
.
Definition
push
:
val
:
=
rec
:
"push"
"s"
"v"
:
=
...
...
theories/concurrent_stacks/concurrent_stack2.v
View file @
14821493
...
...
@@ -5,6 +5,8 @@ From iris.program_logic Require Export weakestpre.
From
iris_examples
.
concurrent_stacks
Require
Import
specs
.
Set
Default
Proof
Using
"Type"
.
(** Stack 2: Helping, bag spec. *)
Definition
mk_offer
:
val
:
=
λ
:
"v"
,
(
"v"
,
ref
#
0
).
Definition
revoke_offer
:
val
:
=
...
...
theories/concurrent_stacks/concurrent_stack3.v
View file @
14821493
...
...
@@ -3,6 +3,8 @@ From iris.heap_lang Require Export lang proofmode notation.
From
iris_examples
.
concurrent_stacks
Require
Import
specs
.
Set
Default
Proof
Using
"Type"
.
(** Stack 3: No helping, CAP spec. *)
Definition
mk_stack
:
val
:
=
λ
:
"_"
,
ref
NONEV
.
Definition
push
:
val
:
=
rec
:
"push"
"s"
"v"
:
=
...
...
theories/concurrent_stacks/concurrent_stack4.v
View file @
14821493
...
...
@@ -3,6 +3,8 @@ From iris.heap_lang Require Export lang proofmode notation.
From
iris
.
algebra
Require
Import
excl
.
From
iris_examples
.
concurrent_stacks
Require
Import
specs
.
(** Stack 4: Helping, CAP spec. *)
Definition
mk_offer
:
val
:
=
λ
:
"v"
,
(
"v"
,
ref
#
0
).
Definition
revoke_offer
:
val
:
=
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment