-
Notifications
You must be signed in to change notification settings - Fork 256
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 SelfReference
- Loading branch information
Showing
21 changed files
with
2,020 additions
and
110 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,13 @@ | ||
Should succeed | ||
|
||
Dafny program verifier finished with 1 verified, 0 errors | ||
Should fail | ||
b.dfy(1,24): Error: assertion might not hold | ||
|
||
Dafny program verifier finished with 0 verified, 1 error | ||
Running with C# | ||
|
||
Dafny program verifier finished with 0 verified, 0 errors | ||
(42, 131) | ||
Running with Javascript | ||
|
||
Dafny program verifier finished with 0 verified, 0 errors | ||
(42, 131) | ||
Running with Java | ||
|
||
Dafny program verifier finished with 0 verified, 0 errors | ||
(42, 131) | ||
Running with Go | ||
|
||
Dafny program verifier finished with 0 verified, 0 errors | ||
(42, 131) | ||
Running with Python | ||
|
||
Dafny program verifier finished with 0 verified, 0 errors | ||
(42, 131) | ||
Building with C# | ||
|
||
Dafny program verifier finished with 0 verified, 0 errors | ||
(42, 131) | ||
Building with Javascript | ||
|
||
Dafny program verifier finished with 0 verified, 0 errors | ||
(42, 131) | ||
Building with Java | ||
|
||
Dafny program verifier finished with 0 verified, 0 errors | ||
(42, 131) | ||
Building with Go | ||
|
||
Dafny program verifier finished with 0 verified, 0 errors | ||
(42, 131) | ||
(42, 131) | ||
Building with Python | ||
|
||
Dafny program verifier finished with 0 verified, 0 errors | ||
(42, 131) | ||
Quicktest script succeeded |
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
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,24 @@ | ||
// RUN: ! %baredafny resolve --use-basename-for-filename "%s" > "%t" | ||
// RUN: %diff "%s.expect" "%t" | ||
|
||
datatype D = B | CCC | E { predicate IsFailure() { E? } function PropagateFailure(): D { E } } | ||
|
||
// Careful: some errors will prevent subsequent ones from begin reported | ||
|
||
method m2() returns (d: D) { | ||
var x := (var y, z :- D.E; 0); | ||
var x := (var y :- D.CCC, 0; 0); | ||
var x := (var y = D.CCC, 0; 0); | ||
var x := (var B() :| D.CCC; 0); | ||
var m := map x, y :: x+y; | ||
var n := ( z := 0 ); | ||
var s := seq<int,int>(1, _=>0); | ||
var s := seq<int>(1, 2); | ||
var s := seq<int>(1); | ||
var s := [1,2,3,]; | ||
} | ||
|
||
method m3() { | ||
var x := (var x := 0; 0); | ||
} | ||
|
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,10 @@ | ||
parse-errors.dfy(9,17): Error: ':-' can have at most one left-hand side | ||
parse-errors.dfy(10,26): Error: ':-' must have exactly one right-hand side | ||
parse-errors.dfy(11,18): Error: a variable in a let expression should be initialized using ':=', ':-', or ':|', not '=' | ||
parse-errors.dfy(12,16): Error: LHS of let-such-that expression must be variables, not general patterns | ||
parse-errors.dfy(13,25): Error: a map comprehension with more than one bound variable must have a term expression of the form 'Expr := Expr' | ||
parse-errors.dfy(14,13): Error: binding not allowed in parenthesized expression | ||
parse-errors.dfy(15,22): Error: seq type expects only one type argument | ||
parse-errors.dfy(17,21): Error: comma expected | ||
parse-errors.dfy(18,18): Error: invalid UnaryExpression | ||
9 parse errors detected in parse-errors.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,13 @@ | ||
// RUN: ! %baredafny resolve --use-basename-for-filename "%s" > "%t" | ||
// RUN: %diff "%s.expect" "%t" | ||
|
||
datatype D = D(z: int, 2: int) | ||
method m1(s: seq<int>) { | ||
var a := 1 ! ! 1; | ||
var a := 1 ! 1; | ||
} | ||
|
||
method m2() { | ||
assert true <== true ==> true ==> true <== true; | ||
assert 1 !! 1 != 1; | ||
} |
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,5 @@ | ||
parse-errors2.dfy(6,13): Error: invalid relational operator (perhaps you intended "!!" with no intervening whitespace?) | ||
parse-errors2.dfy(7,13): Error: invalid relational operator | ||
parse-errors2.dfy(11,23): Error: Ambiguous use of ==> and <==. Use parentheses to disambiguate. | ||
parse-errors2.dfy(12,16): Error: this operator cannot continue this chain | ||
4 parse errors detected in parse-errors2.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
Oops, something went wrong.