Metraipolis › archive › dc_bc3b9e677a3c
Compositional Loop Invariant Inference for Multiphase Programs via Structured Neurosymbolic Reasoning — arXiv:2611.07882
- Source
- arXiv (en)
- Original
- https://arxiv.org/abs/2611.07882
- License (as archived)
- CC0-1.0
- Archived
- 2026-11-06T14:51:32.106Z
- SHA-256 of the archived text
b3931b9adee8cfd5810daf0f4d6822cdba2eef55fab4f4845ecc88410a377dfb- Stable URL of this page
https://metraipolis.com/documento/dc_bc3b9e677a3c
How to cite
Compositional Loop Invariant Inference for Multiphase Programs via Structured Neurosymbolic Reasoning — arXiv:2611.07882 — arXiv (en), https://arxiv.org/abs/2611.07882 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_bc3b9e677a3c (Metraipolis archive dc_bc3b9e677a3c, sha256 b3931b9adee8cfd5810daf0f4d6822cdba2eef55fab4f4845ecc88410a377dfb)
BibTeX
@misc{dcbc3b9e677a3c,
title = {Compositional Loop Invariant Inference for Multiphase Programs via Structured Neurosymbolic Reasoning — arXiv:2611.07882},
howpublished = {arXiv (en)},
url = {https://arxiv.org/abs/2611.07882},
note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_bc3b9e677a3c; sha256 b3931b9adee8cfd5810daf0f4d6822cdba2eef55fab4f4845ecc88410a377dfb},
year = {2026}
}Archived text
Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2611.07882. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
Loop invariants are essential for deductive program verification, yet automatically inferring them for {multiphase programs}, whose loops contain conditional branches that induce multiple execution phases with distinct behaviors, remains an open problem. Existing LLM-based methods either reason about loops as a whole or use explicit branch information to generate atomic assertions jointly across branches, without maintaining complete candidate sub-invariants for independent generation and targeted repair. We present CLOVER, a structured neurosymbolic reasoning framework for multiphase invariant inference built on two interlinked mechanisms. First, compositional inference: CLOVER statically decomposes a loop into symbolic {loop branch sequences}, conjunctions of the loop guard and branch conditions that characterize distinct execution scenarios, and guides the LLM to generate candidate sub-invariants for each one independently, so that each LLM query focuses on a single execution scenario rather than the entire loop. Second, counterexample-guided localized refinement: when SMT verification rejects a composed disjunctive invariant, CLOVER traces the counterexample back through the branch structure to identify which specific loop branch sequence caused the failure and repairs only that sub-invariant, preserving all correct components. Both mechanisms are unified by a shared symbolic structure derived from the loop's branch semantics, which guides what the LLM generates, how candidates are composed, and where refinement is directed. We evaluate CLOVER on 316 linear arithmetic, 50 nonlinear arithmetic, and 54 multiphase benchmarks. CLOVER solves 35 of 54 multiphase benchmarks, outperforming the best LLM-based baseline (29) by 20.7\% and the best traditional method (22) by 59.1\%. On linear/nonlinear benchmarks, CLOVER remains competitive, solving 355 of 366 programs overall.
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/2611.07882 — 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-11-06T14:21:57.534Z dalla pagina https://arxiv.org/list/cs.SE/new (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).