Skip to content

Releases: dafny-lang/dafny

Dafny 3.8.1

01 Sep 15:21
65ae35b
Compare
Choose a tag to compare
  • feat: Support for the {:opaque} attibute on const (#2545)
  • feat: Support for plugin-based code actions on the IDE (#2021)
  • fix: Fixed a crash when parsing newtype in the parser (#2649)
  • fix: Added missing error reporting position on string prefix check (#2652)
  • fix: Prevent LSP server from exiting when a crash occurs (#2664)
  • fix: Fix bug where LSP server would not show diagnostics that referred to included files (#2664)
  • fix: Check all compiled expressions to be compilable (#2641)
  • fix: Better messages on hovering failing postconditions in IDE (#2654)
  • fix: Better error reporting on counter-examples if an option is not provided (#2650)

Dafny 3.8.0

23 Aug 21:27
b0a18bb
Compare
Choose a tag to compare
  • fix: Use the right bitvector comparison in decrease checks
    (#2512)
  • fix: Don't use native division and modulo operators for non-native int-based newtypes in Java and C#.
    (#2416)
  • feat: Dafny now supports disjunctive (“or”) patterns in match statements and expressions. Cases are separated by | characters. Disjunctive patterns may not appear within other patterns and may not bind variables.
    (#2448)
  • feat: The Dafny Language Server used by the VSCode IDE extension is now available as a NuGet package called DafnyLanguageServer (#2600)
  • fix: Counterexamples - fix an integer parsing bug and correctly extract datatype and field names (#2461)
  • feat: New option -diagnosticsFormat:json to print Dafny error messages as JSON objects (one per line).
    (#2363)
  • fix: No more exceptions when hovering over variables without type, and types of local variabled kept under match statements (#2437)
  • fix: Check extreme predicates and constants in all types, not just classes
    (#2515)
  • fix: Correctly substitute type variables in override checks
    (#2522)
  • feat: predicate P(x: int): (y: bool) ... is now valid syntax (#2454)
  • fix: Improve the performance of proofs involving bit vector shifts (#2520)
  • fix: Perform well-definedness checks for ensures clauses of forall statements (#2606)

Dafny 3.7.3

19 Jul 22:18
bb24aee
Compare
Choose a tag to compare
  • feat: Less code navigation when verifying code: In the IDE, failing postconditions and preconditions error messages now immediately display the sub-conditions that Dafny could not prove. Both on hover and in the Problems window. (#2434)
  • feat: Whitespaces and comments are kept in relevant parts of the AST (#1801)
  • fix: NuGet packages no longer depend on specific patch releases of the .NET frameworks.

Dafny 3.7.2

13 Jul 23:38
72b5f69
Compare
Choose a tag to compare
  • fix: Hovering over variables and methods inside cases of nested match statements work again. (#2334)
  • fix: Fix bug in translation of two-state predicates with heap labels. (#2300)
  • fix: Check that arguments of 'unchanged' satisfy enclosing reads clause. (#2302)
  • fix: Underconstrained closures don't crash Dafny anymore. (#2382)
  • fix: Caching in the language server does not prevent gutter icons from being updated correctly. (#2312)
  • fix: Last edited verified first & corrected display of verification status. (#2352)
  • fix: Correctly infer type of numeric arguments, where the type is a subset type of a newtype. (#2314)
  • fix: Fix concurrency bug that sometimes led to an exception during the production of verification logs. (#2398)

Dafny 3.7.1

21 Jun 21:57
41e2d16
Compare
Choose a tag to compare

fix: The Dafny runtime library for C# is now compatible with .NET Standard 2.1, as it was before 3.7.0. Its version has been updated to 1.2.0 to reflect this. (#2277)

Dafny 3.7.0

21 Jun 00:25
ff6902a
Compare
Choose a tag to compare
  • feat: The Dafny CLI, Dafny as a library, and the C# runtime are now available on NuGet. You can install the CLI with dotnet tool install --global Dafny. The library is available as DafnyPipeline and the runtime is available as DafnyRuntime. (#2051)
  • feat: New syntax for quantified variables, allowing per-variable domains (x <- C) and ranges (x | P(x), y | Q(x, y)). See the quantifier domain section of the Reference Manual. (#2195)
  • feat: The IDE will show verification errors for a method immediately after that method has been verified, instead of after all methods are verified. (#2142)
  • feat: Added "Resolving..." message for IDE extensions (#2234)
  • feat: Live verification diagnostics for the language server (#1942)
  • fix: Correctly specify the type of the receiver parameter when translating tail-recursive member functions to C# (#2205)
  • fix: Added support for type parameters in automatically generated tests (#2227)
  • fix: No more display of previous obsolete verification diagnostics if newer are available (#2142)
  • fix: Prevent the language server from crashing and not responding on resolution or ghost diagnostics errors (#2080)
  • fix: Various improvements to language server robustness (#2254)

Dafny 3.6.0

11 May 21:38
Compare
Choose a tag to compare
  • feat: Dafny now has partial support for compiling programs to Python (#1871, #1886, #1891, #1928, #1973, #1979, #2031, #2081)
  • feat: The synthesize attribute on methods with no body allows synthesizing objects based on method postconditions at compile time (currently only available for C#). See Section 22.2.20 of the Reference Manual. (#1809)
  • feat: The /verificationLogger:text option now prints all verification results in a human-readable form, including a description of each assertion in the program.
  • feat: The /randomSeedIterations:<n> option (from Boogie) now tries to prove each verification condition n times with a different random seed each time, to help efficiently and conveniently measure the stability of verification. (boogie-org/boogie#567)
  • feat: The new /runAllTests can be used to execute all methods with the {:test} attribute, without depending on a testing framework in the target language.
  • feat: Recognize !in operator when looking for compilable comprehensions (#1939)
  • feat: The Dafny language server now returns expressions ranges instead of token ranges to better report errors (#1985)
  • fix: Miscompilation due to incorrect parenthesization in C# output for casts. (#1908)
  • fix: Populate TestResult.ResourceCount in /verificationLogger:csv output correctly when verification condition splitting occurs (e.g. when using /vcsSplitOnEveryAssert).
  • fix: DafnyOptions.Compiler was null, preventing instantiation of ModuleExportDecl (#1933)
  • fix: /showSnippets crashes Dafny's legacy server (#1970)
  • fix: Don't check for name collisions in modules that are not compiled (#1998)
  • fix: Allow datatype update expressions for constructors with nameonly parameters (#1949)
  • fix: Fix malformed Java code generated for comprehensions that use maps (#1939)
  • fix: Comprehensions with nested subset types fully supported, subtype is correctly checked (#1997)
  • fix: Fix induction hypothesis generated for lemmas with a receiver parameter (#2002)
  • fix: Make verifier understand (!new) (#1935)
  • feat: Some command-line options can now be applied to individual modules, using the {:options} attribute. (#2073)
  • fix: Missing subset type check in datatype updates (#2059)
  • fix: Fix initialization of non-auto-init in-parameters in C#/JavaScript/Go compilers (#1935)
  • fix: Resolution of static functions-by-method (#2023)
  • fix: Export sets did not work with inner modules (#2025)
  • fix: Prevent refinements from changing datatype and newtype definitions (#2038)
  • feat: The new older modifier on arguments to predicates indicates that a predicate ensures the allocatedness of some of its arguments. This allows more functions to show that their quantifiers do not depend on the allocation state. For more information, see the reference manual section on older. (#1936)
  • fix: Fix (!new) checks (#1419)
  • fix: multiset keyword no longer crashes the parser (#2079)

Dafny 3.5.0

14 Mar 22:18
8204cd1
Compare
Choose a tag to compare
  • feat: continue statements. Like Dafny's break statements, these come in two forms: one that uses a label to name the continue target and one that specifies the continue target by nesting level. See section 19.2 of the Reference Manual. (#1839)
  • feat: The keyword syntax for functions will change in Dafny version 4. The new command-line option /functionSyntax (see /help) allows early adoption of the new syntax. (#1832)
  • feat: Attribute {:print} declares that a method may have print effects. Print effects are enforced only with /trackPrintEffects:1.
  • feat: Add support for non-interactive solvers that need all SMT-Lib input in one batch (enabled with /proverOpt:BATCH_MODE=true). Inherited from Boogie 2.13 (boogie-org/boogie#512).
  • fix: Allow /verificationLogger and /vcsCores to be usable together. Inherited from Boogie 2.13 (boogie-org/boogie#515).
  • fix: Plug two memory leaks in Dafny's verification server. (#1858, #1863)
  • fix: No warning "File contains no code" if a file only contains a submodule (#1840)
  • fix: Stuck in verifying in VSCode - support for verification cancellation (#1771)
  • fix: export-reveals of function-by-method now allows the function body to be ghost (#1855)
  • fix: Regain C# 7.3 compatibility of the compiled code. (#1877)
  • fix: The error "assertion violation" is replaced by the better wording "assertion might not hold". This indicates better that the verifier is unable to prove the assertion. (#1862)

Dafny 3.4.2

21 Feb 13:13
de57586
Compare
Choose a tag to compare
  • fix: No output when compiling to JavaScript on Windows (#1824)
  • fix: CanCall assumptions for loop invariants (#1813)
  • fix: Behavior of the C# runtime in a concurrent setting (#1780)

Dafny 3.4.1

15 Feb 10:37
dc410d6
Compare
Choose a tag to compare
  • feat: Plugin support in the resolution pipeline (#1739)
  • fix: NullPointerException in the AST (#1805)
  • fix: Change datatype deconstruction in match statements for C# (#1815)