cverif
cverif checks the work of a C compiler. Given a C source tree and a compiled binary, it proves that the machine code computes exactly what the source says — for every input, not for a sample of inputs — and reports how much of the source and of the binary the proofs cover.
It answers two questions at once:
- Did the compiler do its job? A miscompilation shows up as a function whose machine code provably differs from the source, with a concrete input that demonstrates the difference.
- Is this binary really built from this source? Code in the binary that no proof reaches (a patched function, an added trigger value, a changed table) lowers the binary coverage or is reported as a mismatch.
cverif does not contain or invoke a compiler and does not trust one. The first
supported target is ARM Thumb (Cortex-M0/M0+/M3/M4/M35P), as produced by GCC
(arm-none-eabi-gcc -mthumb) or clang (--target=arm*-none-eabi), including
position-independent code built with -fropi and -frwpi.
$ arm-none-eabi-gcc -mthumb -mcpu=cortex-m3 -O2 -c control.c
$ cverif control.o control.c
PROVED nested 28 bytes 7 paths 0 ms
PROVED ternary_chain 28 bytes 4 paths 0 ms
PROVED goto_cleanup 18 bytes 3 paths 0 ms
PROVED classify 20 bytes 7 paths 0 ms
PROVED dense_switch 50 bytes 8 paths 0 ms
PROVED sum_to_10 4 bytes 1 paths 0 ms
PROVED sum_squares_8 12 bytes 1 paths 0 ms
PROVED popcount8 20 bytes 9 paths 1 ms
PROVED first_set 30 bytes 33 paths 8 ms
PROVED digits 32 bytes 10 paths 23 ms
BOUNDED sum_n 24 bytes 40 paths 62 ms loop bound (40 branches per path); 40 paths proved
BOUNDED gcd 24 bytes 6 paths 7466 ms time limit; 6 paths proved
functions: 10 proved, 2 bounded, 0 mismatched, 0 inconclusive, 0 unsupported
source coverage: 100.0% (71 of 71 statements and branches proved)
binary coverage: 99.0% (287 of 290 code bytes proved)
initialised data: 0 objects compared, 0 differ
compiler: GCC: (Gentoo 16.2.1_p20260926 p1) 16.2.1 20260926
optimisation: -O2 (70%)
score: 99.5 / 100
verdict: no difference found
A binary built from a source with one extra line — if (key == 0x5ec2e7u) return 1; —
is rejected, and the counterexample is the trigger value itself:
MISMATCH m_backdoor 28 bytes 2 paths 0 ms return value: source gives 0x0, binary gives 0x1 for r0=0x5ec2e7 r1=0xfffff000
...
score: 0.0 / 100
verdict: MISMATCH - the binary does not match the source
Usage
cverif [OPTIONS] <BINARY> <SOURCE>...
<BINARY> is an ELF file with symbols — a relocatable object or a linked
executable — or a memory image without symbols: a raw binary (placed with
--base <hex>), Intel HEX or Motorola S-records (recognised by content;
--load <file>@<hex> adds further pieces). An image without symbols needs
--symbols <file>, which may be repeated and takes nm output (BSD, POSIX or
SysV format, sizes optional) and GNU ld link maps (-Map). A map also works
alongside an ELF file, and gives binary coverage per object file, with
library code that has no source counted as unverified.
In a linked image, .data is compared where its initial values are stored
(the load address), the vector table is compared as the array of function
addresses it is in the source, and symbols defined by the linker script are
constants. Static functions and objects with the same name in several source
files are told apart by the file the symbol belongs to (ELF FILE symbols, or
the object named in the map; build with -ffunction-sections -fdata-sections
for a map to name statics at all). With a bare nm listing, objects are told
apart by their initial contents and functions by proving which candidate is
which; what stays ambiguous is reported as UNSUPPORTED, never guessed.
String literals are compared by content: a pointer to a literal is correct if
it points to read-only bytes equal to the literal, wherever the linker put
or merged them.
<SOURCE> is any number of C files or directories. -I and -D work as they
do for a compiler. -v lists the source lines and binary functions that no
proof covers. For linked or raw code built with -frwpi, give the data base address the
firmware loads into r9 with --static-base <hex> (relocatable objects need
nothing). --mmio <start>-<end> (hex, repeatable) names the address ranges of
memory-mapped peripherals, where the binary may access memory only as the
source does; the default is 40000000-5fffffff and e0000000-ffffffff.
cverif --help shows the remaining options.
Coverage output
Three optional files describe exactly what the proofs cover:
| Option | Format | Contents |
|---|---|---|
--lcov <file> |
LCOV tracefile | Source side, for genhtml, CI coverage services and editor plugins. A line is hit only when every statement and branch condition on it lies on a proved path; lines with several coverage points also get one branch record per point. |
--drcov <file> |
drcov (version 2) | Binary side, for disassembler coverage plugins: one block per proved address range. |
--json <file> |
cverif's own | Everything: per-function status and counterexample, source line ranges (proved / partial / unproved), binary address ranges (proved / unproved / padding) with section, enclosing function and offsets, and the data comparison. |
For a relocatable object, addresses are positions in cverif's own layout of the sections; use the section and symbol offsets in the JSON instead. For a linked ELF or a raw binary they are the real addresses.
The exit status is 0 when no difference was found, 1 when the binary provably differs from the source, and 2 for usage or input errors.
Looking at the symbolic representation
cverif compares terms: for every path, what the source computes and what the machine code computes, as expressions over the function's inputs. Three options show them.
--explain (every function that is not PROVED) or --explain=<function> says what was
compared, on which path, what each side is and where the two differ, and gives the
counterexample with the value of each side:
== MISMATCH m_add: return value: source gives 0x1, binary gives 0xffffffff for r1=0x1 ==
compared: return value
at: source mutants.c:27, binary 0x10002 <m_add+0x2>
path: every input (no branch decision)
assuming: the source has no undefined behaviour, that is
- !((bit31(a) != t1) && (t1 != bit31(b)))
where:
t1 = bit31(a + b) = false
source: a + b = 1
binary: a - b = 0xffffffff (-1)
differ in: a + ⟦1⟧
⟦1⟧ source: b = 1
binary: -b = 0xffffffff (-1)
counterexample:
a = 0 (r0)
b = 1 (r1)
For INCONCLUSIVE and BOUNDED results the same block names the goal that was left
undecided, both terms, and the limit that stopped the proof (and whether a proof by
induction over the loop was attempted). --explain and -v also print the text of
every unproved source line and a disassembly of every unproved range of machine code,
with its symbolic summary when the range is a whole function.
--dump <function> (verifies only that function) and --dump-all print, for every
path, its condition (with the source line or the instruction that decided each branch)
and what each side does: stores to memory, external calls with their arguments,
accesses to volatile objects, the value returned.
== m_call at 0x1003c: PROVED ==
path 1 of 1: proved
when: always
source: mutants.c:70
call #1 ext_a(x + 1) → ret(ext_a #1)
return ret(ext_a #1)
binary: 0x1003c-0x10046
call #1 ext_a(r0 = x + 1)
return r0 = ret(ext_a #1)
--dump-binary <symbol | address | start-end> needs no source: it disassembles the
code and executes it symbolically with every register and all of memory unknown. Calls
that leave the range are events whose results are fresh unknowns; a summary that does
not cover every path says so.
$ cverif firmware.elf --dump-binary m_cmp
m_cmp: 0x10004-0x10010 (12 bytes)
<m_cmp>:
10004: 2302 movs r3, #2
10006: 4288 cmp r0, r1
10008: dc00 bgt 0x1000c ; <m_cmp+0x8>
...
symbolic summary: 2 paths (inputs: r0-r12, sp0, lr0 and memory at entry)
path 1 of 2: returns
when: r1 <s r0 [binary 0x10008 <m_cmp+0x4>]
binary: 0x10004-0x1000a 0x1000c-0x10010
return r0 = 2
...
How to read the terms: C operators, with <s, >=s, /s, %s, >>s for the signed
variants; (u8)x / (s32)(s8)x for truncation and extension; bit31(x),
bits15_8(x) for bit ranges. Parameters appear under their names (the register is
shown in the counterexample), addresses through the symbol table (table[i & 7],
&g_counter, "hello"[i % 5], sp0[-8] for the stack slot 8 bytes below the entry
stack pointer), other memory as *(u32 *)(p + 4). ret(f #2) is the result of the
second external call, x{after call #2 to f} memory as that call left it,
uninit(...) memory nothing has written. A sub-term used more than once is named
(t1 = ...) and shown once; large terms are cut with … unless --full is given.
The JSON report carries the same explanation for every function that is not proved, as
an "explanation" member of its entry in "functions" (absent for proved and
unsupported functions; the report's "version" is unchanged since nothing else moved):
| Member | Contents |
|---|---|
outcome |
mismatch, inconclusive or bounded |
goal |
what kind of thing was compared: return_value, memory, argument, call_target, register, volatile, call_sequence, limit (bounded), other |
what, reason |
the goal and the result in words (reason is the limit's name when bounded) |
induction_attempted |
bounded only: whether a proof by induction was tried |
location |
file, line of the last source statement and address of the last instruction executed |
address |
for memory: the address compared, as a term (see below) |
path |
the path condition: one object per entry with side (precondition, source, binary, comparison), condition (text), node, and file/line or address of the branch that decided it |
assumptions |
terms the proof may assume because the source would otherwise have undefined behaviour |
source, binary |
the two terms compared (absent when the difference is not between two values, e.g. a different call) |
diff |
skeleton (the common structure with numbered holes) and holes: label, source, binary text and, under a counterexample, source_value, binary_value |
lets |
shared sub-terms: name, text, node, value |
counterexample |
mismatch only: inputs (name, symbol — the register or internal symbol —, value, width) and memory (snapshot, address, bytes, symbol) |
nodes |
the terms as a graph, each node once |
A term is {"text": ..., "node": id, "value": ...}. nodes lists every node with its
id, op, width and value; operands are args (ids of earlier nodes). op is one
of const (const), sym (name, label), sum (terms: coef/node pairs, and
const: the linear form Σ coef·node + const), mul, udiv, sdiv, and, or,
xor, not, shl, lshr, ashr, eq, ult, slt, ite, extract (low_bit),
zext, sext, concat (high, low), load (snapshot; the argument is the address),
clz, and the floating-point operations (fadd, fmul, ...). All bit-vector values
are hexadecimal strings ("0x1f"), since they may exceed what a JSON number holds.
Explanations keep at most 4000 nodes; what is cut off is a sym named ….
Speed and limits
Functions are verified independently and in parallel (-j N, default one per
CPU). Each function has an effort budget, --work-limit, counted in work units
(terms built plus thousands of solver propagations) rather than seconds, so
the same input gives the same statuses on a fast machine, a slow one and a
loaded one. A function that exhausts it is reported BOUNDED with the paths
proved so far. --time-limit (per function) and --timeout (whole run) are
wall-clock safety nets on top.
Comparing two binaries
cverif --compare old new answers a different question: are two pieces of machine code
observably equivalent? Unlike a binary diff it tells a change in how the code was compiled
(another optimisation level, compiler, CPU, data layout) from a change in what the code does.
cverif --compare old.elf new.elf # machine code against machine code
cverif --compare old.elf new.elf src/ -I include # three-way, with the source
cverif --compare --old-symbols old.map --old-base 8000000 \
--new-symbols new.nm --new-base 8000000 old.bin new.hex
Both inputs can be anything the normal mode accepts. --symbols, --map, --base, --load
and --static-base apply to both images; with the prefix --old- or --new- they apply to
one. --only, --json, the limits and -j work as usual; the JSON document has
"type": "compare".
Every function the two images define under the same name is run symbolically on both sides from the same machine state (r0-r12, the stack and all of memory are unknown inputs): the paths of the old code are explored and the new code runs under the same path condition. At every call to code outside the images, at a trap and at the return, the two must agree on the memory the caller can reach, the calls made and their arguments, the accesses to peripheral registers (order, size and values written), r0, r4-r11 and sp.
| status | meaning |
|---|---|
EQUIVALENT |
proved for every machine state, under the conditions printed on the line (IDENTICAL: same bytes too; MOVED: same bytes at another address) |
DIFFERENT |
an input is given for which the two behave differently |
MAY-DIFFER |
the same, except in a place that may be dead (see below), with the input that shows it |
BOUNDED, INCONCLUSIVE, UNSUPPORTED |
as in the normal mode |
ADDED, REMOVED |
only one image has the function |
DATA |
an object both define whose initial contents differ (pointers compare by what they point to); objects only one image has are listed |
The exit status is 0 when nothing differs, 1 when something is DIFFERENT or MAY-DIFFER or
initialised data differs, 2 on errors.
Two address spaces. The images lay their data out differently. The new code runs in the
address space of the old: the address of each of its data accesses is translated by symbol
(g + 4 there is g + 4 here; statics of the same name are told apart by their file, or
paired in address order), read-only data only it has (literal pools, strings, tables whose
contents changed) is read from a window of its own, and pointers it reads from its constant
tables are followed one value at a time. Pointer values (results, arguments, stored words)
are equal when they designate the same symbol and offset, the same function, or constant
strings with the same contents.
Calls. A call to a function both images define is one shared event: the callee is
assumed to behave alike (EQUIVALENT modulo g (DIFFERENT) says when that assumption is not
proved), and a function is compared again with its callees followed on both sides when the
calls do not line up (one side inlined) or an argument the callee reads differs. Compiler
run-time helpers (division, 64-bit arithmetic, soft float, memcpy/memset of known size,
switch dispatchers) are modelled on both sides, so udiv against __aeabi_uidiv is no
difference.
No signatures. Machine code does not say what a function takes or returns, so:
- r0 differing at return, with everything else the same, is
MAY-DIFFER: a difference unless the function returns nothing. It becomesDIFFERENTwhen a caller in the images reads the result. r1 differing is a printed condition (if it does not return a 64-bit value), orDIFFERENTwhen a caller reads r1. - An argument register or stack word that differs at a call is no difference if the callee
is shown not to read it: a function of the images whose behaviour does not depend on it, or
any function that some call site calls with garbage there (a register an earlier call
clobbered, a stack word never written). Otherwise it is
MAY-DIFFER. - The address of a stack object passed to a callee is followed only when the two frames
hold the same values at the same places (an unchanged or lightly changed function);
frames laid out differently are
UNSUPPORTED, because the extent of the object is unknown.
A difference seen on an explored path is reported even when other paths hit a bound.
--explain prints, under each difference, the two values as expressions over the inputs,
where they part, and the disassembly of both versions.
--assume NAME / --no-assume NAME select what is taken for granted; the report always
prints the set in force:
| name | default | assumption |
|---|---|---|
sp-aligned |
on | the stack pointer is 8-byte aligned at function entry |
ret32 |
on | a function whose r1 differs at return does not return a 64-bit value, unless a caller in the images reads r1 (off: MAY-DIFFER). Turn it off when reviewing a patch to code that returns long long or double: a change confined to the high word is otherwise only a condition printed on an EQUIVALENT line |
void-r0 |
off | a function whose r0 alone differs returns nothing, unless a caller in the images reads r0 (on: EQUIVALENT with the condition printed) |
ext-arity |
off | an argument word passed with different values to a function outside the images is not one of its arguments (on: EQUIVALENT with the condition printed) |
The model itself assumes, always: results in r0/r1 and nothing observable in r2, r3, r12 and
the flags; pointers received from the caller do not point into the callee's own frame;
behaviour does not depend on the numeric value of addresses; only constant addresses in the
--mmio ranges are volatile (other memory is compared by content at each call and at
return, so a dropped duplicate store to RAM is not a difference); a call that is the last
instruction of a function does not return.
With the source (three-way) each image is first verified against it. Two images that
both match the source are equivalent wherever the source has defined behaviour, whatever
their machine code does elsewhere; if exactly one matches, the function is DIFFERENT,
unless its own code is equivalent and the difference lies in a function it calls. Where the
source check is not conclusive the machine-code comparison decides, except that a difference
it finds is not reported as DIFFERENT while neither image is shown to differ from the
source (it may only exist where the source is undefined). The source also says which
functions return void. This is the mode to use across optimisation levels and compilers:
without the source, code that relies on what the C standard or the calling convention leaves
open legitimately differs. Typical examples: gcc at -O2 does not re-extend a char or
short argument that the caller is supposed to have extended while -O0 does, and a void
function leaves different garbage in r0.
What to expect (the six corpus files of tests/corpus, gcc 16 and clang 22;
cargo test --test bindiff source_free_rates -- --nocapture prints the table):
| pair (233 functions) | no source: equivalent / may-differ / different / bounded / unsupported | --assume ext-arity --assume void-r0 |
with source |
|---|---|---|---|
gcc -O0 / -O2 |
182 / 24 / 1 / 3 / 23 | 206 / 0 / 1 / 3 / 23 | 232, 1 bounded |
gcc -Os / -O3 |
206 / 16 / 0 / 4 / 7 | 210 / 12 / 0 / 4 / 7 | 232, 1 bounded |
gcc / clang, -Os |
179 / 34 / 0 / 4 / 16 | 208 / 5 / 0 / 4 / 16 | 231, 2 bounded |
Cortex-M0 / Cortex-M3, gcc -O2 |
197 / 27 / 0 / 4 / 5 | 224 / 0 / 0 / 4 / 5 | 232, 1 bounded |
absolute / -fropi, clang M0+ |
230 / 0 / 0 / 3 / 0 | 230 / 0 / 0 / 3 / 0 | 232, 1 bounded |
absolute / -frwpi, clang M3 |
229 / 1 / 0 / 3 / 0 | 230 / 0 / 0 / 3 / 0 | 232, 1 bounded |
The one DIFFERENT is real at machine level and allowed by C: vol_putc(char) at -O2
writes the whole argument register to a peripheral register, at -O0 only its low byte; the
two differ when the caller passes a register whose upper bits are not the extension of the
character, which the calling convention forbids and the tool cannot know. The unsupported
functions pass the address of a local to a function outside the image from frames laid out
differently.
Changed code (every -DMUTANT=n build of the mutant corpora against the unmutated build,
gcc -Os, --no-assume ret32): of 95 mutants 15 are DIFFERENT, 75 MAY-DIFFER (a changed
result of a function nothing in the file calls), 1 a data difference, 4 undecided (3
unsupported, 1 bounded); none is called equivalent and nothing is reported in any other
function. With the source all of them are DIFFERENT.
Limits of the comparison: loops are explored up to the usual bounds (BOUNDED), not proved
by induction; the address of a local stored in a global (rather than passed to the callee)
is not followed; an access a[i - 1] whose constant part falls outside its object is attributed
to the neighbour; an integer constant that happens to equal an address inside an image is
taken for a pointer; functions are paired by name only, so a renamed function is one
REMOVED and one ADDED; compiler-generated fragments (.constprop, .isra, .part,
.cold, outlined code) have no interface of their own and are followed into, never listed.
What the output means
Per function:
| Status | Meaning |
|---|---|
PROVED |
Every path through the function was explored on both sides and every effect was proved equal. |
BOUNDED |
No difference exists on the explored paths, but exploration stopped at a limit — typically a loop that could not be proved by induction. The proof covers the explored trip counts only. |
MISMATCH |
The machine code provably behaves differently. The message gives a concrete input. |
INCONCLUSIVE |
The prover ran out of budget on some obligation. Nothing is claimed either way. |
UNSUPPORTED |
The function uses something cverif does not model yet. |
Overall:
- Source coverage — the share of statements and branch conditions that lie on a proved path.
- Binary coverage — the share of code bytes (instructions and literal pools, excluding alignment padding) that lie on a proved path. Bytes that no proof reaches are exactly the bytes nothing vouches for.
- Initialised data — the initial contents of every object the source defines are compared with the image.
- Score — the mean of the two coverages, or 0 as soon as anything provably differs.
- Optimisation — a best guess at the
-Olevel from the shape of the code, with ties shown when levels produce indistinguishable code. Flags recorded in debug info are reported separately as declared, because they are a claim made by the binary, not evidence.
How it works
Both the C function and the machine code are executed symbolically over the same symbolic inputs: the argument registers and stack slots defined by the AAPCS, the initial contents of memory, and the results of calls to functions defined elsewhere. Every value either side computes is a term in one shared, hash-consed bit-vector language whose constructors normalise aggressively, so the two sides usually arrive at the same term. What normalisation cannot settle goes to a built-in prover: terms are bit-blasted into an incremental CDCL SAT solver.
For each path through the C function, the machine code is executed under that path's condition; where the machine code branches on something the condition does not determine, both directions are explored. At the end of every path — and at every call to an external function — cverif proves that:
- the return value is the same;
- every memory location either side wrote holds the same value;
- external calls happen in the same order with the same arguments;
- callee-saved registers and the stack pointer are restored;
- the machine code stores nothing outside what the source writes: not into its caller's frame, not into other objects, and it keeps nothing below the stack pointer across a call.
Memory is modelled with the guarantees a compiler may use and no others. A
local whose address has not been given away aliases nothing; once it has been
passed to an external function or stored where one can find it, any pointer
obtained afterwards may point into it. On top of that the source side assumes
what the C standard makes undefined otherwise: lvalues of incompatible types
do not overlap (the character types excepted), an object modified while a
restrict pointer to it is live is accessed only through that pointer, a
dereferenced pointer is not null, and an object with internal linkage that the
program never writes and whose address it never takes keeps its initial value.
The C side records the conditions under which the program has defined behaviour (no signed overflow, no division by zero, in-range shifts, in-bounds accesses to known objects). The machine code only has to match on inputs that satisfy them, which is precisely the freedom the C standard gives a compiler.
A proof never rests on sampled inputs or on running the code. A reported counterexample is a concrete input on which the two sides evaluate differently; for floating-point code the search for one also tries inputs near the solver's candidate, and each is checked with exact arithmetic before it is reported.
Some arithmetic that compilers produce is out of reach for a SAT solver. For those the normaliser carries rewrite rules that are theorems checked on each use — for example, division by a constant compiled into a multiplication by a reciprocal is recognised and turned back into a division only when the exact Granlund–Montgomery condition holds.
Floating point is supported for code built for software floating point (the
default for Cortex-M0/M3, -msoft-float elsewhere). Values are IEEE bit
patterns; comparisons, negation and fabs are exact bit-level formulas, while
addition, multiplication, division and conversions are functions the prover
knows nothing about except that equal operands give equal results. The
runtime routines the binary calls (__aeabi_fadd, __aeabi_dcmplt,
__aeabi_f2iz, … and their libgcc names) denote the same functions. A proof
therefore never relies on reassociation, on a reciprocal, or on any other
"fast-math" identity, and a counterexample is confirmed with exact IEEE
arithmetic before it is reported. Which NaN (sign, payload) an operation
returns is left open, as in C; whether a value is a NaN is exact. Converting an
out-of-range value to an integer is undefined behaviour.
Current limits
cverif is at an early stage. Known gaps are reported as UNSUPPORTED,
INCONCLUSIVE or BOUNDED rather than silently accepted, except where noted:
- Loops. A loop whose trip count depends on the input is proved by
induction when the binary loops the way the source does: cverif pairs a
point in the source loop with one in the machine loop, finds a relation
between the two states and proves that it holds on entry and is preserved by
every iteration. Peeled, rotated and plainly unrolled loops are handled.
Loops unrolled with a remainder loop, vectorised, or replaced by a closed
form or a library call, loops in callees followed from their caller, and
recursion are explored to a bound and reported
BOUNDED. A proof by induction shows that the binary computes what the source computes whenever the source terminates; it does not show that the loop terminates. - Variadic function definitions, inline assembly and volatile bit-fields.
- Peripheral registers: every access the source makes to a volatile object
must be reproduced in order, and the binary may make no other access to a
constant address in a peripheral range (
--mmio). An extra read through a computed address that the source never treats as volatile is not detected. - A local whose address was given away stays reachable, as far as the binary side is concerned, until the next external call even if its scope has ended.
mallocand friends are ordinary external functions: the freshness of the memory they return is not known.- Some compiler arithmetic is beyond the prover, for example 64-bit division by a constant expanded inline.
- Targets other than Thumb (Cortex-M0, M3 and M4 are tested). Floating-point instructions (VFP) are not decoded, and functions passing floating-point values under the hard-float calling convention are unsupported.
<math.h>functions other thanfabsare ordinary external calls.- Whole firmware: link-time optimisation removes most of what identifies a
function (file symbols, names, boundaries), so little beyond exported entry
points is proved for LTO builds. Function-local statics of the same name in
several files (GCC's
name.N) cannot be told apart from annmlisting alone. Initialised data is compared object by object; code that reads constant data is proved against the image's bytes, so a changed table shows up as aDATAdifference, not in each function reading it. - The C front end is its own implementation and uses built-in versions of the common standard headers; unusual GNU extensions may not parse.
Building and testing
cargo build --release
cargo test --release
The crate has no dependencies. The end-to-end tests compile the corpus in
tests/corpus at every optimisation level, require every function to be
proved, and require deliberately altered builds to be rejected. They cover:
- GCC for Cortex-M3, M0 and M4 at
-O0 -O1 -O2 -O3 -Os -Og; - clang and GCC with a size-optimised Cortex-M0+ firmware command line
(
-mcpu=cortex-m0plus -fropi -fno-jump-tables -mno-unaligned-access ...), clang for-mcpu=cortex-m3 -frwpiand-mcpu=cortex-m35p+nodsp -msoft-float -frwpi, and GCC forcortex-m35p+nodsp, each at-Oz -Os -O0 -O1 -O2 -O3.
Tests skip themselves when the compiler they need is not installed.
tests/core_fuzz.rs checks the term normaliser and the prover against an
independent reference evaluator.
License
MIT