[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to construct a control flow graph?



#HUANG YUE# <huangyue@pmail.ntu.edu.sg> wrote:
> There is one document saying UnitGraph can be used to construct
> control flow graph.is it?

Yes, but you might be interested in using BriefUnitGraph,
CompleteUnitGraph or TrapUnitGraph which are wrappers around
UnitGraph, specialised in various ways.

It's as easy as:

CompleteUnitGraph cfg = new CompleteUnitGraph(jimpleBody)

Check the API documentation for details!

http://www.sable.mcgill.ca/soot/doc/soot/toolkits/graph/package-summary.html

Cheers,
Navin.