mlsanityData to 26 Nov 2026

AutoFraming: Synthesizing Dynamic Frames of C Code with LLMs

arXiv 2610.29046 ↗Submitted 21 Oct 2026cs.AIcited by 0

Not on the map. Why?

Abstract (arXiv)

Large language models (LLMs) have shown considerable promise in synthesizing formal specifications from source code. However, existing approaches primarily focus on functional contracts and loop invariants, while largely neglecting frame conditions, which specify the memory locations that may or may not be modified during execution and constitute an essential part of formal specifications. To address this limitation, we propose an LLM-based approach for synthesizing ACSL frame specifications alongside functional contracts from C code. Our approach analyzes code property graphs (CPGs) to extract frame-relevant information from the input code and leverages this information to guide the LLM in generating accurate frame conditions. The resulting specifications capture both region-separation constraints and data dependencies that govern variable modifications. Experimental results demonstrate the effectiveness of our approach. On a benchmark of 84 ACSL-compliant functions from non-trivial real-world systems, our method successfully synthesizes error-free frame specifications for 92.9% of the functions, representing a 179% relative improvement over state-of-the-art techniques. On a second benchmark consisting of 51 functions, the success rate increases from 80.4% to 96.1%. Furthermore, when integrated as an auxiliary component into existing LLM-based ACSL-synthesis frameworks, our approach improves frame-specification generation performance by up to 61.9%.

Key facts. No citing papers in the map yet (data through 26 Nov 2026). Builds on 16 of its 28 references that are in the map. Submitted 21 Oct 2026.

Builds on

16 of 28 references.

References · 16

  1. 2024Enchanting Program Specification Synthesis by Large Language Models using Static Analysis and Program Verificationcited by 62
  2. 2024SpecGen: Automated Generation of Formal Program Specifications via Large Language Modelscited by 61
  3. 2024PropertyGPT: LLM-driven Formal Verification of Smart Contracts through Retrieval-Augmented Property Generationcited by 41
  4. 2024Automated Proof Generation for Rust Code via Self-Evolutioncited by 39
  5. 2023Can ChatGPT support software verification?cited by 16
  6. 2024VeCoGen: Automating Generation of Formally Verified C Code with Large Language Modelscited by 12
  7. 2025ClassInvGen: Class Invariant Synthesis using Large Language Modelscited by 12
  8. 2024Specify What? Enhancing Neural Specification Synthesis by Symbolic Methodscited by 9
  9. 2025Beyond Postconditions: Can Large Language Models infer Formal Contracts for Automatic Software Verification?cited by 9
  10. 2024Enhancing Automated Loop Invariant Generation for Complex Programs with Large Language Modelscited by 8
  11. 2025A Tale of 1001 LoC: Potential Runtime Error-Guided Specification Synthesis for Verifying Large-Scale Programscited by 7
  12. 2015An experimental Study using ACSL and Frama-C to formulate and verify Low-Level Requirements from a DO-178C compliant Avionics Projectcited by 5
4 more
  1. 2025Next Steps in LLM-Supported Java Verificationcited by 4
  2. 2025Seeking Specifications: The Case for Neuro-Symbolic Specification Synthesiscited by 4
  3. 2025AutoDeduct: A Tool for Automated Deductive Verification of C Codecited by 3
  4. 2014SPEEDY: An Eclipse-based IDE for invariant inferencecited by 2

Built on by

Not cited yet.