基于DPOR模型检查器的状态空间估计(扩展版)
State Space Estimation for DPOR-based Model Checkers(Extended Version)
AI总结:
本文研究并发程序的状态空间估计问题,提出基于DPOR算法的蒙特卡洛方法,提供高效的无偏估计器,用于模型检查运行时间预测和搜索空间覆盖率评估。
摘要:
我们研究并发程序的状态空间估计问题:给定一个有界程序P,估计其交错所诱导的Mazurkiewicz迹等价类数量。该数量对于基于枚举的模型检查有两个实际问题:模型检查运行时间可能有多长,以及目前为止搜索空间已被覆盖的分数是多少。我们首先证明计数问题在受限程序下也是#P难的,并且除非P=NP,否则无法在任何次指数因子内近似,从而排除了高效精确或随机近似算法的可能性。我们给出了一种蒙特卡洛方法来获得多项式时间无偏估计器:将无状态最优DPOR算法转换为无偏估计器,通过将其探索视为一个有限深度和宽度的树,其叶子是最大Mazurkiewicz迹。Knuth的经典估计器在该树上运行可得到无偏估计。为控制方差,我们应用随机枚举,通过维护每个深度的小部分路径群体,并使它们的演化耦合。我们已在JMC模型检查器中实现了该估计器,并在共享内存基准上进行了评估。在适度的预算下,我们的估计器能稳定地给出估计,通常在几百次试验内,即使状态空间有10^5-10^6个类。我们还展示了如何用相同机制估计模型检查成本,通过加权所有探索的图,而不仅仅是完整的轨迹。我们的算法提供了首个可证明的多项式时间无偏估计器,用于计数轨迹,这在分配模型检查资源时具有重要性。
英文摘要:
We study the estimation problem for concurrent programs: given a bounded program $P$, estimate the number of Mazurkiewicz trace-equivalence classes induced by its interleavings. This quantity informs two practical questions for enumeration-based model checking: how long a model checking run is likely to take, and what fraction of the search space has been covered so far. We first show the counting problem is #P-hard even for restricted programs and, unless $P=NP$, inapproximable within any subexponential factor, ruling out efficient exact or randomized approximation algorithms. We give a Monte Carlo approach to obtain a poly-time unbiased estimator: we convert a stateless optimal DPOR algorithm into an unbiased estimator by viewing its exploration as a bounded-depth, bounded-width tree whose leaves are the maximal Mazurkiewicz traces. A classical estimator by Knuth, when run on this tree, yields an unbiased estimate. To control the variance, we apply stochastic enumeration by maintaining a small population of partial paths per depth whose evolution is coupled. We have implemented our estimator in the JMC model checker and evaluated it on shared-memory benchmarks. With modest budgets, our estimator yields stable estimates, typically within a 20% band, within a few hundred trials, even when the state space has $10^5$--$10^6$ classes. We also show how the same machinery estimates model-checking cost by weighting all explored graphs, not only complete traces. Our algorithms provide the first provable poly-time unbiased estimators for counting traces, a problem of considerable importance when allocating model checking resources.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。