arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.14835cs.PL
收藏

迈向 LLM 合成 C 程序的自动化验证

Towards Automated Verification of LLM-Synthesized C Programs

Purdue University(普渡大学)

Prasita Mukherjee, Benjamin Delaware

AI总结:

本文提出 \synver{} 框架,通过对 LLM 生成的 C 程序施加语法与语义偏置,并基于 Verified Software Toolchain 构建验证工具,实现程序合成与自动化验证。

摘要:

我们提出了 \synver{},这是一种面向 C 程序的新型合成与验证框架,它部署大型语言模型(LLM)来搜索满足给定规约的候选程序。我们的核心思想是对 LLM 生成的程序施加语法和语义偏置,使合成出的程序更适合自动化验证。基于这一思想,我们提出了一种构建在 Verified Softwareoolchain 之上的新型规约验证工具,以帮助实现该过程的自动化。我们在来自演绎程序合成社区的一组多样化基准上进行的实验表明,该方法具有可扩展性和可延伸性。这些基准由包含基础编码示例、基于分离逻辑的断言以及 API 规约的各类规约组成。

英文摘要:

We present \synver{}, a novel synthesis and verification framework for C programs, that deploys a Large Language Model (LLM) to search for a candidate program that satisfies the given specification. Our key idea is to impose syntactic and semantic biases on programs generated by LLMs, such that the synthesized program is more amenable to automated verification. Based on this idea, we propose a novel specification-verification tool, built on top of Verified Software Toolchain, that help automate the process. Our experiments on a diverse set of benchmarks drawn from the deductive program synthesis community, shows that this approach is scalable and extensible. The benchmarks constitute of specifications comprising of basic coding examples, Separation Logic based assertions, and API specifications.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