arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1610.01188cs.PLcs.LO
收藏

以数据为中心的动态偏序约简

Data-centric Dynamic Partial Order Reduction

Marek Chalupa, Krishnendu Chatterjee, Andreas Pavlogiannis, Nishant Sinha, Kapil Vaidya

摘要:

针对并发程序的无状态模型检验,提出了一种新的动态偏序约简方法。探索程序行为的常见方法依赖于枚举程序的跟踪,而不存储访问状态(又名无状态探索)。随着不同轨迹的数量呈指数级增长,动态偏序约简(DPOR)技术已成功地用于将轨迹空间划分为等价类(Mazurkiewicz分区),目标是从每个类中只探索少数代表性轨迹。在序列一致性语义下,我们引入了一个新的迹等价,我们称之为观测等价。如果每个读事件在两个轨迹中观察到相同的写事件,则两个轨迹在观察上是等效的。传统的Mazurkiewicz等价是以控制为中心的,而我们的新定义是以数据为中心的。我们发现,我们的观察等价比Mazurkiewicz等价粗糙,在许多情况下,甚至指数粗糙。我们设计了一个DPOR探索的轨迹空间,称为以数据为中心的DPOR,基于观测等价。对于非循环体系结构,我们的算法是保证从每个观察类,而花费多项式时间每个类探索一个代表性的轨迹。因此,我们的算法是最佳的wrt观察等价,并在几种情况下,探索指数更少的痕迹比任何枚举方法的基础上Mazurkiewicz等价。对于循环体系结构,我们认为是细比观察等价的痕迹之间的等价,但粗比Mazurkiewicz等价,在某些情况下是指数粗糙。我们的数据为中心的DPOR算法仍然是最佳的跟踪等价下。

英文摘要:

We present a new dynamic partial-order reduction method for stateless model checking of concurrent programs. A common approach for exploring program behaviors relies on enumerating the traces of the program, without storing the visited states (aka stateless exploration). As the number of distinct traces grows exponentially, dynamic partial-order reduction (DPOR) techniques have been successfully used to partition the space of traces into equivalence classes (Mazurkiewicz partitioning), with the goal of exploring only few representative traces from each class. We introduce a new equivalence on traces under sequential consistency semantics, which we call the observation equivalence. Two traces are observationally equivalent if every read event observes the same write event in both traces. While the traditional Mazurkiewicz equivalence is control-centric, our new definition is data-centric. We show that our observation equivalence is coarser than the Mazurkiewicz equivalence, and in many cases even exponentially coarser. We devise a DPOR exploration of the trace space, called data-centric DPOR, based on the observation equivalence. For acyclic architectures, our algorithm is guaranteed to explore exactly one representative trace from each observation class, while spending polynomial time per class. Hence, our algorithm is optimal wrt the observation equivalence, and in several cases explores exponentially fewer traces than any enumerative method based on the Mazurkiewicz equivalence. For cyclic architectures, we consider an equivalence between traces which is finer than the observation equivalence; but coarser than the Mazurkiewicz equivalence, and in some cases is exponentially coarser. Our data-centric DPOR algorithm remains optimal under this trace equivalence.

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

↑