-
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.
- Loading branch information
1 parent
8f1311c
commit 8b349be
Showing
2 changed files
with
18 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// RUN: %exits-with 4 %baredafny verify %args "%s" > "%t" | ||
// RUN: %diff "%s.expect" "%t" | ||
|
||
predicate P1(a: int) | ||
predicate P2(a: int) | ||
|
||
predicate Q(s: seq<int>) { | ||
forall i | 0 <= i < |s| :: | ||
(P1(s[i]) || false) && (P2(s[i]) || false) // Line 6 | ||
} | ||
|
||
method M(s: seq<int>) | ||
requires forall i | 0 <= i < |s| :: P1(s[i]) | ||
// requires forall i | 0 <= i < |s| :: P2(s[i]) | ||
ensures Q(s) | ||
{} |
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,2 @@ | ||
|
||
Dafny program verifier finished with TODO verified, TODO errors |