CBMC
cprover.org
- Free plan
- Windows
- macOS
- Linux
What CBMC is
CBMC is a free bounded model checker for C and C++ programs, available for Linux, macOS and Windows. It checks memory safety, including array bounds and pointer use, as well as several forms of undefined behavior and user-specified assertions. Its language support includes C89, C99, most of C11 and C17, and extensions from GCC, Clang and Visual Studio. CBMC verifies programs by unwinding loops and passing the resulting equation to a decision procedure. It can also check I/O equivalence between C or C++ and languages such as Verilog, and generate tests for branch, decision, path and MC/DC coverage. Supported features include arrays, dynamic memory, nondeterminism, assumptions and assertions, plus C++ classes, templates and selected STL containers. A MiniSat-based bit-vector solver is included; Boolector, CVC5 and Z3 are supported but must be installed separately. CBMC is released under a BSD 4-clause license. The Windows and macOS distributions are command-line tools without a graphical interface; the Windows binary runs from the Visual Studio Command Prompt.
Who it suits
CBMC suits developers and verification teams checking C or C++ programs for memory-safety issues, undefined behavior or specified assertions. It is also relevant where command-line tools fit the workflow.
Good to know, and what to watch
- Checks array bounds and safe pointer use.
- Supports C89, C99, most C11 and C17.
- Can generate tests for multiple coverage criteria.
- Linux packages are available for Debian and Ubuntu.
- Free under a BSD 4-clause license.
- Windows and macOS releases have no graphical interface.
- External Boolector, CVC5 and Z3 solvers require separate installation.
- Windows binary runs from the Visual Studio Command Prompt.
Plans
Every plan and priceCBMC
Free plan
Getting started
- Open the CBMC website
- Choose the Linux, macOS, or Windows distribution
- Install a Linux package through Debian, Ubuntu, or Fedora dnf when applicable
- Run the Windows binary from a Visual Studio Command Prompt
- Install Boolector, CVC5, or Z3 separately if you plan to use them
The verdict
CBMC offers a broad set of C and C++ checks, with test generation and cross-language I/O equivalence checking. Be prepared to work from the command line on Windows or macOS, and install external solvers separately if needed.
Questions people ask
Is CBMC free?
Yes. CBMC has a free plan priced at no cost and is released under a BSD 4-clause license.
Which operating systems does CBMC support?
CBMC supports Linux, macOS, and Windows. The Windows and macOS releases are command-line tools without a GUI.
Which C and C++ standards are supported?
It supports C89, C99, most C11 and C17, and compiler extensions from GCC, Clang, and Visual Studio. C++ support includes classes, templates, and selected STL containers.
What can CBMC verify?
It checks memory safety, several forms of undefined behavior, and user-specified assertions. It can also check C or C++ I/O equivalence with languages such as Verilog.
Which solvers are available?
CBMC includes a MiniSat-based bit-vector solver and supports Boolector, CVC5, and Z3 as external solvers that must be installed separately.
Can CBMC generate tests?
Yes. It can generate tests for branch, decision, path, and MC/DC coverage criteria.
What the maker publishes
- Analysis method
- Verification unwinds program loops and passes the resulting equation to a decision procedure. source
- C features
- Supported C features include multidimensional and dynamically sized arrays, pointer checks, dynamic memory, nondeterminism, assumptions and assertions. source
- Cross-language checking
- CBMC can check C and C++ for I/O equivalence with languages such as Verilog. source
- Interface
- The maker describes the Windows and macOS releases as command-line tools with no GUI. source
- Language features
- The supported features page lists C arrays, pointers, dynamic memory, assertions, and C++ classes, templates, and selected STL containers. source
- Language support
- CBMC supports C89, C99, most C11/C17 and compiler extensions from GCC, Clang and Visual Studio. source
- License
- CBMC is released under a BSD 4-clause license. source
- License
- The maker identifies the license as BSD 4-clause; its terms permit redistribution and use in source or binary form subject to conditions. source
- License terms
- The license provides the software “AS IS” and disclaims warranties and liability. source
- Linux packaging
- CBMC is packaged for Debian and Ubuntu and can also be installed with Fedora's dnf package manager. source
- macOS limitation
- The macOS distribution is command-line only and has no GUI. source
- Memory safety
- CBMC verifies memory safety, including array bounds and safe pointer use. source
- Platforms
- The maker lists Linux, Windows, and macOS availability and provides Linux packages for Debian, Ubuntu, and Fedora. source
- Purpose
- CBMC is a bounded model checker for C and C++ programs. source
- Purpose
- CBMC is a bounded model checker for C and C++ programs. source
- Solvers
- CBMC includes a MiniSat-based bit-vector solver and supports external Boolector, CVC5 and Z3 solvers. source
- Solver support
- CBMC includes a MiniSat-based bit-vector solver and supports external SMT solvers including Boolector, CVC5, and Z3, which must be installed separately. source
- Support
- The project directs CBMC questions to Daniel Kroening and provides a CProver Support Google Group. source
- Support
- The CBMC page directs questions to Daniel Kroening, and the CPROVER manual links to Google Groups support and announcements. source
- Supported languages
- It supports C89, C99, most of C11/C17, and many compiler extensions from GCC, Clang, and Visual Studio. source
- Test generation
- CBMC can generate test cases for coverage criteria including branch, decision, path, and MC/DC. source
- Undefined behavior
- CBMC checks various forms of undefined behavior and user-specified assertions. source
- Verification
- It checks memory safety, several kinds of undefined behavior, user assertions, and C/C++ I/O equivalence with other languages such as Verilog. source
- Verification method
- CBMC unwinds program loops and passes the resulting equation to a decision procedure. source
Checked against the maker's pages on 2 Oct 2026.