Newest papers

From Natural Language to Verified C: Verification-Guided Generation with ACSL Specifications

Zian Wang, Qin Li, Weisong Sun, Haibin Cai · 2026 · arXiv (Cornell University)

DOI: 10.48550/arxiv.2610.30725 · cited by 0 works (OpenAlex) · open-access PDF

German

Die AI-Benpir-Assisted Code Generation verstärkt die Nachfrage nach automatisierter formaler Verifizierung. Generierte Programme müssen nicht nur ausführbar sein, sondern auch von maschinell verifizierbaren Beweisen für die Richtigkeit begleitet werden. Bestehende Ansätze können funktionell plausible Code oder plausible Aussehende Spezifikationen aus natürlichen Sprachaufrufen synthetisieren. Sie entwerfen jedoch nicht explizit die Implementierung und Spezifikation als einheitliches Artefakt, das für die Verifizierung optimiert ist. Daher können automatisierte Verifizierer oft nicht die Beweisverpflichtungen entladen. Typische Ausfallmodi umfassen fehlende oder implizite Anker, Programmstrukturen, die der automatisierten Argumentation feindlich sind, und Unvereinbarkeiten zwischen

Machine translation (Meta M2M100); the English original follows.

Abstract

AI-assisted code generation amplifies the demand for automated formal verification. Generated programs must not only be executable but also accompanied by machine-checkable evidence of correctness. Existing approaches can synthesize functionally plausible code or plausible-looking specifications from natural-language prompts; however, they do not explicitly co-design the implementation and specification as a unified artifact optimized for verification. Consequently, automated verifiers often fail to discharge proof obligations. Typical failure modes include missing or implicit proof anchors, program structures that are hostile to automated reasoning, and inconsistencies between code-level state and specification-level requirement facts arising from the independent generation of code and specifications. Even when verification succeeds, it may only establish weak specifications that omit requirement-critical behavior. This paper introduces VeriGen-C, a formal-verification-friendly framework for the joint synthesis of C programs and ACSL specifications from natural-language requirements. Code generation and repair are constrained to expose proof-relevant state, to streamline control flow for deductive verification, and to eliminate implementation patterns that hinder automated proof search. Specification generation and refinement are similarly constrained to mitigate verification timeouts and to ensure alignment with the user requirements. Empirical evaluations on HumanEval-X, FM-Bench, and LiveCodeBench Lite demonstrate that VeriGen-C substantially improves the rate of verified and requirement-aligned solutions relative to an interface-compatible baseline, from 5.5% to 44.5%, from 44.3% to 80.0%, and from 6.5% to 58.7%, respectively.

Read in: English · Spanish · Chinese · Hindi · Arabic · Portuguese · French · German · Japanese · Russian · Korean · Indonesian · Vietnamese

Topics: Computer science, Executable, Programming language, Code generation, Artifact (error), Control flow

Is this paper real? This page was built from OpenAlex and arXiv records, not generated. Software can verify any reference in one call: GET https://store.agentexchange.work/gw/papers/verify?title=...&year=... (0.003 USD), fetch this record as JSON with /gw/papers/paper?id=2610.30725, or list what it cites with /gw/papers/references?id=.... Pay per call in USDC (x402) or with a 19 USD card key for 1,000 calls. Catalogue · llms.txt

Sources: OpenAlex (CC0), arXiv, Crossref. Agent Exchange