vercors

The VerCors verification toolset for verifying parallel and concurrent software

https://github.com/utwente-fmt/vercors

Science Score: 26.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (15.5%) to scientific vocabulary

Keywords

c concurrency java opencl openmp parallelism separation-logic software-analysis vercors-toolset verification viper
Last synced: 6 months ago · JSON representation

Repository

The VerCors verification toolset for verifying parallel and concurrent software

Basic Info
  • Host: GitHub
  • Owner: utwente-fmt
  • License: mpl-2.0
  • Language: Scala
  • Default Branch: dev
  • Homepage: https://utwente.nl/vercors
  • Size: 541 MB
Statistics
  • Stars: 78
  • Watchers: 10
  • Forks: 32
  • Open Issues: 178
  • Releases: 14
Topics
c concurrency java opencl openmp parallelism separation-logic software-analysis vercors-toolset verification viper
Created almost 10 years ago · Last pushed 6 months ago
Metadata Files
Readme License Citation

README.md

VerCors Verification Toolset GitHub Workflow Status (master) GitHub Workflow Status (dev)

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 you to try VerCors online.

The tutorial can be found on the VerCors Wiki!

If you're planning on contributing, please have a look at our Developing for VerCors page.

Installation

You can install VerCors by either using a release (recommended for beginners), or by building VerCors from its source code.

Using a Release

VerCors requires a java runtime environment (version 17 or later), as well as clang if you want support for C.

Debian Linux

Currently we support debian-based systems; let us know if you need something else! Install the dependencies:

shell script sudo apt install clang openjdk-17-jre

Obtain the latest deb release of VerCors here, and install it by running:

shell script sudo dpkg -i Vercors_x.y.z_all.deb

VerCors should now be on the path:

shell script $ vercors /usr/share/vercors/examples/concepts/arrays/array.pvl [INFO] Starting verification [INFO] Verification completed successfully.

Mac

You can for example obtain the dependencies through homebrew:

shell script brew install java

This should install the latest release of OpenJDK. Clang should already be installed through XCode.

Obtain the latest tgz release of VerCors here and unpack it. You can find the run script for VerCors in the bin subdirectory:

shell script $ ./bin/vercors examples/concepts/arrays/array.pvl [INFO] Starting verification [INFO] Verification completed successfully.

NB: you may need to allow the dependencies of VerCors to run manually. If you get an error that z3 and/or boogie is not from a trusted developer, execute them once manually from Finder to add an exception (instructions). They are located at:

  • res/deps/z3/4.8.6/Darwin/x86_64/bin/z3
  • res/deps/boogie/1.0.0.0-carbon/Darwin/Boogie

Windows

You can obtain a java runtime environment e.g. here. Make sure that the environment variable JAVA_HOME points to wherever you unpack the JDK. clang can be obtained as part of the llvm toolchain here. Make sure that clang is added to the path.

Next, download the latest zip release of VerCors here and unzip it. You can find the batch script for VerCors in the bin subdirectory:

```shell script

bin\vercors.bat examples\concepts\arrays\array.pvl [INFO] Starting verification [INFO] Verification completed successfully. ```

Building from source code

