International Symposium on Leveraging Applications of Formal Methods, Verification, and Validation • Kos, Greece
Time: Friday, 30.10
Room: Room 2
Authors: Youcheng Sun
Abstract: Verifying large software systems is difficult. Formal specifications are rarely available, and the assumptions code relies on are often encoded implicitly at call sites rather than enforced at function boundaries. This paper presents agentic model checking, a verification scheme that combines LLM agents with bounded model checking (BMC) under the principle that agents propose, solvers verify: agents perform semantic reasoning such as specification inference and verification planning, while every soundness-critical decision remains with the BMC backend. We realize this scheme in BMC-Agent, an agentic verification system built on an off-the-shelf bounded model checker. The key contribution of this work is agentic orchestration of the model checker. Rather than fixing a single verification recipe, BMC-Agent plans how bounded model checking should be applied to each verification task. It infers function specifications, configures the verification task, decomposes analysis compositionally using specification-constrained stubs, scopes whole-program verification to property-relevant code, validates counterexamples through deterministic checks and replay, and iteratively refines specifications in response to spurious witnesses. This orchestration enables the same BMC engine to scale from individual functions to large software systems while preserving solver-backed verification. We evaluate BMC-Agent on LLM-generated operating-system and compiler code, standard verification benchmarks, and mature OSS-Fuzz-hardened libraries. Across these workloads, BMC-Agent discovers confirmed defects in heavily tested software and produces bounded clean verifications without requiring manually written specifications. These results demonstrate that agentic orchestration substantially extends the practical scalability of bounded model checking for real-world software.