Assign index to each CFG node (DFS)