Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Stacked Borrows Coq
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor 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
FP
Stacked Borrows Coq
Commits
ddee7971
Commit
ddee7971
authored
5 years ago
by
Hai Dang
Browse files
Options
Downloads
Patches
Plain Diff
add links to Miri in README
parent
b0e86c8f
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.md
+15
-12
15 additions, 12 deletions
README.md
theories/lang/bor_semantics.v
+1
-0
1 addition, 0 deletions
theories/lang/bor_semantics.v
with
16 additions
and
12 deletions
README.md
+
15
−
12
View file @
ddee7971
...
@@ -90,18 +90,19 @@ The directory structure is as follows.
...
@@ -90,18 +90,19 @@ The directory structure is as follows.
[
lang/bor_semantics.v
](
theories/lang/bor_semantics.v
)
. The following table
[
lang/bor_semantics.v
](
theories/lang/bor_semantics.v
)
. The following table
matches the definitions in the technical [appendix] with the Coq definitions.
matches the definitions in the technical [appendix] with the Coq definitions.
| Definitions in [appendix] | Coq definitions in `bor_semantics.v` |
| Definitions in [appendix] | Coq definitions in `bor_semantics.v` | [Implementation] in Miri |
|--------------------------------|--------------------------------------|
|--------------------------------|--------------------------------------|--------------------------|
| `Grants` | `grants` |
| `Grants` | `grants` | Permission::grants |
| `FindGranting` | `find_granting` |
| `FindGranting` | `find_granting` | Stack::find_granting |
| `FindFirstWIncompat` | `find_first_write_incompatible` |
| `FindFirstWIncompat` | `find_first_write_incompatible` | Stack::find_first_write_incompaible |
| `MemRead` | `memory_read` |
| `Access` | `access1` | Stack::access |
| `MemWritten` | `memory_written` |
| `MemAccessed(_,_,AccessRead)` | `memory_read` | Stacks::memory_read |
| `Dealloc` | `dealloc1` |
| `MemAccessed(_,_,AccessWrite)` | `memory_written` | Stacks::memory_written |
| `MemDeallocated` | `memory_deallocated` |
| `Dealloc` | `dealloc1` | Stack::dealloc |
| `GrantTag` | `grant` |
| `MemDeallocated` | `memory_deallocated` | Stacks::memory_deallocated |
| `Reborrow` | `reborrow` |
| `GrantTag` | `grant` | Stack::grant |
| `Retag` | `retag` |
| `Reborrow` | `reborrow` | EvalContextPrivExt::reborrow |
| `Retag` | `retag` | EvalContextPrivExt::retag_reference |
-
The complete language is then combined in
[
lang/lang.v
](
theories/lang/lang.v
)
.
-
The complete language is then combined in
[
lang/lang.v
](
theories/lang/lang.v
)
.
...
@@ -161,3 +162,5 @@ The repository is BSD-licensed.
...
@@ -161,3 +162,5 @@ The repository is BSD-licensed.
The relevant commit hashes (used when generating the artifact) can be found
The relevant commit hashes (used when generating the artifact) can be found
in the file
[
generation_data.txt
](
generation_data.txt
)
.
in the file
[
generation_data.txt
](
generation_data.txt
)
.
[
Implementation
]:
https://github.com/rust-lang/miri/blob/8c09bfee2f44754bed46673517ba906f362d951e/src/stacked_borrows.rs
This diff is collapsed.
Click to expand it.
theories/lang/bor_semantics.v
+
1
−
0
View file @
ddee7971
...
@@ -36,6 +36,7 @@ Definition find_granting (stk: stack) (access: access_kind) (bor: tag) :
...
@@ -36,6 +36,7 @@ Definition find_granting (stk: stack) (access: access_kind) (bor: tag) :
Definition
is_active
(
cids
:
call_id_stack
)
(
c
:
call_id
)
:
bool
:=
Definition
is_active
(
cids
:
call_id_stack
)
(
c
:
call_id
)
:
bool
:=
bool_decide
(
c
∈
cids
).
bool_decide
(
c
∈
cids
).
(
*
FIXME
:
this
one
should
exclude
protectors
of
Disabled
items
*
)
Definition
is_active_protector
cids
(
it
:
item
)
:=
Definition
is_active_protector
cids
(
it
:
item
)
:=
match
it
.(
protector
)
with
match
it
.(
protector
)
with
|
Some
c
=>
Is_true
(
is_active
cids
c
)
|
Some
c
=>
Is_true
(
is_active
cids
c
)
...
...
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