Package de.fraunhofer.aisec.cpg.passes
Class ControlFlowGraphPass
- java.lang.Object
-
- de.fraunhofer.aisec.cpg.passes.Pass
-
- de.fraunhofer.aisec.cpg.passes.ControlFlowGraphPass
-
- All Implemented Interfaces:
java.util.function.Consumer<TranslationResult>
@Deprecated(since="3.4", forRemoval=true) public class ControlFlowGraphPass extends PassDeprecated, for removal: This API element is subject to removal in a future version.This Edge-Type is deprecated as it is conceptually less precise then theEvaluationOrderGraphPass.Creates a simple control flow graph (CFG) based on AST.The CFG is a directed cyclic graph with Node representing statements and edges representing the program control flow.
- Return statements will have no successors.
- Branch statements (if/switch/exception traps) will have multiple successors.
- Simple statements will have their following statement as sole successor
- break / continue will create respective edges
-
-
Constructor Summary
Constructors Constructor Description ControlFlowGraphPass()Deprecated, for removal: This API element is subject to removal in a future version.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaccept(TranslationResult t)Deprecated, for removal: This API element is subject to removal in a future version.voidaddTodo(int index, Statement... statements)Deprecated, for removal: This API element is subject to removal in a future version.Adds statements to this.remaining, omitting null.voidaddTodo(int index, java.util.List<Statement> stmts)Deprecated, for removal: This API element is subject to removal in a future version.voidcleanup()Deprecated, for removal: This API element is subject to removal in a future version.-
Methods inherited from class de.fraunhofer.aisec.cpg.passes.Pass
getLang, setLang, supportsLanguageFrontend
-
-
-
-
Method Detail
-
cleanup
public void cleanup()
Deprecated, for removal: This API element is subject to removal in a future version.
-
accept
public void accept(TranslationResult t)
Deprecated, for removal: This API element is subject to removal in a future version.
-
addTodo
public void addTodo(int index, java.util.List<Statement> stmts)Deprecated, for removal: This API element is subject to removal in a future version.
-
addTodo
public void addTodo(int index, Statement... statements)Deprecated, for removal: This API element is subject to removal in a future version.Adds statements to this.remaining, omitting null.- Parameters:
index- the indexstatements- the statements to add
-
-