释放-获取语义下的最优无状态模型检验
Optimal Stateless Model Checking under the Release-Acquire Semantics
摘要:
我们提出了一个框架,有效地应用无状态模型检验(SMC)的并发程序下运行的释放-获取(RA)片段的C/C++11内存模型。我们的方法是基于探索可能的程序顺序,它定义了线程的指令被执行的顺序,和读取关系,它指定如何读取从写入获得它们的值。这与先前的方法相反,先前的方法也探索可能的相干顺序,即,冲突写入之间的排序。由于意外的测试结果,如程序崩溃或断言违规只依赖于从关系的读取,我们避免了潜在的重要来源的冗余。我们的框架是基于一种新的技术,用于确定是否一个特定的读取关系是可行的RA语义下。我们定义了一个SMC算法,这是可证明的最佳意义上说,它探讨了每个程序的顺序和读取从关系正好一次。这个最优性结果是严格强于以前类似的最优性结果,这也考虑到相干顺序。我们已经在工具Tracer中实现了我们的框架。实验表明,Tracer可以显着快于国家的最先进的工具,可以处理RA语义。
英文摘要:
We present a framework for the efficient application of stateless model checking (SMC) to concurrent programs running under the Release-Acquire (RA) fragment of the C/C++11 memory model. Our approach is based on exploring the possible program orders, which define the order in which instructions of a thread are executed, and read-from relations, which specify how reads obtain their values from writes. This is in contrast to previous approaches, which also explore the possible coherence orders, i.e., orderings between conflicting writes. Since unexpected test results such as program crashes or assertion violations depend only on the read-from relation, we avoid a potentially significant source of redundancy. Our framework is based on a novel technique for determining whether a particular read-from relation is feasible under the RA semantics. We define an SMC algorithm which is provably optimal in the sense that it explores each program order and read-from relation exactly once. This optimality result is strictly stronger than previous analogous optimality results, which also take coherence order into account. We have implemented our framework in the tool Tracer. Experiments show that Tracer can be significantly faster than state-of-the-art tools that can handle the RA semantics.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。