Skip to main content

Crate cverif

Crate cverif 

Source
Expand description

cverif — verifies that compiled machine code faithfully matches its C source.

Modules§

bindiff
Binary-to-binary comparison: are two machine-code images observably equivalent?
bv
Bit-vector prover: bit-blasts crate::term terms into the CDCL solver and decides validity of boolean terms under assumptions.
c
C front end: preprocessor, parser, type checker and CFG lowering.
cache
A cache of verification results on disk (--cache DIR).
detect
Compiler-flag identification: guesses the GCC optimisation level from the shape of the generated Thumb-2 code.
discover
Discovery: find the code of an image that has no symbol table, or an incomplete or wrong one.
explain
Readable views of cverif’s symbolic representation.
fp
IEEE-754 binary32 / binary64 floating point.
image
Binary images: ELF32 ARM files (relocatable objects and linked executables) and raw binaries accompanied by a symbol table.
inputs
Firmware images that are not ELF files: raw binaries, Intel HEX and Motorola S-record files, described by a symbol table (nm output in any of its formats) and/or a GNU ld link map.
report
Machine-readable coverage output: LCOV for the source side, drcov for the binary side, and a JSON document with everything the verifier established.
sat
CDCL SAT solver.
sym
Shared symbolic-execution context: path condition, branching through the prover, deterministic path replay and the memory model used by both the C and the machine-code executors.
term
Hash-consed bit-vector terms shared by the C and machine-code symbolic executors.
thumb
ARM Thumb-2 (Cortex-M) support.
timing
Phase timings on stderr when CVERIF_TIMING is set: where a run’s wall time goes.
verify
Equivalence driver: for every source function present in the binary, explores all paths of the C function and of the machine code under the same symbolic inputs and proves that every observable effect is identical.