通过移除冗余摘要提升路径敏感值流分析
Boosting Path-Sensitive Value Flow Analysis via Removal of Redundant Summaries
AI总结:
针对路径敏感值流分析因函数摘要冗余计算导致的可扩展性问题,提出首个有效识别并消除冗余摘要的方法,在大型程序评估中显著降低时间和内存开销,平均性能增益达632.1倍。
摘要:
通过数据依赖跟踪值流动的值流分析是一种广泛用于检测各类软件缺陷的技术。然而,当需要高精度(即路径敏感性)时,可扩展性问题常恶化,因函数摘要实例化变得耗时耗内存。我们观察到,主要原因是盲目为函数计算摘要(无论是否与待检查缺陷相关)导致的冗余计算。为解决该问题,我们提出首个能有效识别并消除冗余摘要的方法,在不影响可靠性或效率的前提下减少从被调用函数收集的摘要规模。我们在大型程序上的评估表明,该识别算法能显著将最先进值流分析的时间和内存开销分别降低45%和27%。此外,该算法能识别近80%的冗余摘要,且仅带来极小额外开销,效率显著。在最大的mysqld项目中,该算法减少了8107秒(2.25小时)的时间,仅增加17.31秒额外开销,时间节省与开销之比(即性能增益)达468.48倍。总体而言,我们的方法平均性能增益为632.1倍。
英文摘要:
Value flow analysis that tracks the flow of values via data dependence is a widely used technique for detecting a broad spectrum of software bugs. However, the scalability issue often deteriorates when high precision (i.e., path-sensitivity) is required, as the instantiation of function summaries becomes excessively time- and memory-intensive. The primary culprit, as we observe, is the existence of redundant computations resulting from blindly computing summaries for a function, irrespective of whether they are related to bugs being checked. To address this problem, we present the first approach that can effectively identify and eliminate redundant summaries, thereby reducing the size of collected summaries from callee functions without compromising soundness or efficiency. Our evaluation on large programs demonstrates that our identification algorithm can significantly reduce the time and memory overhead of the state-of-the-art value flow analysis by 45\% and 27\%, respectively. Furthermore, the identification algorithm demonstrates remarkable efficiency by identifying nearly 80\% of redundant summaries while incurring a minimal additional overhead. In the largest \textit{mysqld} project, the identification algorithm reduces the time by 8107 seconds (2.25 hours) with a mere 17.31 seconds of additional overhead, leading to a ratio of time savings to paid overhead (i.e., performance gain) of 468.48 $\times$. In total, our method attains an average performance gain of 632.1 $\times$.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。