等待戈多:无状态模型检验,避免执行什么都没有发生
Awaiting for Godot: Stateless Model Checking that Avoids Executions where Nothing Happens
摘要:
无状态模型检验(SMC)是一种并发程序的验证技术,它通过探索所有可能的线程冲突来检查安全违规。当与动态偏序约简(DPOR)结合时,它是非常有效的,DPOR引入了一个等价类,并且在每个等价类中只需要探索一个。即使使用DPOR,SMC也经常花费不必要的努力来探索纯循环迭代,即,对程序状态没有影响。我们提出的技术,使SMC与DPOR更有效的纯循环迭代程序。第一种是静态程序分析,用于检测循环纯度和相关的程序转换,称为部分循环纯度消除,插入假设语句以阻止纯循环迭代。随后,其中一些假设被转换为await语句,完全删除了许多假设阻止的执行。最后,我们提出了一个扩展的标准DPOR等价,通过削弱事件之间的冲突关系。所有这些技术被纳入一个新的DPOR算法,最佳DPOR等待,它可以处理等待和较弱的冲突关系,是最佳的意义上,它只探索一个执行在每个等价类,也可以诊断活锁。我们在Nidhugg中的实现表明,这些技术可以显着加快并行程序的分析,这些程序目前对SMC工具来说是具有挑战性的,无论是探索其完整的交织集,还是检测其中的并发错误。
英文摘要:
Stateless Model Checking (SMC) is a verification technique for concurrent programs that checks for safety violations by exploring all possible thread schedulings. It is highly effective when coupled with Dynamic Partial Order Reduction (DPOR), which introduces an equivalence on schedulings and need explore only one in each equivalence class. Even with DPOR, SMC often spends unnecessary effort in exploring loop iterations that are pure, i.e., have no effect on the program state. We present techniques for making SMC with DPOR more effective on programs with pure loop iterations. The first is a static program analysis to detect loop purity and an associated program transformation, called Partial Loop Purity Elimination, that inserts assume statements to block pure loop iterations. Subsequently, some of these assumes are turned into await statements that completely remove many assume-blocked executions. Finally, we present an extension of the standard DPOR equivalence, obtained by weakening the conflict relation between events. All these techniques are incorporated into a new DPOR algorithm, Optimal-DPOR-Await, which can handle both awaits and the weaker conflict relation, is optimal in the sense that it explores exactly one execution in each equivalence class, and can also diagnose livelocks. Our implementation in Nidhugg shows that these techniques can significantly speed up the analysis of concurrent programs that are currently challenging for SMC tools, both for exploring their complete set of interleavings, but even for detecting concurrency errors in them.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。