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

Madhurima Chakraborty, Peter Pirkelbauer, Qing Yi
2/21/2025
5 citations
cs.SEcs.AIcs.LG
benchmark-dataset

Official code: MadhuNimmo/FormalSpecCpp (13 stars, C++, last commit 2025-03-04).

Abstract

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations(1)

131C++, PythonJan 29, 20251 years ago

Similar Papers

Cite this paper

@article{chakraborty2025formalspeccpp,
  title  = {FormalSpecCpp: A Dataset of C++ Formal Specifications created using LLMs},
  author = {Madhurima Chakraborty and Peter Pirkelbauer and Qing Yi},
  year   = {2025},
  eprint = {2502.15217},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2502.15217v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2502.15217.svg)](https://codeofpaper.com/paper/2502.15217)

Discussion