public class BasicBlock extends PropObject implements java.lang.Iterable<Statement>
Modifier and Type | Field and Description |
---|---|
protected static int |
BasicBlockCounter
counter for generated BasicBlock
|
id
Constructor and Description |
---|
BasicBlock() |
BasicBlock(BasicBlock b) |
getProp, getProperties, Id, remProp, remProperties, setId, setProp, setProperties
protected static int BasicBlockCounter
public BasicBlock()
public BasicBlock(BasicBlock b)
public BasicBlock copy()
public final Block getParent()
public final void setParent(Block b)
public final Statement getHead()
public final Statement getTail()
public Xobject getExpr()
public void setExpr(Xobject x)
public StatementIterator statements()
public java.util.Iterator<Statement> iterator()
iterator
in interface java.lang.Iterable<Statement>
public java.util.Vector<BasicBlock> getCflowIn()
public java.util.Vector<BasicBlock> getCflowOut()
public BasicBlock getCflowIn(int i)
public BasicBlock getCflowOut(int i)
public void addCflowTo(BasicBlock b)
public void removeCflowTo(BasicBlock b)
public BasicBlock topNext()
public BasicBlock topPrev()
public void setTopNext(BasicBlock bb)
public void setTopPrev(BasicBlock bb)
public void resetMark()
public void setMark()
public boolean isMarked()
public int DFN()
public void setDFN(int n)
public void add(Statement s)
public void add(Xobject statement)
public void addStatement(Statement s)
public void addStatement(Xobject statement)
public void insert(Xobject statement)
public void insert(Statement s)
public void insertStatement(Xobject statement)
public void insertStatement(Statement s)
public boolean isEmpty()
public boolean isSingle()
public static BasicBlock Cond(Xobject x)
public static BasicBlock Statement(Xobject x)
public static BasicBlock Expr(Block parent, Xobject x)
public Xobject toXobject()
public java.lang.String toString()
toString
in class java.lang.Object