识别Zone抽象域中的最小变更
Identifying Minimal Changes in the Zone Abstract Domain
AI总结:
针对程序验证中公式过大影响可扩展性的问题,本文提出针对Zone抽象域的自定义语义切片算法,识别状态中变更不等式的最小集合,显著提升了不同数值域间不变量比较的精度与效率。
摘要:
验证技术将程序状态表示为程序变量上的逻辑公式。例如,符号执行和抽象解释将程序状态编码为一组整数不等式。然而,对于现实世界的程序,这些公式往往变得很大,这影响了分析的可扩展性。为了解决这个问题,研究人员开发了互补的方法,要么删除冗余不等式,要么提取足以进行特定推理的不等式子集。对于任意整数不等式,这种约简方法要么复杂度很高,要么是过近似。然而,对于关系数值抽象域中使用的受限类型的逻辑公式,这些方法的效率和精度可以得到改善。虽然以前的工作研究了针对Zone状态的自定义高效冗余不等式消除,但我们的工作检查了自定义语义切片算法,该算法识别Zone状态中已变更不等式的最小集合。Zone中最小变更的客户端应用是一项实证研究,比较使用Zones、Intervals和Predicates数值域的数据流分析计算出的不变量。特别是,评估比较了我们提出的算法如何影响比较Zones与Intervals以及Zones与Predicates抽象域的精度。结果表明,与完整状态相比,我们的技术将变量数量减少了70%以上,将不等式数量减少了30%。该方法细化了域之间比较的粒度,将Zones和Predicates之间不可比的不变量从52%减少到4%,并将Intervals和Zones相等的不变量从27%增加到71%。该技术通过将Zones和Predicates的所有主题比较的总运行时间从4分钟以上减少到几秒钟,提高了比较效率。
英文摘要:
Verification techniques express program states as logical formulas over program variables. For example, symbolic execution and abstract interpretation encode program states as a set of integer inequalities. However, for real-world programs these formulas tend to become large, which affects scalability of analyses. To address this problem, researchers developed complementary approaches which either remove redundant inequalities or extract a subset of inequalities sufficient for specific reasoning. For arbitrary integer inequalities, such reduction approaches either have high complexities or over-approximate. However, efficiency and precision of these approaches can be improved for a restricted type of logical formulas used in relational numerical abstract domains. While previous work investigated custom efficient redundant inequality elimination for Zones states, our work examines custom semantic slicing algorithms that identify a minimal set of changed inequalities in Zones states. The client application of the minimal changes in Zones is an empirical study on comparison between invariants computed by data-flow analysis using Zones, Intervals and Predicates numerical domains. In particular, evaluations compare how our proposed algorithms affect the precision of comparing Zones vs. Intervals and Zones vs. Predicates abstract domains. The results show our techniques reduce the number of variables by more than 70% and the number of inequalities by 30%, compared to full states. The approach refines the granularity of comparison between domains, reducing incomparable invariants between Zones and Predicates from 52% to 4%, and increases equality of Intervals and Zones, invariants from 27% to 71%. The techniques improve the comparison efficiency by reducing total runtime for all subject comparisons for Zones and Predicates from over 4 minutes to a few seconds.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。