The Role of the Control Flow Graph in Static Analysis
The control-flow graph is an important building block in static program analysis for applying a variety of analyses that consider the program flow. The “flow”, described informally, represents the evolution of the program during execution time, that is, at which the CPU jumps in order to continue program execution.
The control-flow graph (also called CFG for brevity) allows the first high-level elements of software to be derived in a general way from a low- or medium-level representation (e.g., assembly code or intermediate code). High-level elements include high-level loops (while or for loops) and execution branches (switch, if, else) that can be critical in identifying how execution evolves over time.
nicolo.dev