结构分析:通过指向计算获得形状信息
Structural Analysis: Shape Information via Points-To Computation
摘要:
本文介绍了一种新的混合记忆分析,结构分析,它结合了一个富有表现力的形状分析风格的抽象域的高效和简单的点到风格的传递函数。使用对运行时堆结构和现代面向对象语言中使用的编程习惯的经验研究的数据,我们构建了具有以下特征的堆分析:(1)它可以表达一组丰富的结构、形状和共享属性,这些属性不是由经典的指向分析提供的,而是对优化和错误检测应用有用的(2)它使用有效的、弱更新的,基于集合的传递函数,这使得分析比形状分析更鲁棒和可缩放,以及(3)它可以用作在实践中产生精确结果的可缩放过程间分析的基础。该分析已经实现了.Net字节码,并使用此实现,我们评估了一些著名的基准测试和现实世界的程序的运行时成本和结果的精度。我们的实验评估表明,本文中定义的域是能够精确地表达大多数的连接,形状和共享属性,在实践中发生的,尽管使用弱更新,静态分析是能够精确地近似理想的结果。该分析能够在不到65秒的时间内分析大型真实世界程序(超过30K字节码),并使用不到130MB的内存。总之,这项工作提出了一种新型的记忆分析,先进的艺术表现力,精度和可扩展性方面,并代表了一个新的研究领域的关系和组合的概念,从形状和点的分析。
英文摘要:
This paper introduces a new hybrid memory analysis, Structural Analysis, which combines an expressive shape analysis style abstract domain with efficient and simple points-to style transfer functions. Using data from empirical studies on the runtime heap structures and the programmatic idioms used in modern object-oriented languages we construct a heap analysis with the following characteristics: (1) it can express a rich set of structural, shape, and sharing properties which are not provided by a classic points-to analysis and that are useful for optimization and error detection applications (2) it uses efficient, weakly-updating, set-based transfer functions which enable the analysis to be more robust and scalable than a shape analysis and (3) it can be used as the basis for a scalable interprocedural analysis that produces precise results in practice. The analysis has been implemented for .Net bytecode and using this implementation we evaluate both the runtime cost and the precision of the results on a number of well known benchmarks and real world programs. Our experimental evaluations show that the domain defined in this paper is capable of precisely expressing the majority of the connectivity, shape, and sharing properties that occur in practice and, despite the use of weak updates, the static analysis is able to precisely approximate the ideal results. The analysis is capable of analyzing large real-world programs (over 30K bytecodes) in less than 65 seconds and using less than 130MB of memory. In summary this work presents a new type of memory analysis that advances the state of the art with respect to expressive power, precision, and scalability and represents a new area of study on the relationships between and combination of concepts from shape and points-to analyses.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。