arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2310.16559cs.PL
收藏

多结构对象指向分析

Multi-structure Objects Points-to Analysis

Xun An

AI总结:

针对现有结构敏感指针分析无法处理对象多结构的问题,本文提出引入结构流敏感、对类型做弱更新的MTO-SS方法,在GNU Coreutils的12个大程序上验证其精度更高且时间开销低。

摘要:

指针分析的一个重要维度是字段敏感(field-sensitive),已被证明可有效提升指针分析结果的准确性。字段敏感研究中的一个关键领域是结构敏感(Structure-Sensitive),结构敏感已被证实可进一步提升指针分析的精度。然而,现有结构敏感方法无法处理对象拥有多个结构的情况,尽管对象在其生命周期中具备多个结构是很常见的现象。本文提出MTO-SS,一种针对多结构对象的流敏感指针分析方法。我们的观察是,对象在其生命周期中拥有多个结构是普遍现象。MTO-SS的创新点在于:MTO-SS引入了结构流敏感(Structure-Flow-Sensitive)特性。对象在程序的不同位置具有不同的结构信息。为保证对象结构信息的完整性,MTO-SS始终对对象的类型执行弱更新,这意味着一旦对象拥有某个结构,该结构将伴随对象的整个生命周期。我们使用GNU Coreutils中最大的12个程序评估了这种多结构对象指针分析方法,并将实验结果与稀疏流敏感方法以及另一种仅允许对象拥有一种结构信息的方法TYPECLONE进行了对比。实验结果证实,MTO-SS比稀疏流敏感指针分析和TYPECLONE精度更高:与前者相比,MTO-SS平均能多回答超过22%的返回“无别名”结果的别名查询;与后者相比,这一比例超过3%。此外,该方法引入的时间开销非常低。

英文摘要:

An important dimension of pointer analysis is field-Sensitive, which has been proven to effectively enhance the accuracy of pointer analysis results. A crucial area of research within field-Sensitive is Structure-Sensitive. Structure-Sensitive has been shown to further enhance the precision of pointer analysis. However, existing structure-sensitive methods cannot handle cases where an object possesses multiple structures, even though it's common for an object to have multiple structures throughout its lifecycle. This paper introduces MTO-SS, a flow-sensitive pointer analysis method for objects with multiple structures. Our observation is that it's common for an object to possess multiple structures throughout its lifecycle. The novelty of MTO-SS lies in: MTO-SS introduces Structure-Flow-Sensitive. An object has different structure information at different locations in the program. To ensure the completeness of an object's structure information, MTO-SS always performs weak updates on the object's type. This means that once an object possesses a structure, this structure will accompany the object throughout its lifecycle. We evaluated our method of multi-structured object pointer analysis using the 12 largest programs in GNU Coreutils and compared the experimental results with sparse flow-sensitive method and another method, TYPECLONE, which only allows an object to have one structure information. Our experimental results confirm that MTO-SS is more precise than both sparse flow-sensitive pointer analysis and TYPECLONE, being able to answer, on average, over 22\% more alias queries with a no-alias result compared to the former, and over 3\% more compared to the latter. Additionally, the time overhead introduced by our method is very low.

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

↑