【软件分析笔记】数据流分析:基础与原理篇
Data Flow Analysis: Foundations 在应用篇的所有算法,都可以看作是 Iterative Algorithm 现在,我们从形式化 Formal的角度来审视这些算法: A Functional View of Iterative Algorithm (Define)Given a CFG i.e.: a program with k nodes, the iterative algorithm updates $OUT[n]$ for every node n in each iteration. (Domain)Assume the domain of the values in data flow analysis is $V$, then we can define a K-tuple $$ (OUT[n_1],OUT[n_2],…,OUT[n_k]) $$ as an element of set $(V_1 \times V_2 \times … \times V_k)$ denoted as $V^k$, to hold the values of the analysis after each iteration....