Toolchain verifies Solidity

Solidity SMTChecker

Also known as SolCMC, Solidity Compiler's Model Checker

Turn on a Solidity compiler option and it tries to prove your assert statements and the absence of overflow, division by zero and out-of-bounds access.

Stage 1 · Usable Push-button Open source · GPL-3.0 v0.8.39 · 7 days ago
Trust: Checker partial, Semantics partial, Frontend strong, Binary gap weak, Escape hatches partial CheckerSemanticsFrontendBinary gapEscape hatches 1 of 5 strong, 1 weak

Use it if

  • You want a free, push-button check built into the Solidity compiler you already use.
  • Your properties fit in assert statements, with require statements as assumptions.
  • You want counterexamples, or inferred contract invariants, reported as compiler warnings.

Look elsewhere if

  • You need a separate specification language, ghost state or quantifiers; properties are plain assert statements.
  • Your contract relies on inline assembly, hashing or ABI encoding; these are abstracted, which often causes false alarms.
  • You need the guarantee to cover the deployed bytecode; the check is on the source and solc's code generator is trusted.

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
    Solidity code
  2. Front end
    solc parser and type checker Trusted The SMTChecker runs inside the compiler on the same parsed and type-checked code that solc compiles.
  3. Semantics
    SMTChecker's model of Solidity Trusted Built into the compiler; tested by the compiler's own SMTChecker test suite.
  4. Translation
    CHC engine (Horn clauses covering any number of transactions); BMC engine (deprecated) Trusted
  5. Checker
    Z3 (with its Spacer Horn solver) Trusted Default. Built into the JavaScript build of solc (soljson.js); native builds use a z3 installed on the system.
  6. Checker
    Eldarica Trusted Alternative Horn solver for the CHC engine, used only if z3 is not enabled.
  7. Checker
    cvc5 Trusted Used only by the deprecated BMC engine.
  8. Compiler
    solc code generator and optimizer Trusted Produces the bytecode after the check; not verified.

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

  • Solidity: Works on Solidity source inside the compiler. Enabled by choosing an engine (--model-checker-engine); the default is no engine.

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's Horn solver (or Eldarica) decides; no proof certificates.

    The SMTChecker's own encoding is also trusted. An open issue (#17193, November 2026) reports an unsound gasleft() assumption for the Amsterdam target.

    source

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

    Solidity model built into the compiler; tested by its own test suite.

    source

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

    Runs inside solc on the compiler's own parsed and type-checked code.

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

    The check is on the source; solc's code generator and optimizer are not verified.

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

    Trusted-call mode and target filters are compiler options and easy to find.

    Trusted external calls (--model-checker-ext-calls=trusted) can be unsound if their assumptions are inconsistent, and targets can be switched off. Properties the solver cannot settle are still reported as warnings ("might happen"), not silently passed.

    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.Checks assertions, overflow and underflow, division by zero, out-of-bounds index access, popping an empty array and insufficient balance for transfer. Overflow and underflow are off by default for Solidity 0.8.7 and later, because checked arithmetic already reverts.
Source
Checks assertions, overflow and underflow, division by zero, out-of-bounds index access, popping an empty array and insufficient balance for transfer. Overflow and underflow are off by default for Solidity 0.8.7 and later, because checked arithmetic already reverts. source
Functional correctness The code meets a written specification of its results, for example “returns the sorted list” or “implements this RFC”. PartialPartial.Properties are assert statements inside the contract; there is no separate specification language.
Source
Properties are assert statements inside the contract; there is no separate specification language. 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. PartialPartial.No dedicated support. You can call two versions from one contract and assert that their results are equal. No dedicated support. You can call two versions from one contract and assert that their results are equal.
Information flow Secrets do not influence public outputs, timing or memory access patterns (constant-time code, non-interference). Not applicableNot applicable.Contract code, storage and inputs are public on chain, so secrecy properties do not apply. Contract code, storage and inputs are public on chain, so secrecy properties do not apply.
Concurrency Correctness of code with threads or shared memory: absence of data races, deadlock freedom, linearizability of concurrent data structures. Not applicableNot applicable.EVM execution is sequential. Reentrancy is covered under external calls. EVM execution is sequential. Reentrancy is covered under external calls.
Termination and liveness Every run finishes, or the system keeps making progress (liveness). Not supportedNot supported.There are no checks for termination or liveness among the verification targets.
Source
There are no checks for termination or liveness among the verification targets. source

Language coverage

