Toolchain verifies C

CN

Also known as Fulminate

Write ownership and correctness specifications as comments in C code; CN checks them with an SMT solver, or turns them into runtime checks for testing.

Stage 0 · Research Auto-active Open source · BSD-2-Clause Last commit · today
Trust: Checker partial, Semantics partial, Frontend partial, Binary gap weak, Escape hatches partial CheckerSemanticsFrontendBinary gapEscape hatches 0 of 5 strong, 1 weak

Use it if

  • You want to prove existing systems C code free of undefined behavior and correct against specifications, with mostly automatic proofs.
  • You want the same specifications to drive runtime checking and random testing (Fulminate) before you attempt a proof.

Look elsewhere if

  • Your code uses threads, unions, floating point or variadic functions; CN rejects or does not support these.
  • You need a production-ready tool; its authors describe it as research tooling.

How it works

From your code to an accepted proof. Each step either has to be trusted or is checked by something else.

  1. Input
    C code
  2. Front end
    Cerberus C front end Trusted Cerberus's own parser and type checker turn C into its Core language. C files are first run through the system preprocessor.
  3. Semantics
    Cerberus Core semantics with the VIP memory model Trusted CN works on a simplified form of Cerberus Core. By default it uses the VIP memory object model for pointer provenance.
  4. Translation
    CN type checker Trusted Infers ownership (resources) and reduces checks to SMT queries. Soundness of type checking was proved for a formalised core of the system (POPL 2023); the implementation is not verified.
  5. Checker
    Z3 Trusted Default SMT solver.
  6. Checker
    cvc5 Trusted Alternative solver, chosen with --solver-type cvc5.
  7. Compiler
    GCC or Clang Trusted

Verified or checked: outside the trusted base Validated per run or by tests Trusted without proof

  • C: Sequential C; specifications are written in /*@ ... @*/ comments.

Trust

What a proof from this toolchain relies on: the trusted computing baseTrusted computing base (TCB). Everything that must be correct for a proof to mean what it says., one part at a time. How these are rated.

  1. Checker What has the final word on a proof?
    Partial

    Z3 or cvc5 decides each check; no proof certificates by default.

    An experimental option (--coq-proof-log) exports a proof log to Rocq; it is not on by default. Lemmas CN cannot prove can be exported as Rocq statements to prove by hand.

    source

  2. Semantics Is the tool's model of the language the real language?
    Partial

    Built on the Cerberus C semantics; CN's own model on top is tested by its suite.

    Cerberus has published validation (GCC torture tests, Csmith). CN uses a simplified form of it plus the VIP memory model, and the 2023 paper notes it ignores C's loose evaluation order.

    source

  3. Frontend How does your source get into the model?
    Partial

    Cerberus's own C front end, separate from the compiler that builds the binary.

  4. Binary gap Does the proof cover what actually runs?
    Weak

    The binary comes from GCC or Clang, which are not verified.

    A 2023 MSc thesis (CN2Islaris) explored carrying CN specifications to compiled code with Islaris; this is research, not part of CN.

    source

  5. Escape hatches Can a proof silently rest on unchecked assumptions?
    Partial

    Functions and lemmas marked trusted are not checked; findable by grep, not listed.

    A trusted annotation makes CN accept a function's or lemma's specification without proof, and --skip leaves functions unchecked. The checker collects trusted functions but does not report them in its result.

    source

What it can prove

Kinds of guarantees, not how easy they are to get.

Properties
FeatureSupportNotes
No undefined behavior Memory safety and absence of runtime errors: no out-of-bounds access, use-after-free, overflow traps, panics or undefined behavior on any input allowed by the precondition. SupportedSupported.CN checks that code is free of undefined behavior as defined by the Cerberus semantics of ISO C.
Source
CN checks that code is free of undefined behavior as defined by the Cerberus semantics of ISO C. source
Functional correctness The code meets a written specification of its results, for example “returns the sorted list” or “implements this RFC”. SupportedSupported.Functions are checked against pre- and postconditions over ownership and values.
Source
Functions are checked against pre- and postconditions over ownership and values. source
Equivalence Two programs (an optimized and a reference version, or code before and after a change) are proved to behave the same, or one refines the other. Not supportedNot supported.No built-in way to compare two programs. You can prove that both meet the same specification. No built-in way to compare two programs. You can prove that both meet the same specification.
Information flow Secrets do not influence public outputs, timing or memory access patterns (constant-time code, non-interference). Not supportedNot supported.No support for secrecy or timing properties was found in the documentation. No support for secrecy or timing properties was found in the documentation.
Concurrency Correctness of code with threads or shared memory: absence of data races, deadlock freedom, linearizability of concurrent data structures. Not supportedNot supported.The 2026 PLDI paper says the specification language and tools do not yet support concurrency.
Source
The 2026 PLDI paper says the specification language and tools do not yet support concurrency. source
Termination and liveness Every run finishes, or the system keeps making progress (liveness). Not supportedNot supported.Specifications have preconditions, postconditions and loop invariants but no termination measures, so proofs say nothing about termination.
Source
Specifications have preconditions, postconditions and loop invariants but no termination measures, so proofs say nothing about termination. source

Language coverage

Which parts of C it handles. Hover or focus a mark for details.

Common features

