Skip to content

85lx/cbmc

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status Build Status Build Status Build Status Build Status

CProver Wiki

CProver Documentation

About

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.

Versions

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.

Installing

Windows

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.

Linux

For different linux environments, you have these choices:

  1. Install CBMC through the distribution's repositories, with the downside that this might install an older version of cbmc, depending on what the package maintenance policy of the distribution is, or

  2. Install CBMC through the .deb package built by each release, available on the releases page. To do that, download the .deb package and run apt install cbmc-x.y.deb with root privileges, with x.y being substituted for the version you are attempting to install.

    NOTE: Because of libc/libc++ ABI compatibility and package dependency names, if you follow this path make sure you install the package appropriate for the version of operating system you are using.

  3. Compile from source using the instructions here

macOS

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.

Report bugs

If you encounter a problem please file a bug report:

Contributing to the code base

  1. Fork the repository
  2. Clone the repository git clone [email protected]:YOURNAME/cbmc.git
  3. Create a branch from the develop branch (default branch)
  4. Make your changes (follow the coding guidelines)
  5. Push your changes to your branch
  6. Create a Pull Request targeting the develop branch

New contributors can look through the mini projects page for small, focussed feature ideas.

License

4-clause BSD license, see LICENSE file.

Packages

No packages published

Languages

  • SWIG 47.4%
  • C++ 40.4%
  • C 6.5%
  • Java 1.7%
  • Scilab 0.9%
  • Objective-J 0.9%
  • Other 2.2%