Software Verification
LLM-Assisted Framework Builds Machine-Checked Verification for C Libraries
Researchers introduce Accord, a system that combines large language models with formal verification to establish safety guarantees and conformance proofs for real-world C codebases at scale.
Verifying that C libraries meet their specifications remains a substantial challenge in software engineering, particularly when dealing with complex codebases that need to work reliably across different calling contexts. Researchers have developed Accord, an LLM-assisted framework designed to construct machine-checked assurance cases—formal, auditable documents that demonstrate conformance between code and intended requirements.
The Problem with Existing Approaches#
Traditional verification focuses narrowly on proving individual theorems, but real-world library verification demands much more. The work involves simultaneously constructing detailed function specifications, proving those specifications hold, and ensuring that interfaces compose correctly across different call sequences. This becomes especially difficult for open libraries used by unknown external callers, where assumptions about how functions will be called cannot be tightly controlled.
How Accord Works#
The framework operates through two complementary phases:
- Bottom-up construction: Accord analyzes requirements and builds candidate function specifications and interface protocols from the ground up, exposing which call sequences are permitted and what resource assumptions apply.
- Modular proof development: The system constructs proofs for each module while gathering feedback that iteratively refines both the specifications and their formal justifications.
A key innovation is the interface protocol—a structure that documents safe calling patterns and resource obligations, with the guarantee that code remains safe as long as verified contracts hold and callers meet their obligations.
Real-World Scale and Results#
Implemented using VST (Verified Software Toolchain) in the Rocq proof assistant, Accord demonstrated its capabilities across diverse benchmarks. The system established memory safety for 259 function definitions spanning seven test cases from six different benchmark families. These included industrial cryptographic modules, plus functional correctness verification for red-black trees and ML-DSA. Human review time ranged from roughly 0.17 to 8 hours per case.