Which parts of Solidity 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.Integers become mathematical integers with range checks. Bitwise operations need bit-vector reasoning, which solvers find hard: the SolCMC paper rewrote one '&' as '%' so that a proof of the Ethereum deposit contract went through.
Source
Integers become mathematical integers with range checks. Bitwise operations need bit-vector reasoning, which solvers find hard: the SolCMC paper rewrote one '&' as '%' so that a proof of the Ethereum deposit contract went through. source
Floating point IEEE 754 floating-point arithmetic, including rounding and NaNs. Not applicableNot applicable.Solidity has no floating point; fixed-point types can be declared but not assigned.
Source
Solidity has no floating point; fixed-point types can be declared but not assigned. source
Heap and pointers Dynamically allocated memory, pointers or references, and aliasing. UnknownUnknown.How memory and storage references that point to the same data are handled is not described in the docs. How memory and storage references that point to the same data are handled is not described in the docs.
Arrays and buffers Indexed memory such as arrays, slices, vectors and byte buffers. SupportedSupported.Arrays, mappings, bytes and strings are SMT arrays with a length; push and pop are modeled precisely and out-of-bounds access is checked.
Source
Arrays, mappings, bytes and strings are SMT arrays with a length; push and pop are modeled precisely and out-of-bounds access is checked. source
Loops Unbounded loops, which need invariants or bounds to verify. SupportedSupported.The CHC engine handles loops by finding invariants automatically. If the solver gives up, the warning says the failure "might happen". The deprecated BMC engine ignores loops.
Source
The CHC engine handles loops by finding invariants automatically. If the solver gives up, the warning says the failure "might happen". The deprecated BMC engine ignores loops. source
Recursion Functions that call themselves, directly or through others. UnknownUnknown.CHC uses function summaries for internal calls; the docs do not say how recursion is handled. BMC does not inline recursive calls.
Source
CHC uses function summaries for internal calls; the docs do not say how recursion is handled. BMC does not inline recursive calls. source
Higher-order code Function pointers, closures and callbacks. UnknownUnknown.Function types are not in the docs' list of supported types. Unsupported constructs are over-approximated (sound, but may give false alarms).
Source
Function types are not in the docs' list of supported types. Unsupported constructs are over-approximated (sound, but may give false alarms). source
Threads and shared memory Concurrent threads with locks, atomics or message passing. Not applicableNot applicable.The EVM has no threads. The EVM has no threads.
I/O and system calls Files, network, system calls and foreign-function calls. Not applicableNot applicable.Contracts have no file or network I/O. Contracts have no file or network I/O.
Standard library Specifications or models for the language's standard library. PartialPartial.keccak256, ecrecover, ripemd160, blockhash and the ABI encoding functions are uninterpreted functions, so their actual results are unknown to the checker.
Source
keccak256, ecrecover, ripemd160, blockhash and the ABI encoding functions are uninterpreted functions, so their actual results are unknown to the checker. source

EVM-specific features

EVM-specific features
FeatureSupportNotes
Gas Gas accounting and out-of-gas behavior. Not supportedNot supported.Gas is not modeled; gasleft() is abstracted.
Source
Gas is not modeled; gasleft() is abstracted. source
Storage Persistent contract storage. SupportedSupported.State variables and mappings are tracked across any number of transactions (CHC engine).
Source
State variables and mappings are tracked across any number of transactions (CHC engine). source
External calls Calls to other contracts, including reentrancy. SupportedSupported.External calls are treated as unknown code that can do anything, including calling back into the contract. A trusted mode uses the known callee code instead; the docs warn it can be unsound if its assumptions are inconsistent.
Source
External calls are treated as unknown code that can do anything, including calling back into the contract. A trusted mode uses the known callee code instead; the docs warn it can be unsound if its assumptions are inconsistent. source
Precompiles Built-in contracts such as hashing and elliptic-curve operations. PartialPartial.ecrecover and ripemd160 are uninterpreted functions; precompile results are not computed.
Source
ecrecover and ripemd160 are uninterpreted functions; precompile results are not computed. source

Stage

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

Stage 0 Research Met
  • Met: Publicly available evidence
  • Met: At least one published verification uses it Alt et al., SolCMC (CAV 2022): case studies on the Ethereum deposit contract and OpenZeppelin's ERC777. evidence
Stage 1 Usable Met
  • Met: Released or updated in the last 12 months Latest release: v0.8.39, 2026-11-19. evidence
  • Met: Installs and runs on current platforms Ships with every solc release; native builds need z3 (or Eldarica/cvc5) installed. evidence
  • Met: User documentation or tutorial evidence
  • Met: Used by a group other than its authors Independent researchers (Bartoletti et al., 2024) compared SolCMC with the Certora Prover in a benchmark study. evidence
Stage 2 Production Next
  • 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 issues with an 'smt' label, including soundness reports such as #17193. evidence

In use

Verified code in production, and notable verification projects.

Facts and sources

Effort
Push-button: Run it on your code; little or no annotation.
Licence
Open source, GPL-3.0
Maintained by
Solidity team (Argot Collective)
Latest release
v0.8.39 (19 Nov 2026) source
Last checked
26 Nov 2026

Further sources

esc