Algorithm 2.2 Build-CFG
Input: a set of basic blocks.
Output: all edges in CFG derived from .
1:for all basic block in do
2:if JUMP then
3: // 跳转语句的目标语句
4:Let be the basic block containing .
5:output
6:end if
7:if UCONDITIONAL-JUMP then
8:
9:Let be the basic block containing .
10:output
11:end if
12:end for