FormalSpecCpp
收藏资源简介:
FormalSpecCpp是一个旨在填补C++程序形式化规范标准化基准空白的数据集。该数据集是首个包含良好定义的前置条件和后置条件的C++程序综合集。它为评估规范推导工具提供了一个结构化的基准,并可以用于调整大型语言模型以自动生成规范。该数据集由Dafny-synthesis基准转换而来,通过OpenAI的GPT-4-turbo模型系统地翻译成C++,确保生成的代码保持其形式化规范。该数据集可用于程序验证、规范推导和AI辅助软件开发等领域的研究。
FormalSpecCpp is a dataset designed to fill the gap in standardized benchmarks for formal specifications of C++ programs. It is the first comprehensive collection of C++ programs with well-defined preconditions and postconditions. This dataset provides a structured benchmark for evaluating specification inference tools, and can be used to fine-tune large language models (LLMs) for automatic specification generation. Derived from the Dafny-synthesis benchmark, it was systematically translated into C++ using OpenAI's GPT-4-turbo model, ensuring that the generated code retains its formal specifications. This dataset can be applied to research in fields such as program verification, specification inference, and AI-assisted software development.

- 1FormalSpecCpp: A Dataset of C++ Formal Specifications created using LLMs加州大学河滨分校, 劳伦斯利弗莫尔国家实验室 · 2025年



