1988 · 83 citations · 21 references
ComputingComputer ScienceAlgorithmsCompilersProgramming LanguagesAbstract Syntax TreesControl-flow AnalysisData-flow AnalysisComplexity AnalysisControl Flow Graph AnalysisDataflow GraphsDominator Tree ConstructionEliminationFlow Graph ConstructionInterprocedural Control-flow AnalysisInterprocedural Data-flow Analysis
We present an algorithm for updating data flow information derived from a program, in response to program edits. Our algorithm, applicable to intraprocedural or interprocedural data flow problems, is more general than previous methods because it can update any monotone data flow problem defined on a reducible flow graph and can handle arbitrary program edits.Rather than design yet another special-purpose data flow update algorithm, we show how to reduce the class of data flow problems to another class of problems which already has a fast update algorithm. More specifically, we reduce a monotone data flow problem formulated for solution using Graham-Wegman elimination [12] to the problem of constructing and decorating an attributed tree structurally isomorphic to the dominator tree of the program flow graph.To update this dominator tree in response to program changes, we first show how to express domination in terms of two local properties of nodes and edges in the flow graph — niceness and deepness. Domination is then updated in response to an edge addition or deletion by repeatedly performing two local operations on the dominator tree, each operation restoring the local properties violated by the edge change. Second, we extend Reps' attributed tree update techniques [19,21,20] and his complexity analysis, to update attribute values in response to changes in this structure.
21
Monotone data flow analysis frameworks
John B. Kam, Jeffrey D. Ullman · Acta Informatica · 1977 · 380 citations
Fast Algorithms for Solving Path Problems
Robert E. Tarjan · Journal of the ACM · 1981 · 284 citations · Full text
A Unified Approach to Path Problems
Robert E. Tarjan · Journal of the ACM · 1981 · 251 citations · Full text