Hostname: page-component-74656f9884-npj9w Total loading time: 0 Render date: 2026-11-09T21:52:21.574Z Has data issue: false hasContentIssue false

Incremental and Modular Context-sensitive Analysis

Published online by Cambridge University Press:  19 January 2021

ISABEL GARCIA-CONTRERAS
Affiliation:
IMDEA Software Institute, Madrid, Spain Universidad Politécnica de Madrid (UPM), Madrid, Spain, (e-mail: isabel.garcia@imdea.org)
JOSÉ F. MORALES
Affiliation:
IMDEA Software Institute, Madrid, Spain, (e-mail: josef.morales@imdea.org)
MANUEL V. HERMENEGILDO
Affiliation:
IMDEA Software Institute, Madrid, Spain Universidad Politécnica de Madrid (UPM), Madrid, Spain, (e-mail: manuel.hermenegildo@imdea.org)
Rights & Permissions [Opens in a new window]

Abstract

Core share and HTML view are not available for this content. However, as you have access to this content, a full PDF is available via the 'Save PDF' action button.

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 neither 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 intermodular propagation of analysis information, our algorithm also outperforms traditional modular analysis even when analyzing from scratch.

Information

Type
Original Article
Copyright
© The Author(s), 2021. Published by Cambridge University Press
Supplementary material: PDF

Garcia-Contreras et al. supplementary material

Garcia-Contreras et al. supplementary material

Download Garcia-Contreras et al. supplementary material(PDF)
PDF 1.3 MB