Skip to content
Research prototype tool for modular formal verification of C and Java programs
OCaml C Makefile Java HTML Vala Other
Branch: master
Clone or download
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples Support initializing a struct with an expression of struct type Dec 5, 2019
help - updated description of 'precise predicate' Aug 9, 2011
javacard_tutorial - Weakened the contract of beginTransaction Sep 2, 2011
make_vfdeps Upgrade to Z3 4.8.5 for the macOS build Jul 17, 2019
make_vfdeps_win32 vfdeps: Include Z3 DLL import library Jan 5, 2018
src Find contains edges: remove superfluous constraint Dec 6, 2019
tests Verify throw expr; fix ghost check; && sequences Dec 3, 2019
tutorial_solutions Remove illegal_access.c Sep 24, 2019
.gitignore Move lemma proofs into .c file Nov 4, 2019
.travis.yml Fix Travis build script Mar 14, 2019
GNUmakefile.settings.example Build script: preserve value of `OS` on Windows Nov 24, 2017 Create Apr 1, 2016 Update Aug 15, 2019 Update Aug 15, 2019 Update Aug 15, 2019 Update Jan 17, 2017 macOS: remove quarantine attribute Feb 11, 2020
README.txt Make build instructions accessible Jul 1, 2016
Z3-on-Ubuntu64.txt Added list of i386 packages to install to run VeriFast 32-bit (with Z… May 12, 2014
appveyor.yml - Expanded the release script to "force" testing vfide with hidden lo… Jan 8, 2016 Minor release build script improvement Nov 3, 2014 Use VFDeps with Z3 4.8.5 build from Bintray Jul 20, 2019
settings.bat.example Erratum to d273959 Jul 20, 2019
setup-windows.bat Erratum to 62ebe7a Jul 24, 2019 Constrain pred ctor param types and casts to 'any' Aug 16, 2019
test.bat Improved the release build process: May 20, 2009 Added some missing files. Jul 24, 2009
testsuite.mysh Verify throw expr; fix ghost check; && sequences Dec 3, 2019

Build Status Build status DOI


By Bart Jacobs*, Jan Smans*, and Frank Piessens*, with contributions by Pieter Agten*, Cedric Cuypers*, Lieven Desmet*, Jan Tobias Muehlberg*, Willem Penninckx*, Pieter Philippaerts*, Amin Timany*, Thomas Van Eyck*, Gijs Vanspauwen*, Frédéric Vogels*, and external contributors

* imec-DistriNet research group, Department of Computer Science, KU Leuven - University of Leuven, Belgium

VeriFast is a research prototype of a tool for modular formal verification of correctness properties of single-threaded and multithreaded C and Java programs annotated with preconditions and postconditions written in separation logic. To express rich specifications, the programmer can define inductive datatypes, primitive recursive pure functions over these datatypes, and abstract separation logic predicates. To verify these rich specifications, the programmer can write lemma functions, i.e., functions that serve only as proofs that their precondition implies their postcondition. The verifier checks that lemma functions terminate and do not have side-effects. Since neither VeriFast itself nor the underlying SMT solver need to do any significant search, verification time is predictable and low.

The VeriFast source code and binaries are released under the MIT license.


Within an hour after each push to the master branch, binary packages become available at the following URLs:

These "nightly" builds are very stable and are recommended. Still, named releases are available here. (An archive of older named releases is here.)

Simply extract the files from the archive to any location in your filesystem. All files in the archive are in a directory named verifast-COMMIT where COMMIT describes the Git commit. For example, on Linux:

tar xzf ~/Downloads/verifast-nightly.tar.gz
cd verifast-<TAB>  # Press Tab to autocomplete
bin/vfide examples/java/termination/Stack.jarsrc  # Launch the VeriFast IDE with the specified example
./  # Run the test suite (verifies all examples)

Note (macOS): To avoid GateKeeper issues, before opening the downloaded archive, remove the attribute by running

sudo xattr -d ~/Downloads/verifast-nightly-osx.tar.gz





We gratefully acknowledge the authors and contributors of the following software packages.

Bits that we ship in our binary packages

  • OCaml
  • OCaml-Num
  • Lablgtk
  • GTK+ and its dependencies (including GLib, Cairo, Pango, ATK, gdk-pixbuf, gettext, fontconfig, freetype, expat, libpng, zlib, Harfbuzz, and Graphite)
  • GtkSourceView
  • The excellent Z3 theorem prover by Leonardo de Moura and Nikolaj Bjorner at Microsoft Research, and co-authors

Software used at build time

  • findlib, ocamlbuild, camlp4, valac
  • Cygwin, Homebrew, Debian, Ubuntu
  • The usual infrastructure: GNU/Linux, GNU make, gcc, etc.


We gratefully acknowledge the following infrastructure providers.

  • GitHub
  • Travis CI
  • AppVeyor CI


This work is supported in part by the Flemish Research Fund (FWO-Vlaanderen), by the EU FP7 projects SecureChange, STANCE, ADVENT, and VESSEDIA, by Microsoft Research Cambridge as part of the Verified Software Initiative, and by the Research Fund KU Leuven.

Mailing lists

To be notified whenever commits are pushed to this repository, join the verifast-commits Google Groups forum.

Third-Party Resources

You can’t perform that action at this time.