When building VerCors, you additionally need these dependencies:

  • A Java Development Kit, version 17 or greater, either OpenJDK or Oracle.
  • Git (on Windows you need Git Bash, see https://git-scm.com/downloads)
  • Optionally cmake, make and libllvm15-dev if you would like to build VCLLVM (this is currently restricted to linux)
  1. Clone the VerCors repository using git clone https://github.com/utwente-fmt/vercors.git and move into the cloned directory, cd vercors.
  2. Run ./mill vercors.main.compile to compile VerCors.
  3. Test whether the build was successful by running ./bin/vct examples/concepts/basic/induction-lemma.pvl.
  4. (optional) Enable building VCLLVM with touch .include-vcllvm

Running VerCors

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 ./examples directory.

The VerCors toolset can be used by running vercors <filepath>, with <filepath> the path of the (Java, C, or PVL) file to verify.

Contact

Related papers

A complete list of papers on the VerCors project is given here.

License

Copyright (c) 2008 - 2023 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.

GitHub Events

Total
  • Create event: 37
  • Release event: 1
  • Issues event: 87
  • Watch event: 21
  • Delete event: 20
  • Issue comment event: 107
  • Push event: 377
  • Pull request review event: 26
  • Pull request review comment event: 24
  • Pull request event: 83
  • Gollum event: 33
  • Fork event: 4
Last Year
  • Create event: 37
  • Release event: 1
  • Issues event: 87
  • Watch event: 21
  • Delete event: 20
  • Issue comment event: 107
  • Push event: 377
  • Pull request review event: 26
  • Pull request review comment event: 24
  • Pull request event: 83
  • Gollum event: 33
  • Fork event: 4

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 39
  • Total pull requests: 42
  • Average time to close issues: 12 months
  • Average time to close pull requests: 26 days
  • Total issue authors: 10
  • Total pull request authors: 7
  • Average comments per issue: 0.67
  • Average comments per pull request: 0.71
  • Merged pull requests: 29
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 33
  • Pull requests: 41
  • Average time to close issues: about 2 months
  • Average time to close pull requests: 19 days
  • Issue authors: 7
  • Pull request authors: 7
  • Average comments per issue: 0.48
  • Average comments per pull request: 0.44
  • Merged pull requests: 28
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • wandernauta (30)
  • sakehl (22)
  • pieter-bos (11)
  • superaxander (10)
  • bobismijnnaam (8)
  • ArmborstL (8)
  • pandasansgains (4)
  • dzagieboylo (3)
  • etiennebirling (2)
  • diegoacu1234 (1)
  • OmerSakar (1)
  • alexchandel (1)
  • ernstmoritzhahn (1)
  • marcoeilers (1)
  • Naum-Tomov (1)
Pull Request Authors
  • superaxander (31)
  • sakehl (23)
  • bobismijnnaam (14)
  • wandernauta (14)
  • pieter-bos (13)
  • RobertMensing (7)
  • PBHTasche (3)
  • ArmborstL (3)
  • OmerSakar (2)
  • DockTree (1)
  • YusofAlSalekh (1)
  • Ellen-Wittingen (1)
Top Labels
Issue Labels
A-Bug (26) F-C (13) A-Enh (10) F-all (6) R (4) Fuzzing (2) M-mill (2) F-CPP (1) M-log (1) P-Windows (1) M-CI (1) F-GPU (1) M-ex (1) M-lint (1) F-Java (1) F-PVL (1)
Pull Request Labels
A-Bug (2) A-Enh (1) P-Windows (1) R (1)

Dependencies

.github/workflows/build-wiki-pdf.yml actions
  • actions/checkout v2 composite
  • ncipollo/release-action v1 composite
  • technote-space/auto-cancel-redundant-workflow v1 composite
.github/workflows/scalatest.yml actions
  • KyleMayes/install-llvm-action v1 composite
  • actions/cache v3 composite
  • actions/cache v2 composite
  • actions/checkout v2 composite
  • actions/download-artifact v3 composite
  • actions/setup-java v1 composite
  • actions/upload-artifact v3 composite
  • dorny/test-reporter v1 composite
examples/publications/2023/JavaBIP/casinoAdjusted/pom.xml maven
  • org.antlr:antlr4-runtime 4.9.2 compile
  • com.google.code.gson:gson 2.8.7
  • com.googlecode.json-simple:json-simple 1.1.1
  • com.sun.xml.bind:jaxb-impl 4.0.1
  • com.typesafe.akka:akka-actor_2.11 2.5.32
  • com.typesafe.akka:akka-osgi_2.11 2.5.31
  • com.vaadin.external.google:android-json 0.0.20131108.vaadin1
  • jakarta.xml.bind:jakarta.xml.bind-api 4.0.0
  • javax.annotation:javax.annotation-api 1.3.2
  • javax.xml.bind:jaxb-api 2.3.1
  • junit:junit 4.13.1
  • log4j:log4j 1.2.16
  • org.antlr:antlr4 4.0
  • org.apache.commons:commons-lang3 3.12.0
  • org.apache.logging.log4j:log4j-core 2.18.0
  • org.javabip:javabdd 1.0b2
  • org.javabip:org.javabip.api 0.1.0-SNAPSHOT
  • org.javabip:org.javabip.engine.api 0.1.0-SNAPSHOT
  • org.javabip:org.javabip.engine.coordinator 0.1.0-SNAPSHOT
  • org.javabip:org.javabip.engine.core 0.1.0-SNAPSHOT
  • org.javabip:org.javabip.engine.factory 0.1.0-SNAPSHOT
  • org.javabip:org.javabip.executor 0.1.0-SNAPSHOT
  • org.javabip:org.javabip.glue 0.1.0-SNAPSHOT
  • org.javabip:org.javabip.spec.examples 0.1.0-SNAPSHOT
  • org.openjfx:javafx-base 17-ea+11
  • org.osgi:org.osgi.core 4.2.0
  • org.slf4j:slf4j-api 1.5.11
  • org.slf4j:slf4j-log4j12 1.5.11
  • org.slf4j:slf4j-simple 2.0.6
  • org.springframework:spring-beans 5.3.18
examples/publications/2023/JavaBIP/casinoBroken/pom.xml maven
  • org.antlr:antlr4-runtime 4.9.2 compile
  • com.google.code.gson:gson 2.8.7
  • com.googlecode.json-simple:json-simple 1.1.1
  • com.sun.xml.bind:jaxb-impl 4.0.1
  • com.typesafe.akka:akka-actor_2.11 2.5.32
  • com.typesafe.akka:akka-osgi_2.11 2.5.31
  • com.vaadin.external.google:android-json 0.0.20131108.vaadin1
  • jakarta.xml.bind:jakarta.xml.bind-api 4.0.0
  • javax.annotation:javax.annotation-api 1.3.2
  • javax.xml.bind:jaxb-api 2.3.1
  • junit:junit 4.13.1
  • log4j:log4j 1.2.16
  • org.antlr:antlr4 4.0
  • org.apache.commons:commons-lang3 3.12.0
  • org.apache.logging.log4j:log4j-core 2.18.0
  • org.javabip:javabdd 1.0b2
  • org.javabip:org.javabip.api 0.1.0-SNAPSHOT
  • org.javabip:org.javabip.engine.api 0.1.0-SNAPSHOT
  • org.javabip:org.javabip.engine.coordinator 0.1.0-SNAPSHOT
  • org.javabip:org.javabip.engine.core 0.1.0-SNAPSHOT
  • org.javabip:org.javabip.engine.factory 0.1.0-SNAPSHOT
  • org.javabip:org.javabip.executor 0.1.0-SNAPSHOT
  • org.javabip:org.javabip.glue 0.1.0-SNAPSHOT
  • org.javabip:org.javabip.spec.examples 0.1.0-SNAPSHOT
  • org.openjfx:javafx-base 17-ea+11
  • org.osgi:org.osgi.core 4.2.0
  • org.slf4j:slf4j-api 1.5.11
  • org.slf4j:slf4j-log4j12 1.5.11
  • org.slf4j:slf4j-simple 2.0.6
  • org.springframework:spring-beans 5.3.18
.github/workflows/release.yml actions
  • actions/checkout v2 composite
  • actions/setup-java v1 composite
  • liudonghua123/delete-release-action v1 composite
  • softprops/action-gh-release v1 composite
util/SplitVerify/SplitVerify.cabal hackage
  • aeson >=1.4.2.0 && <1.5
  • base >=4.12.0.0 && <4.13
  • boomerang >=1.4.5.6 && <1.5
  • bytestring >=0.10.8.2 && <0.11
  • directory >=1.3.3.0 && <1.4
  • filepath >=1.4.2.1 && <1.5
  • hashable >=1.2.7.0 && <1.3
  • rio >=0.1.12.0 && <0.2
  • time >=1.8.0.2 && <1.9 || >=1.9.3 && <1.10
  • unordered-containers >=0.2.10.0 && <0.3
util/wiki/requirements.txt pypi
  • pypandoc_binary ==1.12