Skip to content
Snippets Groups Projects
Commit ddee7971 authored by Hai Dang's avatar Hai Dang
Browse files

add links to Miri in README

parent b0e86c8f
Branches
Tags
No related merge requests found
...@@ -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
...@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment