public final class BranchStructure
extends java.lang.Object
BranchStructure
implements an internal representation of branch structures.
A branch structure is a sequence of entries. An entry is either a branch or a basic block or a delay slot. A branch entry is either an if-then entry (a conditional jump) or a goto entry (an unconditional jump). A branch entry contains the label (an index in the sequence) and the execution trace (a sequence of jump conditions).
Constructor and Description |
---|
BranchStructure(int size)
Constructs a branch structure.
|
Modifier and Type | Method and Description |
---|---|
BranchStructure |
clone() |
BranchEntry |
get(int i) |
boolean |
isEmpty() |
int |
size() |
java.lang.String |
toString() |
public BranchStructure(int size)
size
- the branch structure size.public int size()
public boolean isEmpty()
public BranchEntry get(int i)
public java.lang.String toString()
toString
in class java.lang.Object
public BranchStructure clone()
clone
in class java.lang.Object