-
Notifications
You must be signed in to change notification settings - Fork 260
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into fix-predicate-parens
- Loading branch information
Showing
9 changed files
with
84 additions
and
8 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
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
27 changes: 27 additions & 0 deletions
27
Source/IntegrationTests/TestFiles/LitTests/LitTest/verification/filter-symbol.dfy
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// RUN: %verify --filter-symbol='blaergaerga' %s > %t | ||
// RUN: ! %verify --filter-symbol='P' %s >> %t | ||
// RUN: ! %verify --filter-symbol='Q' %s >> %t | ||
// RUN: ! %verify --filter-symbol='P.Q' %s >> %t | ||
// RUN: ! %verify --filter-symbol='Q.P' %s >> %t | ||
// RUN: ! %verify --filter-symbol='DT' %s >> %t | ||
// RUN: ! %verify --filter-symbol='R1' %s >> %t | ||
// RUN: %diff "%s.expect" "%t" | ||
|
||
module P { | ||
module Q { | ||
method A() ensures false {} | ||
} | ||
method B() ensures false {} | ||
} | ||
|
||
module Q { | ||
module P { | ||
method C() ensures false {} | ||
} | ||
method D() ensures false {} | ||
} | ||
|
||
method E() ensures false {} | ||
|
||
datatype DT = R1(x: nat := -1) | R2(y: nat := -1) | ||
|
33 changes: 33 additions & 0 deletions
33
Source/IntegrationTests/TestFiles/LitTests/LitTest/verification/filter-symbol.dfy.expect
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
|
||
Dafny program verifier finished with 0 verified, 0 errors | ||
filter-symbol.dfy(12,29): Error: a postcondition could not be proved on this return path | ||
filter-symbol.dfy(12,23): Related location: this is the postcondition that could not be proved | ||
filter-symbol.dfy(14,27): Error: a postcondition could not be proved on this return path | ||
filter-symbol.dfy(14,21): Related location: this is the postcondition that could not be proved | ||
filter-symbol.dfy(19,29): Error: a postcondition could not be proved on this return path | ||
filter-symbol.dfy(19,23): Related location: this is the postcondition that could not be proved | ||
|
||
Dafny program verifier finished with 0 verified, 3 errors | ||
filter-symbol.dfy(12,29): Error: a postcondition could not be proved on this return path | ||
filter-symbol.dfy(12,23): Related location: this is the postcondition that could not be proved | ||
filter-symbol.dfy(19,29): Error: a postcondition could not be proved on this return path | ||
filter-symbol.dfy(19,23): Related location: this is the postcondition that could not be proved | ||
filter-symbol.dfy(21,27): Error: a postcondition could not be proved on this return path | ||
filter-symbol.dfy(21,21): Related location: this is the postcondition that could not be proved | ||
|
||
Dafny program verifier finished with 0 verified, 3 errors | ||
filter-symbol.dfy(12,29): Error: a postcondition could not be proved on this return path | ||
filter-symbol.dfy(12,23): Related location: this is the postcondition that could not be proved | ||
|
||
Dafny program verifier finished with 0 verified, 1 error | ||
filter-symbol.dfy(19,29): Error: a postcondition could not be proved on this return path | ||
filter-symbol.dfy(19,23): Related location: this is the postcondition that could not be proved | ||
|
||
Dafny program verifier finished with 0 verified, 1 error | ||
filter-symbol.dfy(26,27): Error: value does not satisfy the subset constraints of 'nat' | ||
filter-symbol.dfy(26,46): Error: value does not satisfy the subset constraints of 'nat' | ||
|
||
Dafny program verifier finished with 0 verified, 2 errors | ||
filter-symbol.dfy(26,27): Error: value does not satisfy the subset constraints of 'nat' | ||
|
||
Dafny program verifier finished with 0 verified, 1 error |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
Add an option `--filter-position` to the `dafny verify` command, that allows verifying a single function or method, based on a file path and a line number. For example, `dafny verify dfyconfig.toml --filter-position=source1.dfy:5` will only verify thing that ranges over line 5 in the file `source1.dfy`. | ||
- Add an option `--filter-position` to the `dafny verify` command, that allows verifying a single function or method, based on a file path and a line number. For example, `dafny verify dfyconfig.toml --filter-position=source1.dfy:5` will only verify thing that ranges over line 5 in the file `source1.dfy`. | ||
- Add an option `--filter-symbol` to the `dafny verify` command, that only verifies symbols whose fully qualified contains the given argument. For example, `dafny verify dfyconfig.toml --filter-symbol=MyModule` will verify everything inside `MyModule`. |