InvWeaver: Deductive Feedback for Invariant Synthesis in Interacting-Loop Programs

Guangyuan Wu, Weining Cao, Zehui Tan, Yuan Yao, Hengfeng Wei +2 more
7/6/2026
cs.LGcs.PL

No confident code implementation found for this paper.

Abstract

Loop invariant inference is a fundamental yet challenging problem in program verification. Recent LLM-aided guess-and-check techniques have shown strong performance on single-loop programs, but they often struggle with programs containing multiple interacting loops.

Show full abstract

This paper presents InvWeaver, a neuro-symbolic framework for synthesizing invariants for such programs. The key idea is to expose inter-loop dependencies and propagate proof obligations through a combination of loop-level abstraction, obligation-guided inference, and weakest-precondition-based refinement. We evaluate InvWeaver on a comprehensive benchmark suite, including a newly curated dataset derived from classic algorithms. Experimental results show that InvWeaver substantially outperforms existing invariant inference methods, solving 72 out of 82 multi-loop benchmark problems and maintaining strong performance on single-loop tasks.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{wu2026invweaver,
  title  = {InvWeaver: Deductive Feedback for Invariant Synthesis in Interacting-Loop Programs},
  author = {Guangyuan Wu and Weining Cao and Zehui Tan and Yuan Yao and Hengfeng Wei and Taolue Chen and Xiaoxing Ma},
  year   = {2026},
  eprint = {2607.05478},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2607.05478v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2607.05478.svg)](https://codeofpaper.com/paper/2607.05478)

Discussion