Common features
FeatureSupportNotes
Machine integers Fixed-width integer arithmetic, overflow and bit operations. SupportedSupported.Signed overflow and other integer undefined behavior are rejected.
Source
Signed overflow and other integer undefined behavior are rejected. source
Floating point IEEE 754 floating-point arithmetic, including rounding and NaNs. Not supportedNot supported.The type checker reports floats as unsupported.
Source
The type checker reports floats as unsupported. source
Heap and pointers Dynamically allocated memory, pointers or references, and aliasing. SupportedSupported.Ownership of heap cells is tracked in separation logic. Allocation uses cn_malloc and cn_free_sized in place of malloc and free.
Source
Ownership of heap cells is tracked in separation logic. Allocation uses cn_malloc and cn_free_sized in place of malloc and free. source
Arrays and buffers Indexed memory such as arrays, slices, vectors and byte buffers. SupportedSupported.Iterated ownership over array ranges, with automatic inference for common access patterns.
Source
Iterated ownership over array ranges, with automatic inference for common access patterns. source
Loops Unbounded loops, which need invariants or bounds to verify. PartialPartial.Loop invariants can be given only on for and while loops.
Source
Loop invariants can be given only on for and while loops. source
Recursion Functions that call themselves, directly or through others. SupportedSupported.Recursive C functions are checked against their specifications. Recursive specification functions are not unfolded automatically; you unfold them or state lemmas by hand.
Source
Recursive C functions are checked against their specifications. Recursive specification functions are not unfolded automatically; you unfold them or state lemmas by hand. source
Higher-order code Function pointers, closures and callbacks. PartialPartial.The test suite checks calls through function pointers to known functions; the tutorial does not cover them.
Source
The test suite checks calls through function pointers to known functions; the tutorial does not cover them. source
Threads and shared memory Concurrent threads with locks, atomics or message passing. Not supportedNot supported.Not supported; locks had to be commented out in the pKVM case study.
Source
Not supported; locks had to be commented out in the pKVM case study. source
I/O and system calls Files, network, system calls and foreign-function calls. UnknownUnknown.No documentation found on specifying I/O or system calls. No documentation found on specifying I/O or system calls.
Standard library Specifications or models for the language's standard library. PartialPartial.The tutorial covers allocation (cn_malloc, cn_free_sized). No general specifications of the C standard library were found.
Source
The tutorial covers allocation (cn_malloc, cn_free_sized). No general specifications of the C standard library were found. source

C-specific features

C-specific features
FeatureSupportNotes
Pointer casts and provenance Casting between pointers and integers, pointer arithmetic across objects. PartialPartial.Uses the VIP provenance model, which allows integer-pointer casts. The repo's VIP test notes list round-trip casts and provenance through bytes as still to do.
Source
Uses the VIP provenance model, which allows integer-pointer casts. The repo's VIP test notes list round-trip casts and provenance through bytes as still to do. source
Unions and type punning Reading a value through a different type than it was written with. Not supportedNot supported.Programs with union types are rejected ("unsupported union types").
Source
Programs with union types are rejected ("unsupported union types"). source
Bit-fields Struct members narrower than a byte. Not supportedNot supported.The Cerberus front end that CN uses rejects bit-fields as not yet supported.
Source
The Cerberus front end that CN uses rejects bit-fields as not yet supported. source
Variadic functions Functions such as printf that take a variable number of arguments. Not supportedNot supported.Variadic functions are rejected as unsupported.
Source
Variadic functions are rejected as unsupported. source
setjmp / longjmp Non-local jumps out of nested calls. Not supportedNot supported.Not supported by the underlying Cerberus semantics.
Source
Not supported by the underlying Cerberus semantics. source
volatile and MMIO Memory-mapped device registers and volatile accesses. Not supportedNot supported.The underlying Cerberus semantics does not model volatile beyond syntax checks.
Source
The underlying Cerberus semantics does not model volatile beyond syntax checks. source
Inline assembly Assembly code embedded in C functions. Not supportedNot supported.Not supported by the underlying Cerberus semantics.
Source
Not supported by the underlying Cerberus semantics. source

Stage

Computed from the evidence below; see the criteria. 1criterion is missing for Stage 1.

Stage 0 Research Met
  • Met: Publicly available evidence
  • Met: At least one published verification uses it Verification of the buddy allocator of Google's pKVM hypervisor (POPL 2023). evidence
Stage 1 Usable Next
  • Met: Released or updated in the last 12 months Latest release: main@4b4c33c, 2026-11-26. evidence
  • Met: Installs and runs on current platforms Install from source with opam, or use Docker images built by CI for amd64 and arm64. evidence
  • Met: User documentation or tutorial Tutorial and reference documentation, marked as work in progress. evidence
  • Unknown: Used by a group other than its authors Papers so far are by the CN team (Cambridge, Penn, Oxford). No published use by an outside group was found.
Stage 2 Production Later
  • Not met: Verified code in production at two or more independent organizations None recorded.
  • Met: Checker axis is not red
  • Met: Semantics axis is not red
  • Met: Public channel for soundness bugs Public GitHub issue tracker. evidence

In use

Verified code in production, and notable verification projects.

In production

None recorded. Know one? Add it with a source.

Projects

Facts and sources

Effort
Auto-active: You write specifications and hints; a solver does the proving.
Licence
Open source, BSD-2-Clause (with listed exceptions)
Maintained by
University of Cambridge, University of Pennsylvania
Latest release
main@4b4c33c (26 Nov 2026) source
Last checked
26 Nov 2026

Further sources

esc