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

从SPARK中的Rust中借用安全指针

Borrowing Safe Pointers from Rust in SPARK

Georges-Axel Jaloyan, Yannick Moy, Andrei Paskevich

摘要:

在演绎软件验证领域,由于指针别名,具有指针的程序提出了一个主要的挑战。在本文中,我们介绍了指针SPARK,一个定义良好的Ada语言的子集,用于形式化验证的关键任务软件。我们的解决方案使用基于权限的静态别名分析方法,灵感来自Rust的检查器和仿射类型,并强制执行并发读取,独占写入策略。该分析已在GNAT Ada编译器中实现,并针对一些具有挑战性的示例进行了测试。在本文中,我们给出了一个小型版本的SPARK的分析规则的形式化的介绍,并证明其合理性。我们讨论了实现,并将我们的解决方案与Rust进行了比较。

英文摘要:

In the field of deductive software verification, programs with pointers present a major challenge due to pointer aliasing. In this paper, we introduce pointers to SPARK, a well-defined subset of the Ada language, intended for formal verification of mission-critical software. Our solution uses a permission-based static alias analysis method inspired by Rust's borrow-checker and affine types, and enforces the Concurrent Read, Exclusive Write policy. This analysis has been implemented in the GNAT Ada compiler and tested against a number of challenging examples. In the paper, we give a formal presentation of the analysis rules for a miniature version of SPARK and prove their soundness. We discuss the implementation and compare our solution with Rust.

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

↑