Advantage of CFG
There are many advantages of a control flow graph.
- It can easily encapsulate the information per each basic block.
- It can easily locate inaccessible codes of a program and syntactic structures such as loops are easy to find in a control flow graph.
Control Flow Graph (CFG) – Software Engineering
A Control Flow Graph (CFG) is the graphical representation of control flow or computation during the execution of programs or applications. Control flow graphs are mostly used in static analysis as well as compiler applications, as they can accurately represent the flow inside a program unit. The control flow graph was originally developed by Frances E. Allen..