ESBMC v7.3:使用 Clang AST 对 C++ 程序进行模型检测
ESBMC v7.3: Model Checking C++ Programs using Clang AST
AI总结:
本文提出 ESBMC v7.3,通过采用基于 clang AST 的新 C++ 前端替代旧 CPROVER 前端,显著降低解析与转换错误,提升现代 C++ 程序的可验证性。
摘要:
本文介绍了 ESBMC v7.3,这是最新的高效基于 SMT 的上下文有界模型检测器版本,现已集成了全新的基于 clang 的 C++ 前端。此前基于 CPROVER 的前端在处理 C++03 程序方面表现良好,但在跟上不断演进的 C++ 语言方面遇到了困难。随着每个 C++ 版本新增语言和库特性,旧前端的局限性日益显现,导致代码难以维护。因此,现代 C++ 程序的验证变得极具挑战性。为克服这一障碍,我们重新开发了前端,选择了使用 clang 这一更稳健的方案。新前端利用 clang API 高效地遍历内存中的抽象语法树(AST),并将每个 AST 节点转换为 ESBMC 的中间表示。通过大量实验,结果表明配备新前端的 ESBMC v7.3 显著减少了解析和转换错误,能够成功验证广泛的 C++ 程序,从而优于此前的 ESBMC 版本。
英文摘要:
This paper introduces ESBMC v7.3, the latest Efficient SMT-Based Context-Bounded Model Checker version, which now incorporates a new clang-based C++ front-end. While the previous CPROVER-based front-end served well for handling C++03 programs, it encountered challenges keeping up with the evolving C++ language. As new language and library features were added in each C++ version, the limitations of the old front-end became apparent, leading to difficult-to-maintain code. Consequently, modern C++ programs were challenging to verify. To overcome this obstacle, we redeveloped the front-end, opting for a more robust approach using clang. The new front-end efficiently traverses the Abstract Syntax Tree (AST) in-memory using clang APIs and transforms each AST node into ESBMC's Intermediate Representation. Through extensive experimentation, our results demonstrate that ESBMC v7.3 with the new front-end significantly reduces parse and conversion errors, enabling successful verification of a wide range of C++ programs, thereby outperforming previous ESBMC versions.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。