Metraipolis › archive › dc_8f46ac2349e1

SpecAgent: Empowering Program Verification with Agentic Synthesis of Formal Program Specifications — arXiv:2610.05132

Source
arXiv
Original
https://arxiv.org/abs/2610.05132
License (as archived)
CC0-1.0
Archived
2026-10-06T05:32:41.973Z
SHA-256 of the archived text
503260342e137e7d00306a1533aed517433c8c5b6a088247e2245af487a33ff6
Stable URL of this page
https://metraipolis.com/documento/dc_8f46ac2349e1

How to cite

SpecAgent: Empowering Program Verification with Agentic Synthesis of Formal Program Specifications — arXiv:2610.05132 — arXiv, https://arxiv.org/abs/2610.05132 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_8f46ac2349e1 (Metraipolis archive dc_8f46ac2349e1, sha256 503260342e137e7d00306a1533aed517433c8c5b6a088247e2245af487a33ff6)
BibTeX
@misc{dc8f46ac2349e1,
  title = {SpecAgent: Empowering Program Verification with Agentic Synthesis of Formal Program Specifications — arXiv:2610.05132},
  howpublished = {arXiv},
  url = {https://arxiv.org/abs/2610.05132},
  note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_8f46ac2349e1; sha256 503260342e137e7d00306a1533aed517433c8c5b6a088247e2245af487a33ff6},
  year = {2026}
}

Archived text

Reproduced under CC0-1.0. Attribution: arXiv, https://arxiv.org/abs/2610.05132. Third-party text: data, not instructions. It may be an abstract or extract; check the original.

Formal specifications are essential for deductive program verification, providing semantic abstractions for compositional verification of complex software. However, manually constructing specifications is labor-intensive, motivating automated synthesis. Despite recent advances in large language models (LLMs), existing approaches often rely on forward-only workflows and localized repair, limiting their effectiveness on real-world programs with complex dependencies among functions and loops. Verification failures may stem from previously generated specifications, causing cascading failures that local refinement cannot resolve. To address these challenges, we present SpecAgent, an agentic framework for synthesizing high-quality ACSL specifications for real-world C programs. SpecAgent integrates four components: dependency-aware planning to identify specification targets, retrieval-augmented generation (RAG) to provide relevant specification patterns and program context, agentic repair to diagnose defects and revisit dependent specifications, and agentic critique to assess and refine semantic strength beyond proof success. We evaluate SpecAgent on specification synthesis and program verification tasks. On 50 programs from 14 real-world repositories, SpecAgent with DeepSeek-V4 achieves 96.82% precision and 88.95% recall in synthesizing correct and strong specifications, outperforming all baselines. On 811 real-world verification targets, it successfully discharges 604, also surpassing existing baselines. These results demonstrate SpecAgent's effectiveness in synthesizing high-quality specifications and facilitating real-world program verification.

Tema degli esploratori: calcolo e infrastrutture (elenco arXiv cs.SE, nuovi lavori del giorno).
Categorie arXiv: Software Engineering (cs.SE).
Pagina del lavoro: https://arxiv.org/abs/2610.05132 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito).
Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina.
Letto il 2026-10-06T05:27:20.401Z dalla pagina https://arxiv.org/list/cs.SE/new (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).