具有事件结构的弱记忆模型中的Promises推理(扩展版)
Reasoning about Promises in Weak Memory Models with Event Structures (Extended Version)
摘要:
ARMv 8和RISC-V等现代处理器允许执行过程中的独立指令可以重新排序。为了应对这种现象,所谓的有前途的语义已经开发出来,它允许线程读取尚未写入的值。每个promise都是一个推测性的更新,稍后会通过实际的写操作进行验证(实现)。有前途的语义是可操作的,为开发证明演算提供了途径。在本文中,我们开发了一个不正确的风格的逻辑,从而在推理框架的状态可达性。像不正确逻辑一样,我们的断言是欠近似的,因为所有有效承诺的集合在执行开始时都是未知的。我们的逻辑使用事件结构作为断言,以复杂地表示事件之间的顺序,如承诺和履行写。我们证明我们的证明演算的可靠性和完整性,并证明其适用性证明标准弱记忆石蕊测试的可达性。
英文摘要:
Modern processors such as ARMv8 and RISC-V allow executions in which independent instructions within a process may be reordered. To cope with such phenomena, so called promising semantics have been developed, which permit threads to read values that have not yet been written. Each promise is a speculative update that is later validated (fulfilled) by an actual write. Promising semantics are operational, providing a pathway for developing proof calculi. In this paper, we develop an incorrectness-style logic, resulting in a framework for reasoning about state reachability. Like incorrectness logic, our assertions are underapproximating, since the set of all valid promises are not known at the start of execution. Our logic uses event structures as assertions to compactly represent the ordering among events such as promised and fulfilled writes. We prove soundness and completeness of our proof calculus and demonstrate its applicability by proving reachability properties of standard weak memory litmus tests.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。