AutoAlias:面向对象程序的自动变精度并行分析
AutoAlias: Automatic Variable-Precision Alias Analysis for Object-Oriented Programs
摘要:
别名问题(在执行过程中,两个引用表达式可以指向同一个对象吗?)是实践中最关键的应用之一,从编译器优化到程序员验证,也是研究最多的应用之一,几十年来发表了数百篇论文。人们可能会期望,好的现成解决方案是广泛可用的,准备插入到编译器或验证器。事实并非如此。在实践中,有效和精确的别名分析仍然是一个悬而未决的问题。我们提出了一个实用的工具,Autoclave,它可以用来执行自动别名分析面向对象的程序。基于“二元语义”理论,抽象解释思想的应用,它是针对面向对象的语言,并已实现为Eiffel作为EiffelStudio环境的补充。它提供了可变精度分析,通过选择控制固定点迭代次数的常数来控制:更高的数字意味着更好的精度和更长的计算时间。Autocompatibility的所有源代码以及本文中报告的详细分析结果都是公开的。到目前为止,实际应用已经涵盖了数据结构和算法库以及GUI创建库。对于前者,Autoclave实现了适用于实际目的的精度,并且对于大约8000行复杂代码的执行时间为25秒。对于GUI库,Autocompatibility在大约232秒内为大约150000行复杂的代码生成别名分析。
英文摘要:
The aliasing question (can two reference expressions point, during an execution, to the same object?) is both one of the most critical in practice, for applications ranging from compiler optimization to programmer verification, and one of the most heavily researched, with many hundreds of publications over several decades. One might then expect that good off-the-shelf solutions are widely available, ready to be plugged into a compiler or verifier. This is not the case. In practice, efficient and precise alias analysis remains an open problem. We present a practical tool, AutoAlias, which can be used to perform automatic alias analysis for object-oriented programs. Based on the theory of "duality semantics", an application of Abstract Interpretation ideas, it is directed at object-oriented languages and has been implemented for Eiffel as an addition to the EiffelStudio environment. It offers variable-precision analysis, controllable through the choice of a constant that governs the number of fix point iterations: a higher number means better precision and higher computation time. All the source code of AutoAlias, as well as detailed results of analyses reported in this article, are publicly available. Practical applications so far have covered a library of data structures and algorithms and a library for GUI creation. For the former, AutoAlias achieves a precision appropriate for practical purposes and execution times in the order of 25 seconds for about 8000 lines of intricate code. For the GUI library, AutoAlias produces the alias analysis in around 232 seconds for about 150000 lines of intricate code.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。