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

基于视图协议的弱内存程序演绎验证(扩展版)

Deductive Verification of Weak Memory Programs with View-based Protocols (extended version)

University of Twente(特温特大学);TU Delft(代尔夫特理工大学);Eindhoven University of Technology(埃因霍温理工大学)

Ömer Şakar, Soham Chakraborty, Marieke Huisman, Anton Wijs

AI总结:

本文提出在VerCors中编码弱内存并发的方案,通过扩展原子操作支持并引入协议自动机概念,实现基于许可的分离逻辑,用于验证弱内存并发程序的正确性。

摘要:

在弱内存并发编程中,由于程序行为无法通过线程交错解释,确保正确性面临重大挑战。尽管已提出多种程序逻辑来推理弱内存并发,但其使用仍局限于复杂的手动证明。另一方面,VerCors验证器提供了丰富的工具集,用于自动化演绎验证顺序一致性。本文通过VerCors演绎验证工具填补了自动化验证弱内存并发程序的空白。我们提出了一种在VerCors中编码弱内存并发的方法。我们开发了VerCors-relaxed,通过扩展VerCors的原子操作支持,并引入来自多个协议自动机的概念,以编码基于许可的分离逻辑用于弱内存并发模型。为了展示我们方法的有效性,我们将在VerCors-relaxed中编码SLR程序逻辑的松弛片段,这是一种最近的基于许可的分离逻辑,用于弱内存并发。我们使用SLR编码在VerCors-relaxed上自动验证文献中的几个示例,并在现实性能内完成。

英文摘要:

Concurrent programming under weak memory concurrency faces substantial challenges to ensure correctness due to program behaviors that cannot be explained by thread interleaving, a.k.a. sequential consistency. While several program logics are proposed to reason about weak memory concurrency, their usage has been limited to intricate manual proofs. On the other hand, the VerCors verifier provides a rich toolset for automated deductive verification for sequential consistency. In this paper, we bridge this gap for automated deductive verification of weak memory concurrent programs with the VerCors deductive verification tool. We propose an approach to encode weak memory concurrency in VerCors. We develop VerCors-relaxed, where we extend the VerCors atomics support and bring concepts from several protocol automata to encode permission-based separation logics for weak memory concurrency models. To demonstrate the effectiveness of our approach, we encode the relaxed fragment of the SLR program logic, a recent state-of-the-art permission-based separation logic for weak memory concurrency in VerCors-relaxed, our extension of VerCors. We use the SLR encoding on VerCors-relaxed to automatically verify several examples from the literature within realistic performance.

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

↑