856aa5c201
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. |
||
---|---|---|
.githooks | ||
.github | ||
cmake | ||
doc | ||
integration/xen | ||
jbmc | ||
pkg/arch | ||
regression | ||
scripts | ||
src | ||
unit | ||
.clang-format | ||
.clang-format-ignore | ||
.dir-locals.el | ||
.editorconfig | ||
.gitattributes | ||
.gitignore | ||
.gitmodules | ||
.travis.yml | ||
CHANGELOG | ||
CMakeLists.txt | ||
CODEOWNERS | ||
CODING_STANDARD.md | ||
COMPILING.md | ||
LICENSE | ||
MINI-PROJECTS.md | ||
README.md | ||
buildspec-linux-clang.yml | ||
buildspec-linux-cmake-gcc.yml | ||
buildspec-windows.yml | ||
buildspec.yml | ||
gcloud-travis-cbmc.json.enc |
README.md
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:
- Create an issue
Contributing to the code base
- 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.
License
4-clause BSD license, see LICENSE
file.