mlsanityData to 7 Oct 2026

Evaluating the Ability of Large Language Models to Generate Verifiable Specifications in VeriFast

arXiv 2411.02318 ↗First posted 4 Nov 2024cs.SE cs.AI cs.LOcited by 5

Not on the map. Why?

Abstract (arXiv)

Static verification is a powerful method for enhancing software quality, but it demands significant human labor and resources. This is particularly true of static verifiers that reason about heap manipulating programs using an ownership logic. LLMs have shown promise in a number of software engineering activities, including code generation, test generation, proof generation for theorem provers, and specification generation for static verifiers. However, prior work has not explored how well LLMs can perform specification generation for specifications based in an ownership logic, such as separation logic. To address this gap, this paper explores OpenAI's GPT-4o model's effectiveness in generating specifications on C programs that are verifiable with VeriFast, a separation logic based static verifier. Our experiment employs three different types of user inputs as well as basic and Chain-of-Thought (CoT) prompting to assess GPT's capabilities. Our results indicate that the specifications generated by GPT-4o preserve functional behavior, but struggle to be verifiable. When the specifications are verifiable they contain redundancies. Future directions are discussed to improve the performance.

Key facts. Cited by 5 papers in the map (data through 7 Oct 2026). Builds on 9 of its 26 references that are in the map. First posted on arXiv 4 Nov 2024.

Builds on

9 of 26 references.

References · 9

  1. 2024A Systematic Survey of Prompt Engineering in Large Language Models: Techniques and Applicationscited by 428
  2. 2022CodeT: Code Generation with Generated Testscited by 369
  3. 2023An Empirical Evaluation of Using Large Language Models for Automated Unit Test Generationcited by 193
  4. 2023Software Testing with Large Language Models: Survey, Landscape, and Visioncited by 163
  5. 2022Automatic Generation of Programming Exercises and Code Explanations using Large Language Modelscited by 124
  6. 2023Verus: Verifying Rust Programs using Linear Ghost Types (extended version)cited by 50
  7. 2023LLMSTEP: LLM proofstep suggestions in Leancited by 32
  8. 2023CAT-LM: Training Language Models on Aligned Code And Testscited by 28
  9. 2024Laurel: Unblocking Automated Verification with Large Language Modelscited by 10

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 2; 2026: 3.

5 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026Beyond Type-checking: Towards Holistic Evaluation of Formal Specification Generation
  2. 2026AlgoVeri: An Aligned Benchmark for Verified Code Generation on Classical Algorithms
  3. 2025VeriEquivBench: An Equivalence Score for Ground-Truth-Free Evaluation of Formally Verifiable Code
  4. 2026Automating Formal Verification with Agent-Guided Tree Search
  5. 2026P3: Joint Program-and-Proof Planning for Verified Code Generation
  6. 2025CLEVER: A Curated Benchmark for Formally Verified Code Generation
  7. 2026LiveFMBench: Unveiling the Power and Limits of Agentic Workflows in Specification Generation
  8. 2025RAG-Verus: Repository-Level Program Verification with LLMs using Retrieval Augmented Generation