Public Methods | |
BasicBlock (Instruction insts) | |
boolean | equals (BasicBlock b) |
int | hashCode () |
String | toString () |
BasicBlock (Index n) | |
void | addPreds (Index pred) |
void | addStmt (Stmt stmt) |
void | addSuccs (Index succ) |
void | changePreds (Index from, List to) |
void | changeSuccs (Index from, Index to) |
ca mcgill sable util List | get () |
Stmt | get (int i) |
List | getGoOn () |
Index | getIndex () |
List | getPreds () |
Index | getPreds (int i) |
List | getSuccs () |
Index | getSuccs (int i) |
void | setGoOn (List newGoOn) |
int | size () |
String | toString () |
Public Attributes | |
int | size |
Instruction | head |
Instruction | tail |
Vector | succ |
Vector | pred |
boolean | inq |
boolean | beginException |
boolean | beginCode |
BasicBlock | next |
long | id |
Protected Attributes | |
Index | name |
List | preds |
ca mcgill sable util List | stmts |
List | succs |
List | goOn |
Private Methods | |
ca mcgill sable soot jimple Stmt | getHeadJStmt () |
ca mcgill sable soot jimple Stmt | getTailJStmt () |
int | wideIndex (short b) |
Private Attributes | |
boolean | done |
short | wide |
ca mcgill sable soot jimple Stmt | stmt |
ca mcgill sable util List | statements |
ca mcgill sable util Set | addressesToFixup = new ca.mcgill.sable.util.VectorSet() |
Static Private Attributes | |
long | ids |
Definition at line 117 of file ca/mcgill/sable/soot/coffi/BasicBlock.java.
|
Constructs a new basic block with index n.
Definition at line 75 of file edu/ksu/cis/bandera/prog/BasicBlock.java. |
|
As a predecessor to the block.
Definition at line 86 of file edu/ksu/cis/bandera/prog/BasicBlock.java. Referenced by BlockMap::setJumps().
|
|
Adds a statement to the block.
Definition at line 96 of file edu/ksu/cis/bandera/prog/BasicBlock.java. |
|
Adds a successor to the block.
Definition at line 105 of file edu/ksu/cis/bandera/prog/BasicBlock.java. |
|
Changes the name of an index to another name in the predecessor.
Definition at line 115 of file edu/ksu/cis/bandera/prog/BasicBlock.java. |
|
Changes the name of an index to another name in the successors.
Definition at line 126 of file edu/ksu/cis/bandera/prog/BasicBlock.java. |
|
True if this block represents the same piece of code. Basically compares labels of the head instructions.
Definition at line 190 of file ca/mcgill/sable/soot/coffi/BasicBlock.java. |
|
Get the ith statement from the list.
Definition at line 146 of file edu/ksu/cis/bandera/prog/BasicBlock.java. |
|
Gets the list of statements.
Definition at line 135 of file edu/ksu/cis/bandera/prog/BasicBlock.java. Referenced by BlockMap::collapse(), and BlockMap::setJumps().
|
|
Insert the method's description here. Creation date: (4/13/00 2:25:06 PM)
Definition at line 158 of file edu/ksu/cis/bandera/prog/BasicBlock.java. Referenced by BlockMap::setJumps().
|
|
Gets the index of a basic block.
Definition at line 166 of file edu/ksu/cis/bandera/prog/BasicBlock.java. Referenced by BlockMap::collapse(), and BlockMap::setJumps().
|
|
Gets the ith predecessor.
Definition at line 187 of file edu/ksu/cis/bandera/prog/BasicBlock.java. |
|
Gets the list of predecessors.
Definition at line 175 of file edu/ksu/cis/bandera/prog/BasicBlock.java. |
|
Gets the ith successor.
Definition at line 211 of file edu/ksu/cis/bandera/prog/BasicBlock.java. |
|
Gets the list of successors.
Definition at line 199 of file edu/ksu/cis/bandera/prog/BasicBlock.java. Referenced by BlockMap::collapse(), and BlockMap::setJumps().
|
|
Computes a hash code for this block from the label of the first instruction in its contents.
Definition at line 207 of file ca/mcgill/sable/soot/coffi/BasicBlock.java. |
|
Insert the method's description here. Creation date: (4/13/00 2:25:06 PM)
Definition at line 223 of file edu/ksu/cis/bandera/prog/BasicBlock.java. |
|
Returns the number of statements.
Definition at line 231 of file edu/ksu/cis/bandera/prog/BasicBlock.java. |
|
For printing the string "BB: " + id. Definition at line 212 of file ca/mcgill/sable/soot/coffi/BasicBlock.java. |
|
Flag for whether starting main code block or not. Definition at line 145 of file ca/mcgill/sable/soot/coffi/BasicBlock.java. |
|
Flag for whether starting an exception or not. Definition at line 143 of file ca/mcgill/sable/soot/coffi/BasicBlock.java. |
|
Flag for semantic stack analysis fixup pass.
Definition at line 150 of file ca/mcgill/sable/soot/coffi/BasicBlock.java. |
|
Head of the list of instructions. Definition at line 121 of file ca/mcgill/sable/soot/coffi/BasicBlock.java. |
|
Unique (among basic blocks) id. Definition at line 155 of file ca/mcgill/sable/soot/coffi/BasicBlock.java. |
|
Name of the block. Definition at line 53 of file edu/ksu/cis/bandera/prog/BasicBlock.java. |
|
Next BasicBlock in the CFG, in the parse order. Definition at line 153 of file ca/mcgill/sable/soot/coffi/BasicBlock.java. |
|
Vector of successor BasicBlocks.
Definition at line 139 of file ca/mcgill/sable/soot/coffi/BasicBlock.java. |
|
List of predecessors. Definition at line 58 of file edu/ksu/cis/bandera/prog/BasicBlock.java. |
|
Number of instructions in this block. Definition at line 119 of file ca/mcgill/sable/soot/coffi/BasicBlock.java. |
|
Constructs a BasicBlock consisting of the given list of Instructions.
Definition at line 165 of file ca/mcgill/sable/soot/coffi/BasicBlock.java. |
|
List of statements in the block. Definition at line 63 of file edu/ksu/cis/bandera/prog/BasicBlock.java. |
|
Vector of predecessor BasicBlocks.
Definition at line 135 of file ca/mcgill/sable/soot/coffi/BasicBlock.java. |
|
List of successors in the block. Definition at line 68 of file edu/ksu/cis/bandera/prog/BasicBlock.java. |
|
Tail of the list of instructions. Normally, the last instruction will have a next pointer with value null. After a Instruction sequences are reconstructed though, the instruction lists are rejoined in order, and so the tail instruction will not have a null next pointer.
Definition at line 131 of file ca/mcgill/sable/soot/coffi/BasicBlock.java. |