AutoFraming: Synthesizing Dynamic Frames of C Code with LLMs
To address this limitation, we propose an LLM-based approach for synthesizing ACSL frame specifications alongside functional contracts from C code.
ProofPaper ↗
Key points
- 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.
- 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.
- 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.
Sources (1)
- [1]AutoFraming: Synthesizing Dynamic Frames of C Code with LLMsarXiv (AI, ML, NLP, CV, robotics, multi-agent) · Oct 21, 01:22 AM
To address this limitation, we propose an LLM-based approach for synthesizing ACSL frame specifications alongside functional contracts from C code.
Large language models (LLMs) have shown considerable promise in synthesizing formal specifications from source code.
Extractive summary: sentences quoted from the sources.
Before this
- Oct 20, 2026BitMTP: When Multi-Token Prediction Meets Low-Bit Large Language Models
- Oct 20, 2026Hallucinations of Large Language Models in Cross-Language Code Translation: Phenomena and Mitigation
- Oct 20, 2026CovNav: Conformal Prediction-Guided Adaptive Inference for Object Goal Navigation
- Oct 20, 2026Do Diffusion LLMs Scale? Testing Mercury 3 + Decide
- Oct 19, 2026Introducing Clairic, a new System One class of extraction models
- Oct 19, 2026Push-based KV transfer to improve TTFT and TPOT for disaggregated inference in vLLM