Go to file
Hannes Steffenhagen 856aa5c201 Make memory analyzer optional
We were doing this in multiple places, this should make it a bit easier to keep
set properties consistent among different places.

Ideally we could eventually move away from mentioning targets from modules here
on the top level (and instead have each module call cprover_default_properties)
but this isn't done in this commit.

Because memory analyzer depends on GDB being present and further uses platform
specific functionality at the moment it had some ifdef functionality to disable
itself.

This made the code a bit more complicated than it needed to be, and also lead to
the code effectively building defunct executables. This removes these ifdefs and
instead excludes memory-analyzer (and related tests) from the build unless
requested (via WITH_MEMORY_ANALYZER environment variable or CMake option
depending on whether it is a Make or CMake build respectively).

Also force building memory-analyzer on Linux and test it there by
default (unless explicitly unset). Behaviour on other platforms should be
preserved.
2019-05-16 11:56:04 +01:00
.githooks Make the pre-commit hook report non-temporary path names (#477) 2017-02-02 20:39:09 +00:00
.github Include User Guide item in pull request template 2018-11-15 19:23:58 +00:00
cmake Add DownloadProject cmake script 2017-09-27 11:22:20 +01:00
doc Permit selectively disabling generated assertions 2019-05-03 20:43:43 +01:00
integration/xen Fix Xen integration test 2019-03-06 22:34:06 +00:00
jbmc Make memory analyzer optional 2019-05-16 11:56:04 +01:00
pkg/arch Add CBMC package build file for Arch Linux 2017-04-26 16:29:00 +01:00
regression Make memory analyzer optional 2019-05-16 11:56:04 +01:00
scripts Add check for missing unidiff dependency 2019-04-11 15:11:56 +01:00
src Make memory analyzer optional 2019-05-16 11:56:04 +01:00
unit Make memory analyzer optional 2019-05-16 11:56:04 +01:00
.clang-format Make clang-format indent nested preprocessor directives 2019-03-30 12:50:59 +00:00
.clang-format-ignore Use .clang-format-ignore 2019-01-29 09:43:59 +00:00
.dir-locals.el Move Emacs style file so it affects unit tests as well as main source 2017-08-16 12:43:32 +01:00
.editorconfig Don't remove trailing spaces from patch files 2016-11-29 17:26:59 +00:00
.gitattributes added test.desc as text 2016-08-15 12:35:10 +01:00
.gitignore Add function harness generator and generator factory 2019-02-07 16:44:02 +00:00
.gitmodules Use submodule to download java-models-library 2018-07-09 21:13:37 +01:00
.travis.yml Make memory analyzer optional 2019-05-16 11:56:04 +01:00
CHANGELOG Add new goto-instrument option print-global-state-size 2018-06-20 09:38:30 +01:00
CMakeLists.txt Make memory analyzer optional 2019-05-16 11:56:04 +01:00
CODEOWNERS CODEOWNERS: C. Smowton in goto-symex and goto-instrument 2019-03-01 14:41:12 +00:00
CODING_STANDARD.md Update coding standard for function brief documentation 2019-05-09 17:53:56 +01:00
COMPILING.md Make JBMC build optional with cmake 2019-03-14 07:05:57 -07:00
LICENSE update year 2016-09-05 17:05:55 +01:00
MINI-PROJECTS.md Add CBMC Mini Projects list 2019-02-06 21:23:30 +00:00
README.md Update Codebuild badge 2019-03-25 12:07:51 +00:00
buildspec-linux-clang.yml Suppress color output on AWS CodeBuild 2019-05-10 18:43:47 +01:00
buildspec-linux-cmake-gcc.yml Suppress color output on AWS CodeBuild 2019-05-10 18:43:47 +01:00
buildspec-windows.yml Suppress color output on AWS CodeBuild 2019-05-10 18:43:47 +01:00
buildspec.yml Suppress color output on AWS CodeBuild 2019-05-10 18:43:47 +01:00
gcloud-travis-cbmc.json.enc Add encrypted GCloud key for Travis 2018-03-20 12:16:01 +00:00

README.md

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.

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 git@github.com: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.