{
  "id": "solc-smtchecker",
  "name": "Solidity SMTChecker",
  "aka": [
    "SolCMC",
    "Solidity Compiler's Model Checker"
  ],
  "summary": "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.",
  "use_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."
  ],
  "avoid_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."
  ],
  "effort": "push-button",
  "open": "open-source",
  "license": "GPL-3.0",
  "maintainers": [
    "Solidity team (Argot Collective)"
  ],
  "links": {
    "homepage": "https://soliditylang.org/",
    "repo": "https://github.com/argotorg/solidity",
    "docs": "https://docs.soliditylang.org/en/latest/smtchecker.html",
    "paper": "https://link.springer.com/chapter/10.1007/978-3-031-13185-1_16"
  },
  "components": [
    {
      "role": "frontend",
      "name": "solc parser and type checker",
      "assurance": "trusted",
      "note": "The SMTChecker runs inside the compiler on the same parsed and type-checked code that solc compiles."
    },
    {
      "role": "semantics",
      "name": "SMTChecker's model of Solidity",
      "assurance": "trusted",
      "note": "Built into the compiler; tested by the compiler's own SMTChecker test suite."
    },
    {
      "role": "translation",
      "name": "CHC engine (Horn clauses covering any number of transactions); BMC engine (deprecated)",
      "assurance": "trusted"
    },
    {
      "role": "checker",
      "name": "Z3 (with its Spacer Horn solver)",
      "ref": "z3",
      "ref_kind": "prover",
      "assurance": "trusted",
      "note": "Default. Built into the JavaScript build of solc (soljson.js); native builds use a z3 installed on the system."
    },
    {
      "role": "checker",
      "name": "Eldarica",
      "assurance": "trusted",
      "note": "Alternative Horn solver for the CHC engine, used only if z3 is not enabled."
    },
    {
      "role": "checker",
      "name": "cvc5",
      "ref": "cvc5",
      "ref_kind": "prover",
      "assurance": "trusted",
      "note": "Used only by the deprecated BMC engine."
    },
    {
      "role": "compiler",
      "name": "solc code generator and optimizer",
      "assurance": "trusted",
      "note": "Produces the bytecode after the check; not verified."
    }
  ],
  "verifies": [
    {
      "target": "solidity",
      "note": "Works on Solidity source inside the compiler. Enabled by choosing an engine (--model-checker-engine); the default is no engine."
    }
  ],
  "properties": {
    "no-ub": {
      "status": "full",
      "note": "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": "https://docs.soliditylang.org/en/latest/smtchecker.html"
    },
    "functional": {
      "status": "partial",
      "note": "Properties are assert statements inside the contract; there is no separate specification language.",
      "source": "https://docs.soliditylang.org/en/latest/smtchecker.html"
    },
    "equivalence": {
      "status": "partial",
      "note": "No dedicated support. You can call two versions from one contract and assert that their results are equal."
    },
    "info-flow": {
      "status": "na",
      "note": "Contract code, storage and inputs are public on chain, so secrecy properties do not apply."
    },
    "concurrency": {
      "status": "na",
      "note": "EVM execution is sequential. Reentrancy is covered under external calls."
    },
    "termination": {
      "status": "none",
      "note": "There are no checks for termination or liveness among the verification targets.",
      "source": "https://docs.soliditylang.org/en/latest/smtchecker.html"
    }
  },
  "features": {
    "core.integers": {
      "status": "full",
      "note": "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": "https://docs.soliditylang.org/en/latest/smtchecker.html"
    },
    "core.floats": {
      "status": "na",
      "note": "Solidity has no floating point; fixed-point types can be declared but not assigned.",
      "source": "https://docs.soliditylang.org/en/latest/types.html#fixed-point-numbers"
    },
    "core.heap": {
      "status": "unknown",
      "note": "How memory and storage references that point to the same data are handled is not described in the docs."
    },
    "core.arrays": {
      "status": "full",
      "note": "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": "https://docs.soliditylang.org/en/latest/smtchecker.html"
    },
    "core.loops": {
      "status": "full",
      "note": "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": "https://docs.soliditylang.org/en/latest/smtchecker.html"
    },
    "core.recursion": {
      "status": "unknown",
      "note": "CHC uses function summaries for internal calls; the docs do not say how recursion is handled. BMC does not inline recursive calls.",
      "source": "https://docs.soliditylang.org/en/latest/smtchecker.html"
    },
    "core.higher-order": {
      "status": "unknown",
      "note": "Function types are not in the docs' list of supported types. Unsupported constructs are over-approximated (sound, but may give false alarms).",
      "source": "https://docs.soliditylang.org/en/latest/smtchecker.html"
    },
    "core.concurrency": {
      "status": "na",
      "note": "The EVM has no threads."
    },
    "core.io": {
      "status": "na",
      "note": "Contracts have no file or network I/O."
    },
    "core.stdlib": {
      "status": "partial",
      "note": "keccak256, ecrecover, ripemd160, blockhash and the ABI encoding functions are uninterpreted functions, so their actual results are unknown to the checker.",
      "source": "https://docs.soliditylang.org/en/latest/smtchecker.html"
    },
    "evm.gas": {
      "status": "none",
      "note": "Gas is not modeled; gasleft() is abstracted.",
      "source": "https://docs.soliditylang.org/en/latest/smtchecker.html"
    },
    "evm.storage": {
      "status": "full",
      "note": "State variables and mappings are tracked across any number of transactions (CHC engine).",
      "source": "https://docs.soliditylang.org/en/latest/smtchecker.html"
    },
    "evm.calls": {
      "status": "full",
      "note": "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": "https://docs.soliditylang.org/en/latest/smtchecker.html"
    },
    "evm.precompiles": {
      "status": "partial",
      "note": "ecrecover and ripemd160 are uninterpreted functions; precompile results are not computed.",
      "source": "https://docs.soliditylang.org/en/latest/smtchecker.html"
    }
  },
  "trust": {
    "checker": {
      "level": "amber",
      "summary": "Z3's Horn solver (or Eldarica) decides; no proof certificates.",
      "note": "The SMTChecker's own encoding is also trusted. An open issue (#17193, November 2026) reports an unsound gasleft() assumption for the Amsterdam target.",
      "source": "https://github.com/argotorg/solidity/issues/17193"
    },
    "semantics": {
      "level": "amber",
      "summary": "Solidity model built into the compiler; tested by its own test suite.",
      "source": "https://github.com/argotorg/solidity/tree/develop/test/libsolidity/smtCheckerTests"
    },
    "frontend": {
      "level": "green",
      "summary": "Runs inside solc on the compiler's own parsed and type-checked code."
    },
    "binary_gap": {
      "level": "red",
      "summary": "The check is on the source; solc's code generator and optimizer are not verified."
    },
    "escape_hatches": {
      "level": "amber",
      "summary": "Trusted-call mode and target filters are compiler options and easy to find.",
      "note": "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": "https://docs.soliditylang.org/en/latest/smtchecker.html"
    }
  },
  "stage_evidence": {
    "public_artifact": {
      "met": true,
      "evidence": "https://github.com/argotorg/solidity"
    },
    "published_use": {
      "met": true,
      "evidence": "https://link.springer.com/chapter/10.1007/978-3-031-13185-1_16",
      "note": "Alt et al., SolCMC (CAV 2022): case studies on the Ethereum deposit contract and OpenZeppelin's ERC777."
    },
    "installs_on_current": {
      "met": true,
      "evidence": "https://github.com/argotorg/solidity/releases/tag/v0.8.39",
      "note": "Ships with every solc release; native builds need z3 (or Eldarica/cvc5) installed."
    },
    "user_docs": {
      "met": true,
      "evidence": "https://docs.soliditylang.org/en/latest/smtchecker.html"
    },
    "external_users": {
      "met": true,
      "evidence": "https://arxiv.org/abs/2402.10750",
      "note": "Independent researchers (Bartoletti et al., 2024) compared SolCMC with the Certora Prover in a benchmark study."
    },
    "soundness_channel": {
      "met": true,
      "evidence": "https://github.com/argotorg/solidity/labels/smt",
      "note": "Public GitHub issues with an 'smt' label, including soundness reports such as #17193."
    }
  },
  "production_users": [],
  "last_release": {
    "version": "v0.8.39",
    "date": "2026-11-19",
    "source": "https://github.com/argotorg/solidity/releases/tag/v0.8.39"
  },
  "used_for": [
    {
      "name": "Ethereum beacon chain deposit contract: an assertion proved safe after a small rewrite (SolCMC paper)",
      "url": "https://verify.inf.usi.ch/sites/default/files/solcmc.pdf"
    },
    {
      "name": "OpenZeppelin ERC777: found that total supply can change during a transfer through reentrant hooks (SolCMC paper)",
      "url": "https://verify.inf.usi.ch/sites/default/files/solcmc.pdf"
    }
  ],
  "last_checked": "2026-11-26",
  "attestation": "maintainer",
  "claimed_by_authors": false,
  "sources": [
    {
      "url": "https://docs.soliditylang.org/en/latest/smtchecker.html",
      "title": "SMTChecker and Formal Verification (Solidity docs)",
      "accessed": "2026-11-26"
    },
    {
      "url": "https://github.com/argotorg/solidity/blob/develop/docs/smtchecker.rst",
      "title": "SMTChecker docs source (develop branch; BMC deprecation note)",
      "accessed": "2026-11-26"
    },
    {
      "url": "https://verify.inf.usi.ch/sites/default/files/solcmc.pdf",
      "title": "Alt, Blicha, Hyvärinen, Sharygina, SolCMC: Solidity Compiler's Model Checker (CAV 2022), author copy",
      "accessed": "2026-11-26"
    },
    {
      "url": "https://arxiv.org/abs/2402.10750",
      "title": "Bartoletti et al., Towards benchmarking of Solidity verification tools (2024)",
      "accessed": "2026-11-26"
    },
    {
      "url": "https://github.com/argotorg/solidity/releases",
      "title": "Solidity releases",
      "accessed": "2026-11-26"
    },
    {
      "url": "https://github.com/argotorg/solidity/blob/develop/README.md",
      "title": "Solidity README (maintained by the Argot Collective)",
      "accessed": "2026-11-26"
    }
  ],
  "computed": {
    "kind": "toolchains",
    "methodology_version": "0.1",
    "built": "2026-11-26",
    "links": {
      "html": "/toolchains/solc-smtchecker/",
      "json": "/toolchains/solc-smtchecker.json",
      "markdown": "/toolchains/solc-smtchecker.md"
    },
    "stage": {
      "stage": 1,
      "name": "Usable",
      "criteria": [
        {
          "key": "public_artifact",
          "stage": 0,
          "label": "Publicly available",
          "met": true,
          "evidence": "https://github.com/argotorg/solidity",
          "computed": false
        },
        {
          "key": "published_use",
          "stage": 0,
          "label": "At least one published verification uses it",
          "met": true,
          "evidence": "https://link.springer.com/chapter/10.1007/978-3-031-13185-1_16",
          "note": "Alt et al., SolCMC (CAV 2022): case studies on the Ethereum deposit contract and OpenZeppelin's ERC777.",
          "computed": false
        },
        {
          "key": "recent_release",
          "stage": 1,
          "label": "Released or updated in the last 12 months",
          "met": true,
          "evidence": "https://github.com/argotorg/solidity/releases/tag/v0.8.39",
          "note": "Latest release: v0.8.39, 2026-11-19.",
          "computed": true
        },
        {
          "key": "installs_on_current",
          "stage": 1,
          "label": "Installs and runs on current platforms",
          "met": true,
          "evidence": "https://github.com/argotorg/solidity/releases/tag/v0.8.39",
          "note": "Ships with every solc release; native builds need z3 (or Eldarica/cvc5) installed.",
          "computed": false
        },
        {
          "key": "user_docs",
          "stage": 1,
          "label": "User documentation or tutorial",
          "met": true,
          "evidence": "https://docs.soliditylang.org/en/latest/smtchecker.html",
          "computed": false
        },
        {
          "key": "external_users",
          "stage": 1,
          "label": "Used by a group other than its authors",
          "met": true,
          "evidence": "https://arxiv.org/abs/2402.10750",
          "note": "Independent researchers (Bartoletti et al., 2024) compared SolCMC with the Certora Prover in a benchmark study.",
          "computed": false
        },
        {
          "key": "production_users",
          "stage": 2,
          "label": "Verified code in production at two or more independent organizations",
          "met": false,
          "note": "None recorded.",
          "computed": true
        },
        {
          "key": "checker_not_red",
          "stage": 2,
          "label": "Checker axis is not red",
          "met": true,
          "computed": true
        },
        {
          "key": "semantics_not_red",
          "stage": 2,
          "label": "Semantics axis is not red",
          "met": true,
          "computed": true
        },
        {
          "key": "soundness_channel",
          "stage": 2,
          "label": "Public channel for soundness bugs",
          "met": true,
          "evidence": "https://github.com/argotorg/solidity/labels/smt",
          "note": "Public GitHub issues with an 'smt' label, including soundness reports such as #17193.",
          "computed": false
        }
      ],
      "missing_for_next": [
        "production_users"
      ]
    }
  }
}