public class BriefBlockGraph extends BlockGraph
| Constructor and Description |
|---|
BriefBlockGraph(Body body)
Constructs a
BriefBlockGraph from a given Body. |
BriefBlockGraph(BriefUnitGraph unitGraph)
Constructs a
BriefBlockGraph representing the
Unit-level control flow represented by the passed
BriefUnitGraph. |
buildBlocks, computeLeaders, getBlocks, getBody, getHeads, getPredsOf, getSuccsOf, getTails, iterator, size, toStringpublic BriefBlockGraph(Body body)
BriefBlockGraph from a given Body.
Note that this constructor builds a BriefUnitGraph internally when splitting body's
Units into Blocks. Callers who already have
a BriefUnitGraph to hand can use the constructor
taking a CompleteUnitGraph as a parameter, as a
minor optimization.
body - the Body for which to build a graph.public BriefBlockGraph(BriefUnitGraph unitGraph)
BriefBlockGraph representing the
Unit-level control flow represented by the passed
BriefUnitGraph.unitGraph - the Body for which to build a graph.