Date 28/02/22
- Breaking change: As mentioned in the release notes for 2021.7, starting with the 2022.2 release, Viper will check injectivity of inhaled quantified permissions by default, instead of assuming it. In the previous release, this feature was enabled with the
--checkInjectivity
flag. It is now enabled by default and can instead by disabled with the--assumeInjectivityOnInhale
flag. This change makes the injectivity requirement consistent with other well-definedness conditions in Viper (such as ruling out potential division by zero).
- Added new option to report multiple errors per path, potentially allowing verification to continue beyond a failing pure condition (e.g. assert statement). The command-line argument
--numberOfErrorsToReport
(by default 1, 0 indicates all errors are to be reported) controls how many errors will be reported by the verifier before it stops. (Silicon#575) - Added new option to report branch conditions in errors using the command-line argument
--enableBranchconditionReporting
. When enabled, errors reported on the command line additionally show a list of conditions or their negations that were reached on the path to the error. (Silicon#575) - Fixed a memory leak (Silicon#579).
- When Z3 quantifier reporting is enabled (for example, by passing
--z3Args '"smt.qi.profile=true smt.qi.profile_freq=10000"'
to Silicon), its output is now recognised and printed in Silicon's output, to enable a quick check for likely matching loops. (Silicon#587) - Removed magic-wand-related heuristics described in ECOOP’15 (these were not generally enabled for standard Viper input files). (Silicon#589) Bug fixes. (Silicon#582, Silicon#583, Silicon#584)
- Check that predicate bodies are self-framing. (Carbon#397)
- Bug fixes. (Carbon#398)
- CI workflows for Viper tools migrated to GitHub actions.
- Silver AST can now represent all SMT-LIB bitvector functions, although these are not yet supported in the language. (Silver#537)
- Impure assumes rewriter fix. (Silver#553)
- Viper IDE cache can be stored to a file. (ViperServer#44)
- Position information fix. (Silver#555)
Date 27/07/21 Download
- Breaking change: Inhaling possibly-negative permission amounts now leads to a verification failure, whereas in previous releases it led to an inconsistent state (Silver, 522). For example,
inhale acc(x.f, e)
for some permission expressione
will now cause a failure ife
is not known to be non-negative, rather than implicitly assuming this property. - Planned future breaking change: Currently, Viper checks the injectivity of the receiver expression when exhaling quantified permissions, but not when inhaling quantified permissions (when this property is currently assumed). We plan to change this in the January 2022 release, that is Viper will also check injectivity is known when inhaling quantified permissions. Since this is an important breaking change, we have provided access to it in this release but only if the
--checkInjectivity
flag is provided. This flag will be removed in the next release, and the corresponding injectivity checks will be enabled by default.
- Added new option for displaying counterexamples using the
--counterexample mapped
command-line argument. This option produces pretty-printed counterexamples with heap chunks resolved to their contained fields. - Added a new option for selecting different state consolidation modes affecting how complete, and thus expensive, a state consolidation is [experimental]
- Added scope-based logging of symbolic execution details (PR #562)
- Fixed labelled old expressions that potentially refer to labels that have not yet been defined (Carbon, PR 387)
- Added support for loops formed via gotos (Carbon, PR 389)
- Minor bug fixes (382, 386)
-
Compatibility with latest versions of Silicon and Carbon incl. latest Viper features (e.g.
Map
types and anonymous axioms). -
Mono is no longer a requirement.
-
The JAVA installation has to be version 11 or higher and must be 64-bit.
-
The IDE now shows non-critical warning messages.
-
Build version of Viper Tools (i.e. the dependencies) can be configured in the VSCode settings:
Stable
/Nightly
: the latest Viper Tools in the corresponding build configuration will be used. The Preferences specify from which URL the Viper Tools will be downloaded. The Viper Tools are not automatically updated. They only get installed when they are not present yet or when a manual update is triggered (via the command palette). The installation folder has changed for these two build versions: They always get installed to<VSCode Installation>/User/globalStorage/viper-admin.viper
where<VSCode Installation>
corresponds to~/Library/Application Support/Code
(on macOS),c:\Users\<user>\AppData\Roaming\Code
(on Windows), and~/.config/Code
(on Linux).Local
: uses the Viper Tools located at the path specified asviperSettings.paths.viperToolsPath
.
-
Locating the JAVA installation has been improved. A warning appears if it cannot be uniquely identified. A fixed path to a Java installation can be provided in the settings as
viperSettings.javaSettings.javaBinary
(more details). -
Sound effects for a successful or failed verification can be enabled by setting
viperSettings.preferences.enableSoundEffects
to true. -
Minor bug fixes (#23)
Date 15/02/21 Download
- Basic support for partial maps. The associated keywords domain and range are experimental. Please report any observed incompletenesses w.r.t. map reasoning.
- Optimized parser for large Viper files (Silver, 477).
- Breaking change: New Scala (2.13.4) and fastparse version.
- Breaking change: The constructor of DomainFuncApp now requires that the function's return type is passed as for standard function applications (and not using call-by-name as before) (Silver, 490).
- Due to the deprecation of the Traversable trait, the Node class now extends the Iterable trait instead. The interface is similar, but the implementation of some methods like find and exists is less efficient because it internally creates a collection with all the elements on which to iterate over (Silver, 493 and Silver, 497).
- New backend support for SMTLib types on the AST-level (particularly bitvectors and floats) (Silver, 428).
- Magic wands used inside predicate definitions of function preconditions generate errors (these usages were never fully supported, but a clear error wasn’t shown). We hope to add support for these cases in future.
-
- Several minor bugfixes.
- Two permission-related incompleteness fixed: (Silicon, 512) and (Silicon, 508).
- Command-line option for avoiding creation of a local temp directory (Silicon, 15).
-
Verification Condition Generation Verifier
- Boogie upgrade: Boogie is now built with .NET Core and is shipped with all dependencies. As a result, Mono is not required anymore for Boogie on Linux.
- Minor fixes
- Boogie AST changed to support unnamed parameters in domain functions (Carbon, 363).
- Fix negative fraction check in quantified permissions (Carbon, 362).
-
The Viper IDE (VSCode extension) cannot yet use the new Boogie version, and thus will continue to use the 2020.7 release.
-
Viper performs worse with Z3 4.8.9 than with 4.8.6, thus we recommend the use of Z3 4.8.6.
Date 17/07/20 Download
Our repositories are now on GitHub: github.com/viperproject
- Axiom names are now optional (Silver, 193).
For example, we now allow domains such as:
domain MyDomain { function foo(): Int axiom { foo() > 2 } axiom upperlimit { foo() < 8 } }
- Experimental support for termination checks tutorial section about termination.
- This extension provides support for specifying termination measures for heap-dependent functions and using them to prove termination.
- There is also support for proving termination of methods and loops, but those are still experimental and support for these features as well as the semantics of the specifications might change.
- Details are explained in the Viper tutorial.
- Experimental support for counter examples:
- Added the command line option
--counterexample
. When using either backend with--counterexamples=variables
, it will return, along with each verification error, a counter example for the values of all local variables (but not the heap or functions) on the Viper level. Alternatively, using the option--counterexample=native
will return a backend-specific counter example along with each error that contains the entire model exactly as returned by the SMT solver, i.e., including any renaming and encoding the backends may have performed.
- Added the command line option
- 64-bit Z3 is now shipped with the Windows distribution (the 32-bit version which was inadvertently still being shipped can cause memory issues for some examples) (Silicon, 375)
- Intermittent Failures on Viper Online (web interface) should no longer happen (but for now we only support the default backend) (Silver, 264)
- Reserved words are declared in only one place in the codebase (Silver, 301)
- The phases used to organise programmatically calling verifiers (frontends, in the codebase) have been made more consistent and flexible (Silver, 270)
- Several examples which had long runtimes are now apparently stable (but we would appreciate any feedback to the contrary!). e.g. (Silver, 457)
- The
DomainAxiom
AST node no longer exists, it was replaced by:NamedDomainAxiom
, providing exactly the same features asDomainAxiom
.AnonymousDomainAxiom
, which is similar to the node above except for the absence of thename
parameter.
-
- More-complete aliasing properties can be deduced in programs using quantified permissions (Silicon, 502)
- Potential crash removed when using quantifiers and unfolding expressions in a function body (Silicon, 491)
-
Verification Condition Generation Verifier
- Axioms used for sequence operations should be more complete (especially for cases such as dropping more elements than a sequence has) (Carbon, 36)
- Sequence contains function now works in triggers (Carbon, 349)
- Carbon should now kill child Boogie and Z3 processes eagerly on stop(); this behaviour may be setup-dependent so please report any outstanding issues (Carbon, 225)
- Predicates whose parameters include bound variables (e.g. from outer-quantifiers) now work in function specifications (Carbon, 271)
- Work in progress on correct handling of perm-expressions inside unfolding expressions / quantifiers: some issues have been fixed; a summary of the current status is provided (Carbon, 348)
Date 31/01/20 Download
-
Support for variable scopes. For example, now it is possible to define two variables with the same name in different branches:
if (b) { var x: Int := 5; } else { var x: Bool := true; }
-
Added support for using field lookups and predicates as triggers, e.g.
forall r: Ref :: {r.f} r in s ==> r.f > 0 forall r: Ref :: {P(r)} r in s ==> (unfolding P(r) in r.f > 0)
Note: this support still has some issues in Viper's VCG-based verifier.
-
Added support for trigger annotations on existential quantifiers. These are written and behave analogously to those already supported on forall quantifiers, and are relevant in the logically dual cases, typically when proving an existentially-quantified assertion (189).
-
Extended support for Viper plugins (designed to make lightweight Viper front-end tools simple to write). In particular, extending the grammar of the parser via plugins is now possible.
-
Removed the experimental built-in function termination checking. An experimental termination plugin is available: https://bitbucket.org/viperproject/termination-plugin/ Feedback is welcome; we plan support for termination checking in the next release.
-
Renamed all example files from .sil to .vpr (287).
-
The unary plus operator has been removed (108).
-
Whitespace between unary operations and their operands is no-longer allowed (272).
-
The
fresh
statement was removed (87). -
Macros can now take field names as parameters (170).
-
LHS of field assignment statements can now be a macro invocation (214).
-
Warnings are now generated for unused macro parameters (267).
-
Macro definitions are disallowed inside magic wand proof scripts (215).
- Conditional assertions as part of quantified permissions are properly supported, e.g.
inhale forall j : Int :: (j == k ? acc(s.f) : true)
(260). - Expression macros with missing bodies no-longer cause spurious parser errors (for next construct) (273).
new(..)
parameterised by identifiers which are present in the program but are not field names now produces an appropriate error message (247).- Type checker no longer crashes on ASTs with sharing (191).
- Macro names are now checked for clashes (167).
- The AST utility method
Expressions.instantiateVariables
is now capture-avoiding (an additional parameter can be provided to exclude certain names from being chosen when renaming bound variables) (286). - Eliminated spurious type error involving #E type when using empty Multisets via macros (282).
- AST transformation framework's Rewritable is no-longer limited w.r.t. collections of Rewritables (225).
LocalVar
AST node no longer has type as an optional field (281).Result
AST node no longer has type in its second parameter list (283).Call
trait,FuncApp
andDomainFuncApp
AST nodes no longer have aformalArgs
field; this information can be obtained from the enclosingProgram
(241).- Upgraded all dependencies, libraries, plugins and development environment:
- SBT 1.2.6, rewriting all build files.
- Scala 2.12.7
- fastparse 1.0.0
- ScalaTest 3.0.5.
- scallop 3.1.3.
- jgrapht-core 1.2.0.
- scala-parser-combinators 1.1.1.
- commons-io 2.6.
- guava 26.0.
- slf4j-api 1.7.25.
- logback-classic 1.2.3.
- scala-logging 3.9.0
- sbt-assembly 0.14.7
- sbteclipse-plugin 5.2.4.
- Symbolic Execution Verifier
- Implemented an experimental feature that allows using the quantified
permissions based handling of permissions for all permissions. This
handling of permissions is expected to be more complete and may be faster;
however, the implementation is still in beta state. The feature can be
enabled with the
--enableMoreCompleteExhale
flag. - (API) Uses logback library instead of log4j for logging.
- (API) Changed how the verifier reports errors: introduced a reporter class that is responsible for reporting errors to the user (before errors were reported via logging). Verification results of a particular method are reported via the reporter as soon as they become available without waiting for all methods to be verified.
- Implemented an experimental feature that allows using the quantified
permissions based handling of permissions for all permissions. This
handling of permissions is expected to be more complete and may be faster;
however, the implementation is still in beta state. The feature can be
enabled with the
- Verification Condition Generation Verifier
- Quantified permissions with multiple forall-bound variables are now supported (205).
- Experimental adjustments to the background axioms used for set, sequence and multiset support. These should mostly add completeness; fewer scenarios should require user assertions to verify. Please report any bugs observed (particularly examples which exhibit poorer performance). In the next release, this will be stabilised, and migrated analogously to Viper's Symbolic Execution back-end.
- Old expressions in triggers are now translated correctly (236).
- Substitution of actuals for formals in method specifications, predicate unfoldings and function preconditions is now capture-avoiding (262), (282).
- Quantified predicates without arguments no-longer cause a crash (279).
- We observed that 'Out of memory' errors can occur for some larger examples if using a 32-bit (rather than 64-bit) version of Z3 (286). We recommend always using a 64-bit version.