Find a tool · LLVM IR

Verifying LLVM IR code

Change the question

I have code and want to prove

Effort
My code uses

Ranked by: support for this property, stage, coverage of the features you pick, and trust. Tools that work on compiled code rank lower. Ranking as JSON.

  1. Automatically checks that an optimized LLVM IR function still behaves like the original, or shows a counterexample. Loops are checked only up to a set bound.

    Effort
    Push-button
    Covers
    2 of 14 LLVM IR features
    Relies on
    Z3 decides refinement; no proof certificates. Results hold only up to the loop bound. Alive2's own SMT model of LLVM IR; run on LLVM's tests, but no published validation.
    Stage 1 · Usable Trust: Checker partial, Semantics partial, Frontend strong, Binary gap weak, Escape hatches partial 1/5 strong
  2. s2n-bignum on compiled code: x86-64

    Prove hand-written x86-64 or Arm64 assembly correct in HOL Light, on the exact bytes of the built object file; used for AWS's cryptography code.

    Effort
    Interactive
    Covers
    0 of 0 common features
    Relies on
    Hand-written instruction models; random co-simulation against real CPUs in CI.
    Stage 1 · Usable Trust: Checker strong, Semantics partial, Frontend strong, Binary gap strong, Escape hatches strong 4/5 strong
  3. Islaris on compiled code: AArch64

    Prove Arm or RISC-V machine code correct in Rocq, against the full official Sail ISA models, using Isla symbolic execution and an Iris separation logic.

    Effort
    Interactive
    Covers
    0 of 0 common features
    Relies on
    Isla and its SMT solver are trusted; Rocq checks the separation-logic proofs. Opcodes come from objdump output that the user trims and annotates by hand.
    Stage 0 · Research Trust: Checker partial, Semantics strong, Frontend partial, Binary gap strong, Escape hatches partial 2/5 strong
  4. LNSym on compiled code: AArch64

    Prove Armv8 (AArch64) machine code correct in Lean 4 by symbolic simulation over a hand-written model; aimed at AWS-LC cryptographic routines.

    Effort
    Interactive
    Covers
    0 of 0 common features
    Relies on
    Hand-written AArch64 subset; random co-simulation against real Arm CPUs in CI. Opcodes are pasted from objdump into Lean; not linked to the binary by a proof.
    Stage 0 · Research Trust: Checker strong, Semantics partial, Frontend partial, Binary gap strong, Escape hatches partial 2/5 strong

Ask something else about LLVM IR

New to this? Start with the glossary: auto-activeAuto-active verification. You write specifications and hints in the code; an automatic solver does the proving., interactiveInteractive theorem prover. A proof assistant where you write proofs step by step and the system checks each step., trusted computing baseTrusted computing base (TCB). Everything that must be correct for a proof to mean what it says..

esc