Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tool for generating control flow in Java [closed]

I need a tool for generating control flow in java, but not a visual draw, something that I can work with like with path conditions or so. Anyone ?

like image 541
Louro Avatar asked Jan 23 '11 12:01

Louro


People also ask

What is control flow in Java?

Control flow statements let you control the flow of the execution of the code in your program. In Java programming language, you can control the flow of execution of the code by placing the decision making, branching, looping, and adding conditional blocks.

What is CFG in 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 of a program unit.


2 Answers

To future record, what I´ve found that best suits to my needs is Soot.

http://www.sable.mcgill.ca/soot/

like image 92
Louro Avatar answered Nov 09 '22 03:11

Louro


The ASM library can do that, at the JVM-bytecode level. See Method Analysis and Control flow analyses in http://download.forge.objectweb.org/asm/asm4-guide.pdf (page 121).

like image 21
Arnaud Le Blanc Avatar answered Nov 09 '22 05:11

Arnaud Le Blanc