-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
implement capybara-like mutation checking - [x] Add read-only capabilities `x.rd` - [x] Add `Mutable` and `SharedCapability` as subclasses of `Capability`. - [x] Add update methods. - [x] Implement access rules for `Mutable` types - exclusive if they can invoke an update method, read-only otherwise. - [x] Add `Fresh.Cap` as a family of new top-types that keep track of references that were widened to them - [x] Add a separation checker that checks that references hidden by a `Fresh.Cap` don't appear as aliases - [x] In applications - [x] In sequences of statements and definitions - [x] in the same type - [x] Introduce @consume annotation for parameters - [x] Check that hidden references that are parameters are annotated with `@consume` - [x] Check that parameter references passed in arguments to @consume parameters are also annotated with `@consume`. To be done in a separate PR: Add qualifiers to capture sets so that we can talk of the read-only part of a `Mutable` type.
- Loading branch information
Showing
156 changed files
with
4,075 additions
and
744 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.