arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1702.05807cs.PL
收藏

通过全局值编号实现精确的空指针分析

Precise Null Pointer Analysis Through Global Value Numbering

Ankush Das, Akash Lal

摘要:

指针信息的精确分析在当今许多静态分析技术和工具中起着重要的作用。然而,精确度必须与分析的可伸缩性相平衡。本文主要研究如何以较低的可扩展性代价提高标准上下文和流不敏感别名分析算法的精度。特别是,我们提出了一个语义保持程序转换,大大提高了现有的分析精度时,决定一个指针是否可以别名NULL。我们的程序转换是基于全局值编号,一个计划的灵感来自编译器优化文献。它甚至允许对流不敏感的分析使用分支条件,例如检查指针是否为NULL并获得精度。我们在真实世界的代码上进行实验,以测量执行转换的开销和分析精度的提高。我们表明,精度从86.56%提高到98.05%,而开销是微不足道的。

英文摘要:

Precise analysis of pointer information plays an important role in many static analysis techniques and tools today. The precision, however, must be balanced against the scalability of the analysis. This paper focusses on improving the precision of standard context and flow insensitive alias analysis algorithms at a low scalability cost. In particular, we present a semantics-preserving program transformation that drastically improves the precision of existing analyses when deciding if a pointer can alias NULL. Our program transformation is based on Global Value Numbering, a scheme inspired from compiler optimizations literature. It allows even a flow-insensitive analysis to make use of branch conditions such as checking if a pointer is NULL and gain precision. We perform experiments on real-world code to measure the overhead in performing the transformation and the improvement in the precision of the analysis. We show that the precision improves from 86.56% to 98.05%, while the overhead is insignificant.

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

↑