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

结构并发程序的简化

Reduction for Structured Concurrent Programs

Ecole Polytechnique, CNRS and Institut Polytechnique de Paris(巴黎综合理工学院、法国国家科学研究中心和巴黎理工学院);Microsoft(微软)

Namratha Gangamreddypalli, Constantin Enea, Shaz Qadeer

AI总结:

本文提出了一种新的简化技术,用于结构化并发程序,通过将并行组合替换为顺序组合以及推广Lipton的减少法,提升了并发程序验证的效率和灵活性。

摘要:

基于Lipton的movers的可交换性推理是一种强大的技术,用于验证并发程序。其想法是定义一种程序转换,该转换保留初始交错集的一个子集,这种推理在可交换操作的重新排列下是成立的。将可交换性推理扩展到软件系统中常用的功能,如过程和并行组合,仍然是重大挑战。在本工作中,我们引入了一种新的简化技术,用于结构化的并发程序,该技术统一了两个关键进展。首先,我们提出了一种减少策略,该策略能安全地将并行组合替换为顺序组合。其次,我们将Lipton的减少法推广到支持包含(可能递归)过程调用的原子部分。关键的是,这两种基础策略可以任意组合,大大扩展了基于简化的推理范围和灵活性。我们将在Civl中实现了这一技术,并在多个具有挑战性的案例研究中展示了其有效性,包括快照对象、容错且线性化的寄存器、FLASH缓存一致性协议以及Two-Phase Commit的非平凡变体。

英文摘要:

Commutativity reasoning based on Lipton's movers is a powerful technique for verification of concurrent programs. The idea is to define a program transformation that preserves a subset of the initial set of interleavings, which is sound modulo reorderings of commutative actions. Scaling commutativity reasoning to routinely-used features in software systems, such as procedures and parallel composition, remains a significant challenge. In this work, we introduce a novel reduction technique for structured concurrent programs that unifies two key advances. First, we present a reduction strategy that soundly replaces parallel composition with sequential composition. Second, we generalize Lipton's reduction to support atomic sections containing (potentially recursive) procedure calls. Crucially, these two foundational strategies can be composed arbitrarily, greatly expanding the scope and flexibility of reduction-based reasoning. We implemented this technique in Civl and demonstrated its effectiveness on a number of challenging case studies, including a snapshot object, a fault-tolerant and linearizable register, the FLASH cache coherence protocol, and a non-trivial variant of Two-Phase Commit.

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

↑