-
Notifications
You must be signed in to change notification settings - Fork 271
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use full type declaration names in Boogie generation (#5030)
### Description Use full type declaration names in Boogie generation. Failing to do this was leading to spurious warnings about proofs due to contradictory assumptions. Fixes #5029 ### How has this been tested? `Source/IntegrationTests/TestFiles/LitTests/LitTest/git-issues/github-issue-5029.dfy` By submitting this pull request, I confirm that my contribution is made under the terms of the MIT license.
- Loading branch information
Showing
4 changed files
with
16 additions
and
2 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
11 changes: 11 additions & 0 deletions
11
Source/IntegrationTests/TestFiles/LitTests/LitTest/git-issues/github-issue-5029.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,11 @@ | ||
// RUN: %verify "%s" --warn-contradictory-assumptions | ||
abstract module Digit { | ||
function BASE(): nat | ||
ensures BASE() > 1 | ||
|
||
type digit = i: nat | 0 <= i < BASE() | ||
} | ||
|
||
module M refines Digit { | ||
function BASE(): nat { 32 } | ||
} |
1 change: 1 addition & 0 deletions
1
Source/IntegrationTests/TestFiles/LitTests/LitTest/git-issues/github-issue-5029.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 @@ | ||
Dafny program verifier finished with 4 verified, 0 errors |