Skip to content

Commit

Permalink
Merge pull request #12 from Dev-XYS/predicate-tag
Browse files Browse the repository at this point in the history
Change the label for subsection "Predicates"
  • Loading branch information
gauravpartha authored Feb 1, 2024
2 parents 57c7d0d + 85ef227 commit c31fd7a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tutorial/permissions.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Permissions {#permissions}

## Introduction
## Introduction {#perm-introduction}

Reasoning about the heap of a Viper program is governed by *field permissions*, which specify the heap locations that a statement, an expression or an assertion may access (read and/or modify).
Heap locations can be accessed only if the corresponding permission is *held* by the currently verified method. The simplest form of field permission is the *exclusive* permission to a heap location `x.f`; it expresses that the current method may read and write to the location, whereas other methods or threads are not allowed to access it in any way.
Expand Down
4 changes: 2 additions & 2 deletions tutorial/structure.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ method QSort(xs: Seq[Ref]) returns (ys: Seq[Ref])
* The postcondition is assumed after the method call (more precisely, it is [_inhaled_](#inhaling-and-exhaling))
* See the [permission section](#permissions) for more details and examples

### Functions
### Functions {#intro-functions}

```silver
function gte(x: Ref, a: Int): Int
Expand All @@ -67,7 +67,7 @@ function gte(x: Ref, a: Int): Int
* Unlike methods, function applications are not handled modularly (for functions with bodies): changing the body of a function affects client code
* See the [section on functions](#functions) for details

### Predicates
### Predicates {#intro-predicates}

```silver
predicate list(this: Ref) {
Expand Down

0 comments on commit c31fd7a

Please sign in to comment.