无需控制流图的流敏感性:一种高效的安德森风格流敏感指针分析
Flow Sensitivity without Control Flow Graph: An Efficient Andersen-Style Flow-Sensitive Pointer Analysis
AI总结:
研究旨在解决现有基于控制流图的流敏感指针分析计算效率低的问题,提出基于流敏感约束图的CG-FSPTA方法,利用集合约束图优势并结合复杂技术,在保持精度的同时显著提升效率,实验验证了该方法在大规模软件分析中的有效性。
摘要:
流敏感指针分析是精确程序分析的重要组成部分,通过纳入控制流来准确建模指针行为,广泛应用于别名分析、污点分析等。现有基于控制流图的方法虽提高了指针分析精度,但解决指向信息时存在计算效率问题。我们提出了CG-FSPTA,一种基于流敏感约束图的流敏感指针分析方法。它利用流敏感变体,结合集合约束图结构优势,保持变量定义和使用的流敏感性,纳入复杂图优化和动态求解技术,在保持精度的同时显著提高了效率。实验表明,与现有方法相比,CG-FSPTA平均内存减少33.05%,加速流敏感指针分析7.27倍,证明其作为大规模软件系统分析的可扩展解决方案的有效性。
英文摘要:
Flow-sensitive pointer analysis constitutes an essential component of precise program analysis for accurately modeling pointer behaviors by incorporating control flows. Flow-sensitive pointer analysis is extensively used in alias analysis, taint analysis, program understanding, compiler optimization, etc. Existing flow-sensitive pointer analysis approaches, which are conducted based on control flow graphs, have significantly advanced the precision of pointer analysis via sophisticated techniques to leverage control flow information. However, they inevitably suffer from computational inefficiencies when resolving points-to information due to the inherent complex structures of control flow graphs. We present CG-FSPTA, a Flow-Sensitive Constraint Graph (FSConsG) based flow-sensitive pointer analysis to overcome the inefficiency of control-flow-graph-based analysis. CG-FSPTA uses a flow-sensitive variant to leverage the structural advantages of set-constraint graphs (which are commonly used in flow-insensitive pointer analysis) while keeping the flow sensitivity of variable definitions and uses, allowing the incorporation of sophisticated graph optimization and dynamic solving techniques. In this way, CG-FSPTA achieves significant efficiency improvements while keeping the precision of flow-sensitive analysis. Experimental evaluations on benchmark programs demonstrate that CG-FSPTA, which leverages the FSConsG to simplify graph structure and significantly reduces both memory usage and execution time while maintaining precision. In particular, by solving in the FSConsG, CG-FSPTA achieves an average memory reduction of 33.05% and accelerates flow-sensitive pointer analysis by 7.27x compared to the state-of-art flow-sensitive pointer analysis method. These experimental results underscore the efficacy of CG-FSPTA as a scalable solution to analyze large-scale software systems.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。