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

基于预言的传递消息程序的自动化验证

Prophecy-Based Automated Verification of Message-Passing Programs

The University of Tokyo(东京大学);Kyoto University(京都大学);MPI-SWS(马克斯·普朗克计算机科学研究所)

Takashi Nagatomi, Musashi Katsura, Naoki Kobayashi, Yusuke Matsushita, Ken Sakayori

AI总结:

提出一种通过将验证问题归约为约束Horn子句求解的自动化方法,利用基于预言的通道建模和消息时间戳,实现消息传递并发程序功能正确性的模块化验证。

摘要:

我们提出了一种全自动方法,通过将验证问题归约为约束Horn子句(CHC)求解,来验证消息传递并发程序的功能正确性。受RustHorn基于预言的技术启发,我们将每个发送者通道表示为一个未来将通过该通道发送的值列表,从而能够将发送者和接收者线程模块化地编码为CHC。为了捕获不同通道之间的因果依赖关系,我们进一步为消息附加时间戳。我们证明了所得的归约是可靠且完备的:一个程序没有断言失败当且仅当对应的CHC系统是可满足的。我们还实现了一个针对类似Rust程序的原型验证器,并通过实验证实了该方法的有效性。

英文摘要:

We propose a fully automated method for verifying functional correctness of message-passing concurrent programs by reducing verification problems to constrained Horn clause (CHC) solving. Inspired by RustHorn's prophecy-based technique, we represent each sender channel by a list of values to be sent over the channel in the future, which enables modular encoding of sender and receiver threads in CHCs. To capture causal dependencies between different channels, we further attach timestamps to messages. We prove that the resulting reduction is sound and complete: a program is free from assertion failures if and only if the corresponding system of CHCs is satisfiable. We have also implemented a prototype verifier for Rust-like programs and experimentally confirmed the effectiveness of the approach.

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

↑