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

增量和模块化上下文敏感分析

Incremental and Modular Context-sensitive Analysis

Isabel Garcia-Contreras, Jose F. Morales, Manuel V. Hermenegildo

摘要:

大型代码库的上下文敏感全局分析可能是昂贵的,这可能使其在软件开发期间的使用不切实际。然而,在许多情况下,修改很小并且孤立于几个组件中,并且希望尽可能多地重用先前的分析结果。迄今为止,这已经通过增量全局分析定点算法实现,这些算法在精细的粒度级别上实现成本降低,例如程序行的更改。然而,这些细粒度技术并不直接适用于模块化程序,也不是为了利用模块化结构而设计的。本文描述,实现,并评估一个算法,执行有效的上下文敏感的分析增量模块化分区的程序。实验结果表明,所提出的模块化算法表现出显着的改善,在时间和内存消耗,相比现有的非模块化,细粒度增量分析技术。此外,由于所提出的分析信息的模块间传播,我们的算法也优于传统的模块化分析,即使从头开始分析。

英文摘要:

Context-sensitive global analysis of large code bases can be expensive, which can make its use impractical during software development. However, there are many situations in which modifications are small and isolated within a few components, and it is desirable to reuse as much as possible previous analysis results. This has been achieved to date through incremental global analysis fixpoint algorithms that achieve cost reductions at fine levels of granularity, such as changes in program lines. However, these fine-grained techniques are not directly applicable to modular programs, nor are they designed to take advantage of modular structures. This paper describes, implements, and evaluates an algorithm that performs efficient context-sensitive analysis incrementally on modular partitions of programs. The experimental results show that the proposed modular algorithm shows significant improvements, in both time and memory consumption, when compared to existing non-modular, fine-grain incremental analysis techniques. Furthermore, thanks to the proposed inter-modular propagation of analysis information, our algorithm also outperforms traditional modular analysis even when analyzing from scratch.

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

↑