# C++

> C with classes, templates and a large standard library; used for databases, browsers, games and high-performance code.

- Kind: language
- Versions: C++17, C++20, C++23

## Compiles to

| To | Via | Assurance | What is lost |
|---|---|---|---|
| LLVM IR | clang | trusted | Classes, templates and source types are lowered to plain functions and memory. Source-level undefined behavior may already have been exploited. Specifications. |

## Verify your code directly

| Toolchain | Stage | Effort | Via |
|---|---|---|---|
| [CBMC](/toolchains/cbmc.md) | 1 Usable | Push-button | — |
| [BRiCk](/toolchains/brick.md) | 0 Research | Interactive | — |

## Verify the compiled code

| Toolchain | Stage | Effort | Via |
|---|---|---|---|
| [s2n-bignum](/toolchains/s2n-bignum.md) | 1 Usable | Interactive | C++ → LLVM IR (clang, trusted), LLVM IR → x86-64 (LLVM backend (llc), trusted) |
| [Alive2](/toolchains/alive2.md) | 1 Usable | Push-button | C++ → LLVM IR (clang, trusted) |
| [Islaris](/toolchains/islaris.md) | 0 Research | Interactive | C++ → LLVM IR (clang, trusted), LLVM IR → AArch64 (LLVM backend (llc), trusted) |
| [LNSym](/toolchains/lnsym.md) | 0 Research | Interactive | C++ → LLVM IR (clang, trusted), LLVM IR → AArch64 (LLVM backend (llc), trusted) |

## Formal semantics
- [BRiCk C++ semantics](/semantics/brick-cpp.md): A separation-logic semantics of a large part of C++, written as weakest-precondition rules in Rocq on top of Iris. It is the model behind the BRiCk toolchain.

---
Last checked 2026-11-26. Data: [JSON](/targets/cpp.json) · Page: [HTML](/targets/cpp/) · Methodology v0.1: [/methodology/](/methodology/) · Corrections: [/contribute/](/contribute/)
