summaryrefslogtreecommitdiff
path: root/Test/dafny0
Commit message (Collapse)AuthorAge
...
* | Change the induction heuristic for lemmas to also look in precondition for ↵Gravatar leino2015-08-12
|/ | | | | | clues about which parameters to include. As a result, improved many test cases (see, e.g., dafny4/NipkowKlein-chapter7.dfy!) and beautified some others.
* MergeGravatar Rustan Leino2015-07-31
|\
| * MergeGravatar leino2015-07-31
| |\
* | | Bug fix: check that assign-such-that constraint is of type booleanGravatar Rustan Leino2015-07-31
| |/ |/|
| * Allow forall statements in refinementsGravatar leino2015-07-31
| |
* | Add quotes in snapshot tests.Gravatar Clément Pit--Claudel2015-07-30
| | | | | | | | Thanks Valentin for elucidating this issue!
* | Fixed crash in resolution where, after reporting an error, the cases #type ↵Gravatar Rustan Leino2015-07-29
| | | | | | | | and #module were not handled
* | Clarify the inlining warning.Gravatar Clément Pit--Claudel2015-07-27
|/
* Fix: Read clauses should be checked before lit liftingGravatar Clément Pit--Claudel2015-07-23
| | | | | | | | | The function IgnoreFuel in UnfoldingPerformance.dfy used to be lit-wrapped. It shouldn't be, because its reads clause is non-empty. This is not a soundness bug, but fixing it improves performance in cases where a function call would be incorrectly unrolled. Test case written by Rustan.
* Fix: Unify column numbers in Dafny's errorsGravatar Clément Pit--Claudel2015-07-23
| | | | | | | | | Dafny counts from 0, but Boogie counts from 1. Tokens are 1-based. Thus when we print tokens, we need to decrement the column number. This was done for resolver errors, but not for verification or parsing errors. In addition, parsing errors were inconsistent with resolution errors case-wise. Unfortunately, the fix affects the output of many tests.
* Improved rank axioms for containersGravatar Rustan Leino2015-07-21
|
* MergeGravatar Clément Pit--Claudel2015-07-20
|\
| * clarified error message that occurs when the "opened" keyword is left off of ↵Gravatar Michael Lowell Roberts2015-07-20
| | | | | | | | a module import.
* | Split snapshot tests into separate files and add support for %S in runTests.pyGravatar Clément Pit--Claudel2015-07-20
|/
* Add missing .expect fileGravatar Clément Pit--Claudel2015-07-20
| | | | + a small fix in runTests.py
* Merge my autoTriggers work into the master branchGravatar Clément Pit--Claudel2015-07-17
|\ | | | | | | | | This contains trigger related things under the autoTriggers flag (disabled by default), and some bug-fixes and cleanups that are already enabled.
* | Enable autoTriggers in LitTriggers and SeqFromArrayGravatar Clément Pit--Claudel2015-07-17
| |
* | Add /autoTriggers to TriggerInPredicate's RUN specificationGravatar Clément Pit--Claudel2015-07-17
| |
| * Fixed bugs in the parsing of explicit type arguments.Gravatar Rustan Leino2015-07-16
| | | | | | | | | | Fixed resolution bug where some type arguments were not checked to have been determined. Fixed resolution bugs where checking for equality-supporting types was missing.
* | Minor fixes in .expect filesGravatar Clément Pit--Claudel2015-07-16
| |
* | Strip literals from triggersGravatar Clément Pit--Claudel2015-07-16
| |
* | Fix multiple tests that relied on z3 triggering on $BoxGravatar Clément Pit--Claudel2015-07-13
| | | | | | | | Found by enabling auto-generated triggers and looking for failing tests
| * Fixed crashes in overrides checking of function decreases clauses, and ↵Gravatar Rustan Leino2015-07-07
| | | | | | | | improved the error message reported to users
* | Add a new test, with a FIXMEGravatar Clément Pit--Claudel2015-07-06
| |
| * Report warnings only once. (This is the last step in fixing Issue #86.)Gravatar Rustan Leino2015-07-06
| |
| * Added command-line option /warnShadowing, which emits warnings if variables ↵Gravatar Rustan Leino2015-07-02
| | | | | | | | shadow other variables (Issue #86)
| * Type parameters in method/function signatures are no longer auto-declared. ↵Gravatar Rustan Leino2015-07-02
| | | | | | | | | | | | | | | | | | | | | | | | | | Although convenient and concise, the auto-declare behavior has on many occasions caused confusion when a type name has accidentally been mistyped (and Dafny had then accepted and auto-declared the name). Note, the behavior of filling in missing type parameters is still supported. This mode, although unusual (even original?) in languages, is different from the auto- declare behavior. For auto-declare, identifiers could be used in the program without having a declaration. For fill-in parameters, the implicitly declared type parameters remain anonymous.
| * Add the ability to specify how much "fuel" a function should have,Gravatar Bryan Parno2015-07-01
|/ | | | | | | | | | | | | | | | | | | i.e., how many times Z3 is permitted to unfold it's definition. The new {:fuel} annotation can be added to the function itself, it which case it will apply to all uses of that function, or it can overridden within the scope of a module, function, method, iterator, calc, forall, while, assert, or assume. The general format is: {:fuel functionName,lowFuel,highFuel} When applied as an annotation to the function itself, omit functionName. If highFuel is omitted, it defaults to lowFuel + 1. The default fuel setting for recursive functions is 1,2. Setting the fuel higher, say, to 3,4, will give more unfoldings, which may make some proofs go through with less programmer assistance (e.g., with fewer assert statements), but it may also increase verification time, so use it with care. Setting the fuel to 0,0 is similar to making the definition opaque, except when used with all literal arguments.
* MergeGravatar leino2015-06-25
|\
* | Removed unneeded :heapQuantifier from test case (rendinging this attribute ↵Gravatar leino2015-06-25
| | | | | | | | currently unused in the test suite)
| * Fix various bugs in nested match patterns listed in issue #83Gravatar qunyanm2015-06-19
|/
* Changed logical order of requires and reads clauses on functions. Reads clausesGravatar Rustan Leino2015-06-15
| | | | | can now assume the precondition (as had also been the case back in the days when reads clauses had to be self framing).
* Do postponsed reads checking also for the body of functions -- see ↵Gravatar Rustan Leino2015-06-15
| | | | | | Test/dafny0/Reads.dfy for benefits. (Unfortunately, this loses track of the "postcondition might not hold on this return path" locations, see Test/dafny0/FunctionSpecifications.dfy.)
* Some more reads testsGravatar Rustan Leino2015-06-15
|
* More reads testsGravatar Rustan Leino2015-06-15
|
* Postpone reads checks of function preconditions until after the entire ↵Gravatar leino2015-06-15
| | | | precondition has otherwise been checked for well-formedness
* More tests of reads-clause checkingGravatar Rustan Leino2015-06-15
|
* Combined some common routines into CheckWellformedAndAssume, which also ↵Gravatar leino2015-06-12
| | | | allows an improvement of the generated Boogie (which will be especially good soon, when reads-clause checking may change)
* Fix lit headers implicitly relying on bash-style constructsGravatar Clément Pit--Claudel2015-06-08
| | | | | Window's batch doesn't recognize ";" as a command separator; lit has a workaround for that, bu it's just as simple to do the right thing on our side.
* MergeGravatar leino2015-05-29
|\
| * Add an infinite set collection type.Gravatar qunyanm2015-05-29
| |
* | Improvements in traits test caseGravatar leino2015-05-29
|/
* Updated test output after change in Boogie.Gravatar wuestholz2015-05-17
|
* Allow MatchExpr and MatchStmt to have nested patterns. Such asGravatar qunyanm2015-05-14
| | | | | | | | | | | | | | | | | | function last<T>(xs: List<T>): T requires xs != Nil { match xs case Cons(y, Nil) => y case Cons(y, Cons(z, zs)) => last(Cons(z, zs)) } And function minus(x: Nat, y: Nat): Nat { match (x, y) case (Zero, _) => Zero case (Suc(_), Zero) => x case (Suc(a), Suc(b)) => minus(a, b) }
* Additional test case for inductive predicatesGravatar leino2015-05-07
|
* Added "inductive lemma" methodsGravatar leino2015-05-07
|
* Added inductive predicatesGravatar leino2015-05-06
|
* Fixed bug in tuplesGravatar leino2015-04-24
|
* Include axioms about $Is and $IsAlloc for traitsGravatar leino2015-04-07
|
* Support calls to static trait methods/functions via the classGravatar leino2015-04-07
|