VerCors Verification Toolset
This repository hosts VerCors, a toolset for the verification of concurrent and parallel programs. VerCors aims to verify many different concurrency constructs, including: heterogeneous concurrency (Java and C), GPU kernels using barriers and atomics (OpenCL), and compiler directives as used in deterministic parallelism (OpenMP). VerCors is able to prove data-race freedom, memory safety, and functional correctness of (concurrent) programs written in Java, C, OpenCL, OpenMP, and PVL (Prototypal Verification Language, a procedural toy language for prototyping new verification features). Moreover, VerCors is designed to be language-independent, which makes adding new front-end languages a straightforward engineering effort.
A list of verified examples and case studies is maintained online and can be found here. This webpage also contains an online interface for VerCors and allows to try VerCors online.
The VerCors toolset can be installed and used on MacOS X, Linux, and Windows (via Cygwin). When using Windows make sure that the environment variable
JAVA_HOME is configured. A basic installation requires:
- Oracle Java Development Kit (JDK), version 8 (the current version of VerCors does not work with Java 9!)
- Git (on Windows you need Git Bash, see https://git-scm.com/downloads)
- Apache Ant, version 1.10.3 (see http://ant.apache.org for instructions)
- Apache Commons (from https://commons.apache.org/proper/commons-lang/)
- Scala SBT, version 1.1.4 (see http://www.scala-sbt.org for instructions)
- clang (see https://clang.llvm.org/)
If you have these requirements, proceed to 'Building'. On MacOS X, the easiest way to get them is:
- Be sure to have installed Homebrew
- brew tap homebrew/cask-versions
- brew cask install java8
- brew install ant
- Rest of the instructions below
For a basic build of VerCors the following steps should be taken:
- Clone the VerCors repository using
git clone https://github.com/utwente-fmt/vercors.gitand move into the cloned directory,
- Build VerCors with Ant by running
ant clean, followed by
- Test whether the build was successful by running
./unix/bin/vct --test=examples/manual --tool=silicon --lang=pvl,java.
The last command tests the VerCors installation by verifying a large collection of examples (from the
./examples directory). This command should eventually report that
all ? tests passed.
VerCors verifies programs that are annotated with JML-style specifications (the underlying theory uses separation logic with permission accounting). Details on the specification language can be found on the VerCors Wiki pages. Furthermore, a large collection of example programs can be found (and verified) in the
The VerCors toolset can be used from the main directory by running
./unix/bin/vct --silver=silicon <filepath>, with
<filepath> the path of the (Java, C, or PVL) file to verify.
- For questions and support, email to firstname.lastname@example.org.
- For bug reports and feature requests, visit https://github.com/utwente-fmt/vercors/issues.
A complete list of papers on the VerCors project is given here.
Copyright (c) 2008 - 2018 Formal Methods and Tools, University of Twente All rights reserved.
The license to VerCors is a mozilla open source license as described in LICENSE.TXT in the root of this project. It is a free to use, share-alike license. Should this license be too restrictive for your purpose, please let us know by creating an issue in our bug tracker. Direct contributors (people who send us pull-requests or edit this repository directly) are expected to agree with any license that the University of Twente might decide. If you do not agree with future license changes, please instead fork this repository as allowed under the conditions of LICENSE.TXT.