paper-with-me

홈 › Papers

FormalSpecCpp: A Dataset of C++ Formal Specifications created using LLMs

2025-02-21 · Madhurima Chakraborty, Peter Pirkelbauer, Qing Yi

FormalSpecCpp is a dataset designed to fill the gap in standardized benchmarks for verifying formal specifications in C++ programs. To the best of our knowledge, this is the first comprehensive collection of C++ programs with well-defined preconditions and postconditions. It provides a structured benchmark for evaluating specification inference tools and testing theaccuracy of generated specifications. Researchers and developers can use this dataset to benchmark specification inference tools,fine-tune Large Language Models (LLMs) for automated specification generation, and analyze the role of formal specifications in improving program verification and automated testing. By making this dataset publicly available, we aim to advance research in program verification, specification inference, and AI-assisted software development. The dataset and the code are available at https://github.com/MadhuNimmo/FormalSpecCpp.

📄 PDF Abstract BibTeX arXiv:2502.15217

Code (1)

MadhuNimmo/FormalSpecCpp 공식 구현

Similar Papers 제목 키워드 기반

VeriEquivBench: An Equivalence Score for Ground-Truth-Free Evaluation of Formally Verifiable Code

2025-10-07 · Lingfei Zeng, Fengdi Che, Xuhan Huang, Fei Ye 외 arxiv

Formal verification is the next frontier for ensuring the correctness of code generated by Large Language Models (LLMs). While methods that co-generate code and formal specifications in formal languages, like Dafny, can,…

Code Generation

Natural Language based Specification and Verification

2026-05-11 · Zhaorui Li, Chengyu Song arxiv

Recent frontier large language models (LLMs) have shown strong performance in identifying security vulnerabilities in large, mature open-source systems. As LLM-generated code becomes increasingly common, a natural goal i…

Evaluating LLM-driven User-Intent Formalization for Verification-Aware Languages

2024-06-14 · Shuvendu K. Lahiri

Verification-aware programming languages such as Dafny and F* provide means to formally specify and prove properties of a program. Although the problem of checking an implementation against a specification can be defined…

Code Generationmbpp

Towards Specification-Driven LLM-Based Generation of Embedded Automotive Software

2024-11-20 · Minal Suresh Patil, Gustav Ung, Mattias Nyberg

The paper studies how code generation by LLMs can be combined with formal verification to produce critical embedded software. The first contribution is a general framework, spec2code, in which LLMs are combined with diff…

Code Generation

Faithful Autoformalization of Natural Language Assertions

2026-07-14 · Hongyi Liu, Madhusudan Parthasarathy, Adithya Murali arxiv

Formal contracts are essential for software testing and verification, yet writing them remains labor-intensive and error-prone. LLMs offer a promising path toward autoformalization: synthesizing executable assertions fro…