Agentic AI
AI agents paired with formal verification tools to catch bugs in large software systems
Researchers combine LLM-based agents with bounded model checking to automatically verify complex code without manual specifications.
Verifying that large-scale software systems work correctly remains a stubborn challenge: formal specifications are uncommon, and the implicit assumptions embedded throughout code often escape notice until runtime failures occur. A new paper from arXiv's software engineering track proposes a hybrid approach that harnesses both the reasoning capabilities of large language models and the rigor of automated formal verification.
How the approach works#
The strategy is built on a simple principle: agents propose, solvers verify. Rather than asking humans to write detailed specifications or running verification tools with fixed configurations, the system orchestrates an interplay between two layers. LLM agents handle tasks that benefit from semantic reasoning—such as inferring what functions should do or planning how verification should be structured—while a formal backend provides ironclad proof or disproof of bounded correctness claims.
The researchers instantiated this architecture in BMC-Agent, a verification system built atop an existing bounded model checker. The agent layer doesn't just blindly invoke the solver once; instead, it reasons about each verification problem and decides how to best apply the tool. This orchestration involves multiple steps:
- Inferring function specifications from code
- Configuring the verification task appropriately
- Breaking down complex analyses using specification-constrained stubs
- Checking proposed counterexamples deterministically and replaying them
- Refining specifications iteratively when spurious results emerge
Scaling beyond single functions#
A key insight is that the same bounded model checking engine can tackle problems ranging from individual functions to entire systems, as long as an intelligent agent steers its deployment. This bridges a longstanding gap: formal verification tools excel at proving properties rigorously but often struggle with real-world codebases that lack polish and documentation.
Evaluation and results#
The team tested BMC-Agent on three categories of targets: LLM-generated operating-system and compiler code, standard academic benchmarks, and mature open-source libraries already hardened through fuzzing campaigns. Across these workloads, the system discovered confirmed defects in well-tested software and produced bounded verification results without requiring hand-written specifications—a significant practical win over traditional formal methods.

