惰性TSO可达性
Lazy TSO Reachability
摘要:
我们解决的问题,检查状态可达性的程序下运行的总存储顺序(TSO)。问题已被证明是可判定的,但成本是禁止的,即非原始递归。我们在这里建议放弃完整性。我们的贡献是一个新的算法TSO可达性:它使用标准的SC语义,并介绍了TSO语义懒,只在需要的地方。我们算法的核心是对感兴趣的程序进行迭代改进。如果程序的目标状态是SC可达的,我们就完成了。如果目标状态不是SC可达的,则这可能是由于SC欠近似TSO的事实。我们采用第二种算法,确定TSO计算是不可行的SC下,因此可能会导致新的状态。我们丰富的程序来模拟,SC下,这些TSO计算。总之,这产生了一个迭代的欠近似,我们证明了声音和完整的错误狩猎,即,一种半决策过程,在可达性为肯定的情况下停止。我们已经实现的程序作为一个扩展的工具挖沟机,并比较它的EQUIPAX和CBMC模型检查器。
英文摘要:
We address the problem of checking state reachability for programs running under Total Store Order (TSO). The problem has been shown to be decidable but the cost is prohibitive, namely non-primitive recursive. We propose here to give up completeness. Our contribution is a new algorithm for TSO reachability: it uses the standard SC semantics and introduces the TSO semantics lazily and only where needed. At the heart of our algorithm is an iterative refinement of the program of interest. If the program's goal state is SC-reachable, we are done. If the goal state is not SC-reachable, this may be due to the fact that SC under-approximates TSO. We employ a second algorithm that determines TSO computations which are infeasible under SC, and hence likely to lead to new states. We enrich the program to emulate, under SC, these TSO computations. Altogether, this yields an iterative under-approximation that we prove sound and complete for bug hunting, i.e., a semi-decision procedure halting for positive cases of reachability. We have implemented the procedure as an extension to the tool Trencher and compared it to the Memorax and CBMC model checkers.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。