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

验证 C++ 动态绑定

Verifying C++ Dynamic Binding

Niels Mommen, Bart Jacobs

AI总结:

针对 C++ 构造与析构期间虚方法动态绑定的验证难题,提出结合抽象谓词族与显式 vtable 指针跟踪的分离逻辑,并在 VeriFast 中实现。

摘要:

我们提出一种方法,用于对以面向对象语言编写的程序进行模块化验证;在该语言中,与 C++ 一样,同一虚方法调用会在对象构造或析构期间的不同点绑定到不同方法。我们的分离逻辑将 Parkinson 和 Bierman 的抽象谓词族与实质上显式跟踪每个子对象的 vtable 指针相结合。该逻辑支持多态析构,但尚不支持虚继承。我们已将该方法形式化,并在用于 C++ 程序半自动模块化形式化验证的 VeriFast 工具中实现了它。

英文摘要:

We propose an approach for modular verification of programs written in an object-oriented language where, like in C++, the same virtual method call is bound to different methods at different points during the construction or destruction of an object. Our separation logic combines Parkinson and Bierman's abstract predicate families with essentially explicitly tracking each subobject's vtable pointer. Our logic supports polymorphic destruction. Virtual inheritance is not yet supported. We formalised our approach and implemented it in our VeriFast tool for semi-automated modular formal verification of C++ programs.

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

↑