-
Notifications
You must be signed in to change notification settings - Fork 262
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Enable isolating all return statements #5917
Merged
keyboardDrummer
merged 6 commits into
dafny-lang:master
from
keyboardDrummer:isolateAllReturns
Nov 15, 2024
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
bd929ba
Enable isolating all return statements
keyboardDrummer 18543e8
Improve messaging and update tests
keyboardDrummer 2efe36b
Merge branch 'master' into isolateAllReturns
keyboardDrummer a0e423b
Add release note
keyboardDrummer f4f6dbb
Merge branch 'isolateAllReturns' of github.com:keyboardDrummer/dafny …
keyboardDrummer e07c01b
update customboogie.patch
keyboardDrummer File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
6 changes: 3 additions & 3 deletions
6
...rationTests/TestFiles/LitTests/LitTest/verification/outOfResourceAndIsolateAssertions.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
14 changes: 10 additions & 4 deletions
14
...ationTests/TestFiles/LitTests/LitTest/verification/proofDivision/isolateAllAssertions.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
12 changes: 9 additions & 3 deletions
12
...sts/TestFiles/LitTests/LitTest/verification/proofDivision/isolateAllAssertions.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 |
---|---|---|
@@ -1,7 +1,13 @@ | ||
Verified 0/2 symbols. Waiting for Foo to verify. | ||
Verified 1/2 of Foo: assertion at line 9 - verified successfully <redacted> | ||
Verified 2/2 of Foo: assertion at line 10 - verified successfully <redacted> | ||
Verified 1/6 of Foo: assertion at line 10 - verified successfully <redacted> | ||
Verified 2/6 of Foo: assertion at line 11 - verified successfully <redacted> | ||
Verified 3/6 of Foo: return at line 15, assertion at line 7 - verified successfully <redacted> | ||
Verified 4/6 of Foo: return at line 15, assertion at line 8 - could not be verified <redacted> | ||
Verified 5/6 of Foo: return at line 13, assertion at line 7 - verified successfully <redacted> | ||
Verified 6/6 of Foo: return at line 13, assertion at line 8 - verified successfully <redacted> | ||
isolateAllAssertions.dfy(15,4): Error: a postcondition could not be proved on this return path | ||
isolateAllAssertions.dfy(8,12): Related location: this is the postcondition that could not be proved | ||
Verified 1/2 symbols. Waiting for Bar to verify. | ||
Verified 1/1 of Bar: entire body - verified successfully <redacted> | ||
|
||
Dafny program verifier finished with 3 verified, 0 errors | ||
Dafny program verifier finished with 6 verified, 1 error |
2 changes: 1 addition & 1 deletion
2
Source/IntegrationTests/TestFiles/LitTests/LitTest/vstte2012/BreadthFirstSearch.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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
|
||
Dafny program verifier finished with 142 verified, 0 errors | ||
Dafny program verifier finished with 148 verified, 0 errors |
2 changes: 1 addition & 1 deletion
2
Source/IntegrationTests/TestFiles/LitTests/LitTest/vstte2012/Tree.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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
|
||
Dafny program verifier finished with 55 verified, 0 errors | ||
Dafny program verifier finished with 67 verified, 0 errors |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
When using `--isolate-assertions` or `{:isolate_assertions}`, a separate assertion batch will be generated per pair of return statement and ensures clause. |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice clarity on what's being verified!