kontrollflytgraf
Kontrollflytgraf is a representation of the possible execution paths of a computer program. In a kontrollflytgraf, nodes correspond to basic blocks—straight-line chunks of code with one entry and one exit—and directed edges reflect how control may move from one block to another.
Constructing a kontrollflytgraf typically begins during compilation or static code analysis. The program is divided into
It is used to support program analysis and optimizations. Analyses such as liveness, reaching definitions, and
CFGs can be static, deriving from source or intermediate representations, or dynamic, reflecting runtime behaviour. Real
Applications and tools: compilers such as LLVM and GCC construct CFGs as part of optimization pipelines, and