CBMC is a Bounded Model Checker for C and C++ programs. It supports C89, C99, most of C11 and most compiler extensions provided by gcc and Visual Studio. It also supports SystemC using Scoot. It allows verifying array bounds (buffer overflows), pointer safety, exceptions and user-specified assertions. Furthermore, it can check C and C++ for consistency with other languages, such as Verilog. The verification is performed by unwinding the loops in the program and passing the resulting equation to a decision procedure.
For full information see cprover.org.
Get the latest release
- Releases are tested and for production use.
Get the current develop version: git clone https://github.com/diffblue/cbmc.git
- Develop versions are not recommended for production use.
For windows you can install cbmc binaries via the .msi's found on the releases page.
Note that we depend on the Visual C++ redistributables. You likely already have these, if not please download and run vcredist.x64.exe from Microsoft to install them prior to running cbmc.
For macOS there is a Homebrew package available. Once you have installed Homebrew, simply run
brew install cbmc
to install cbmc, or if you already have it installed via homebrew
brew upgrade cbmc
to get an up-to-date version.
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/cbmc.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
New contributors can look through the mini projects page for small, focussed feature ideas.
4-clause BSD license, see LICENSE
file.