arXiv:2610.29147cs.SEOct 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2610.29147

VERDICT: Multi-Agent Parallel Modular Verification

Tengjie Lin, Zhongyi Wang, Haokun Li, Jianwei Yin, Mingshuai Chen

Tengjie Lin 1^{1}, Zhongyi Wang 1^{1}, Haokun Li 2^{2}, Jianwei Yin 1^{1}, and Mingshuai Chen 1,∗^{1,*}

1^{1}Zhejiang University, Hangzhou, China 2^{2}Peking University, Beijing, China

1^{1}{tengjie.lin, zhongyi.wang, zjuyjw, m.chen}@zju.edu.cn 2^{2}ker@pm.me

Abstract—Deductive verification scales to large software systems through modular reasoning, where formal contracts summarize the behavior of individual functions and enable their independent verification. Its central bottleneck is specification synthesis: constructing the contracts required for modular verification. Recent advances in large language models (LLMs) have enabled automated specification synthesis at unprecedented scale. However, existing approaches remain fundamentally bottom-up, requiring callees to be verified before their callers. This dependency limits parallelism and provides no principled mechanism for resolving interprocedural inconsistencies that propagate across call chains.

We present VERDICT, a multi-agent framework for parallelizing modular deductive verification of large-scale programs. VERDICT is built on two key principles. First, assumption-based parallel specification synthesis assigns an agent to each function and allows it to proceed immediately using assumed contracts for its callees, enabling verification to proceed in parallel across the program. Second, bidirectional interprocedural conflict reconciliation resolves the inconsistencies introduced by these assumptions: when a synthesized contract contradicts an assumption, agents propagate the necessary revisions both up and down the call graph until the contracts converge. Experimental results on real-world C programs show that VERDICT synthesizes higher-quality specifications than existing approaches while substantially reducing verification time. In particular, VERDICT is the first approach that scales to the complete 20,000-line X.509 parser, ruling out nearly all the potential runtime errors within hours, whereas prior tools like PREGUSS fall far short even after days of execution.

Index Terms—program verification, specification synthesis, deductive verification, large language models, multi-agent systems

I. INTRODUCTION

Automated verification of large-scale software is an essential yet long-standing challenge in both formal methods and software engineering. A key enabler for modern deductive verifiers to scale to real-world systems is modularization [1]: Each module (typically a function) is associated with a contract—comprising preconditions and postconditions—that captures the semantic behavior of the function. Once a function is verified against its contract, every call to it simply invokes the contract rather than re-examining its implementation. Consequently, the primary human effort in verifying a large-scale program boils down to specification synthesis [2], namely, to construct both function contracts and auxiliary intraprocedural annotations, such as loop invariants and assertions. Crafting these comprehensive formal specifications for large-scale programs with non-trivial call hierarchies is notoriously difficult and has long relied on deep expertise [3], [4].

Recent efforts—notably PREGUSS [5] and SpecSyn [6]—approach the problem by leveraging large language models (LLMs) to automate the synthesis of specifications through a divide-and-conquer strategy: On the “divide” side, the entire program is decomposed into a sequence of verification units (V-Units), each containing only a small set of functions. By restricting each LLM query to such a localized context, they effectively sidestep the long-context reasoning bottleneck [7], [8]—LLMs’ well-known tendency to lose relevant information and degrade as their input context grows, due to attention dispersion [9], [10]. On the “conquer” side, these V-Units are validated in a bottom-up order [5], [6], [11], i.e., callees before callers, which is a natural extension of the modularization principle of deductive verification (see Section II-C).

Despite its widespread adoption, this bottom-up paradigm exhibits two fundamental limitations. (I) Restricted parallelism: While units at the same call level can be verified in parallel, units across different levels must follow a strict callees-before-callers order. Consequently, the verification of higher-level callers remains idle until all lower-level callees have been verified, thus leaving substantial parallelism unexploited. (II) The absence of a principled mechanism for reconciling interprocedural conflicts: The verification of a caller may require a weaker precondition or a stronger postcondition of a callee, while modifications to a callee's contract may invalidate the caller's proof obligations, thus forcing the revision of the caller's own contract accordingly. Resolving such conflicts often requires bidirectional propagation of contract adjustments across the call graph. For instance, a change to a leaf function may ripple upward through all transitive callers, each of which must be re-verified and may, in turn, trigger further rounds of contract refinement. However, the statically partitioned and locally scoped verification units employed by traditional bottom-up approaches—each with visibility into only a bounded portion of the program—provide no systematic support for such dynamic, cross-unit coordination. See Section III for concrete examples illustrating the two limitations.

In response to the aforementioned challenges, we present VERDICT 1^{1}, a multi-agent framework that essentially parallelizes the modular deductive verification of large-scale programs. At the core of VERDICT are two key architectural components: (i) a parallel specification-synthesis mechanism and (ii) an interprocedural conflict-reconciliation protocol. The former addresses Challenge (I): VERDICT abandons the sequential bottom-up workflow and instead assigns each function a

∗^{*}Mingshuai Chen is the corresponding author.

1^{1}Implementation and data are publicly available [12].

persistent agent responsible for maintaining its contract. Rather than waiting for callees to publish their specifications, agents proceed by assuming contracts for unresolved callees (Section V-B), thereby enabling concurrent specification synthesis across all levels of the call graph. Our second component addresses Challenge (II): VERDICT coordinates agents through a typed event protocol. A Supply event propagates a callee's contract change upward to its callers, while a Demand event propagates a caller's specification request downward to its callees (Section V-C). These events cascade bidirectionally along the call chains, and thus provide a conflict-reconciliation mechanism across arbitrary call distances.

We have implemented VERDICT on top of the Claude Agent SDK [13] with FRAMA-C/WP [14] as the underlying deductive verifier. FRAMA-C/WP certifies that a C program satisfies a certain program property, notably, the absence of runtime errors (RTEs) such as invalid memory access or division by zero [15]. Evaluation on 15 real-world benchmarks reveals that VERDICT substantially outperforms state-of-the-art baselines, PREGUSS and SpecSyn, in both specification quality and verification time. In particular, increasing the number of agents improves efficiency, while specification quality converges within a small refinement budget, indicating that the two objectives improve together rather than trade off. Moreover, VERDICT enables almost fully automated RTE-freeness verification of the complete X.509 certificate parser, with over 20,000 lines of code (LoC), in a few hours—a task that previously required months of expert manual effort [4].

Contributions. Our main contributions are as follows.

• We identify two fundamental limitations of the divide-and-conquer, bottom-up paradigm for LLM-assisted specification synthesis for large-scale real-world programs.

• We present VERDICT, a multi-agent framework that overcomes these limitations by replacing sequential bottom-up synthesis with assumption-based parallel dispatch and event-driven bidirectional reconciliation.

• We implement VERDICT and show that it substantially outperforms state-of-the-art baselines in both specification quality and efficiency. VERDICT is, to the best of our knowledge, the first automated approach capable of proving RTE-freeness for real-world programs with over 20,000 LoC, which has previously been limited to programs of roughly 1,000 LoC (cf. PREGUSS [5]).

References (29)