JBMC is a Bounded Model Checker for Java programs. It supports checking for runtime exceptions and user-definde assertions. The verification is performed by unwinding the loops in the program and passing the resulting equation to a decision procedure.
Get the latest release
- Releases are tested and for production use.
Get the current develop version: git clone https://github.com/diffblue/jbmc.git
- Develop versions are not recommended for production use.
JBMC compiles CBMC as part of its build process and as such has all the pre-requisites of CBMC. These can be viewed at: diffblue/cbmc:COMPILING
To compile you need to run two commands:
make -C src setup-cbmc
make -C src CXXFLAGS="-Wall -O2 -g -Werror -Wno-deprecated-register -pedantic -Wno-sign-compare"
The first make command will configure the CBMC submodule (found in lib/cbmc). It can optionally be provided with a list of users forks to retrieve. This is needed if changes depend on a commit that has not yet been merged into diffblue/cbmc.
For example, if you need userA and userB's forks the first command would be:
make -C src USERS="userA userB" setup-cbmc
It is recommend to add your fork in this way.
Compiling produces an executable called symex which by default can be found in src/jbmc/jbmc
If you encounter a problem please file a bug report:
- Create an issue
- Fork the repository
- Clone the repository
git clone git@github.com:YOURNAME/jbmc.git
- Create a branch from the
develop
branch (default branch) - Make your changes (follow the coding guidelines)
- Push your changes to your branch
- Create a Pull Request targeting the
develop
branch
4-clause BSD license, see LICENSE
file.