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

用于静态分析的堆抽象

Heap Abstractions for Static Analysis

Vini Kanvar, Uday P. Khedker

摘要:

堆数据可能是无限的,并且看起来是任意的。因此,与堆栈和静态内存不同,堆内存不能直接根据被分析程序中出现的一组固定的源变量名进行抽象。这使得它成为一个有趣的研究主题,并且有大量的文献使用堆抽象。虽然大多数研究都解决了类似的问题,但它们的表述和形式往往似乎不同,有时甚至无关。因此,在堆抽象的一个描述中获得的见解可能不会直接转移到其他描述中。这个调查是我们在现有的堆抽象描述中寻求一个统一主题的结果。特别是,我们的兴趣在于抽象,而不是构造它们的算法。在我们的搜索一个统一的主题,我们认为堆抽象包括两个功能:一个堆模型表示堆内存和总结技术界定堆表示。我们将模型分为无存储、基于存储和混合模型。我们描述了各种总结技术的基础上,k-限制,分配网站,模式,变量,其他通用仪器谓词,和高阶逻辑。这种方法使我们能够比较大量看似不同的堆抽象的见解,也为通过模型和总结技术的混合和匹配来创建新的抽象铺平了道路。

英文摘要:

Heap data is potentially unbounded and seemingly arbitrary. As a consequence, unlike stack and static memory, heap memory cannot be abstracted directly in terms of a fixed set of source variable names appearing in the program being analysed. This makes it an interesting topic of study and there is an abundance of literature employing heap abstractions. Although most studies have addressed similar concerns, their formulations and formalisms often seem dissimilar and some times even unrelated. Thus, the insights gained in one description of heap abstraction may not directly carry over to some other description. This survey is a result of our quest for a unifying theme in the existing descriptions of heap abstractions. In particular, our interest lies in the abstractions and not in the algorithms that construct them. In our search of a unified theme, we view a heap abstraction as consisting of two features: a heap model to represent the heap memory and a summarization technique for bounding the heap representation. We classify the models as storeless, store based, and hybrid. We describe various summarization techniques based on k-limiting, allocation sites, patterns, variables, other generic instrumentation predicates, and higher-order logics. This approach allows us to compare the insights of a large number of seemingly dissimilar heap abstractions and also paves way for creating new abstractions by mix-and-match of models and summarization techniques.

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

↑