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

基于活性的指向分析的推广

Generalizing the Liveness Based Points-to Analysis

Uday P. Khedker, Vini Kanvar

摘要:

原始的基于活动度的流和上下文敏感的指向分析(LFCPA)仅限于堆栈和静态内存上的标量指针变量和标量指针。在本文中,我们扩展它,以支持堆内存和指针表达式,涉及结构,工会,数组和指针算术。这些扩展背后的关键思想包括根据编译时常量(名称和固定偏移量)为位置构造有界名称,并在不可能这样做时引入合理的近似。我们实现这一目标,定义一个语法指针表达式,合适的内存模型和位置命名约定,和一些关键的指针表达式计算命名的位置评估。这些扩展保留了原始LFCPA的精神,这由以下事实证明:尽管格和流函数改变,但总体数据流方程保持不变。

英文摘要:

The original liveness based flow and context sensitive points-to analysis (LFCPA) is restricted to scalar pointer variables and scalar pointees on stack and static memory. In this paper, we extend it to support heap memory and pointer expressions involving structures, unions, arrays, and pointer arithmetic. The key idea behind these extensions involves constructing bounded names for locations in terms of compile time constants (names and fixed offsets), and introducing sound approximations when it is not possible to do so. We achieve this by defining a grammar for pointer expressions, suitable memory models and location naming conventions, and some key evaluations of pointer expressions that compute the named locations. These extensions preserve the spirit of the original LFCPA which is evidenced by the fact that although the lattices and flow functions change, the overall data flow equations remain unchanged.

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

↑