arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2212.13754cs.LOcs.PL
收藏

用VeriFast验证C++程序

Verification of C++ Programs with VeriFast

Niels Mommen, Bart Jacobs

摘要:

VeriFast是一个基于分离逻辑的原型工具,用于C和Java程序的模块化验证。我们正在添加对C++的支持。在本报告中,我们描述了到目前为止我们添加支持的C++特性,以及我们为这些特性生成的证明义务。在这一点上,VeriFast基本支持C++的大多数面向对象编程功能:成员函数、成员函数和运算符重载、隐式和显式转换、构造函数和初始化列表、析构函数、引用类型、堆栈或堆上的分配和释放(使用new和delete)、继承(包括多重继承,但不包括虚基类)、虚成员函数和重写。为了支持继承层次结构的规范,我们添加了对实例谓词的支持,可以在基类中引入实例谓词,并在派生类中重写实例谓词。目前缺少的主要功能是对C++模板的支持,我们计划下一步进行改进。

英文摘要:

VeriFast is a prototype tool based on separation logic for modular verification of C and Java programs. We are in the process of adding support for C++. In this report, we describe the features of C++ for which we added support so far, as well as the proof obligations we generate for these features. At this point, VeriFast has basic support for most object-oriented programming features of C++: member functions, member function and operator overloading, implicit and explicit conversions, constructors and initializer lists, destructors, reference types, allocation and deallocation on the stack or on the heap (using new and delete), inheritance (including multiple inheritance but not virtual base classes), and virtual member functions and overriding. To support specification of inheritance hierarchies, we added support for instance predicates, which can be introduced in a base class and overridden in derived classes. The main missing feature at this point is support for C++ templates, which we plan to work on next.

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

↑