public class SSAUtil
extends java.lang.Object
Constructor and Description |
---|
SSAUtil() |
Modifier and Type | Method and Description |
---|---|
static java.util.PriorityQueue<com.ibm.wala.ssa.ISSABasicBlock> |
constructSortedBlockPQ() |
static za.ac.sun.cs.green.expr.Expression |
convertCondition(com.ibm.wala.ssa.IR ir,
com.ibm.wala.ssa.SSAConditionalBranchInstruction cond) |
static za.ac.sun.cs.green.expr.Operation.Operator |
convertOperator(com.ibm.wala.shrikeBT.IConditionalBranchInstruction.Operator operator) |
static za.ac.sun.cs.green.expr.Expression |
convertWalaVar(com.ibm.wala.ssa.IR ir,
int ssaVar) |
static <E> void |
enqueue(java.util.PriorityQueue<E> queue,
E elem) |
static com.ibm.wala.ssa.SSAConditionalBranchInstruction |
getLastBranchInstruction(com.ibm.wala.ssa.ISSABasicBlock current) |
static java.util.Collection<com.ibm.wala.ssa.ISSABasicBlock> |
getNonReturnSuccessors(com.ibm.wala.ssa.SSACFG cfg,
com.ibm.wala.ssa.ISSABasicBlock current) |
static boolean |
isConditionalBranch(com.ibm.wala.ssa.ISSABasicBlock current) |
static boolean |
isLoopStart(java.util.HashSet<x10.wala.util.NatLoop> loops,
com.ibm.wala.ssa.ISSABasicBlock b) |
static void |
printBlock(com.ibm.wala.ssa.ISSABasicBlock block) |
static void |
printBlocksUpTo(com.ibm.wala.ssa.SSACFG cfg,
int blockNum) |
static boolean |
statefulBlock(com.ibm.wala.ssa.ISSABasicBlock block) |
static za.ac.sun.cs.green.expr.Operation.Operator |
translateBinaryOp(com.ibm.wala.shrikeBT.IBinaryOpInstruction.Operator op)
Translate a binary operation to the appropriate Green operator.
|
static za.ac.sun.cs.green.expr.Operation.Operator |
translateBinaryOp(com.ibm.wala.shrikeBT.IShiftInstruction.Operator op)
Translate a binary shift operation to the appropriate Green operator.
|
static za.ac.sun.cs.green.expr.Operation.Operator |
translateUnaryOp(com.ibm.wala.shrikeBT.IUnaryOpInstruction.Operator op)
Translates a unary operation in Wala to its corresponding Green operator.
|
public static java.util.Collection<com.ibm.wala.ssa.ISSABasicBlock> getNonReturnSuccessors(com.ibm.wala.ssa.SSACFG cfg, com.ibm.wala.ssa.ISSABasicBlock current)
public static java.util.PriorityQueue<com.ibm.wala.ssa.ISSABasicBlock> constructSortedBlockPQ()
public static <E> void enqueue(java.util.PriorityQueue<E> queue, E elem)
public static boolean isConditionalBranch(com.ibm.wala.ssa.ISSABasicBlock current)
public static com.ibm.wala.ssa.SSAConditionalBranchInstruction getLastBranchInstruction(com.ibm.wala.ssa.ISSABasicBlock current)
public static void printBlock(com.ibm.wala.ssa.ISSABasicBlock block)
public static void printBlocksUpTo(com.ibm.wala.ssa.SSACFG cfg, int blockNum)
public static boolean statefulBlock(com.ibm.wala.ssa.ISSABasicBlock block)
public static za.ac.sun.cs.green.expr.Operation.Operator convertOperator(com.ibm.wala.shrikeBT.IConditionalBranchInstruction.Operator operator)
public static za.ac.sun.cs.green.expr.Expression convertWalaVar(com.ibm.wala.ssa.IR ir, int ssaVar)
public static za.ac.sun.cs.green.expr.Expression convertCondition(com.ibm.wala.ssa.IR ir, com.ibm.wala.ssa.SSAConditionalBranchInstruction cond)
public static za.ac.sun.cs.green.expr.Operation.Operator translateBinaryOp(com.ibm.wala.shrikeBT.IBinaryOpInstruction.Operator op)
op
- Wala operationpublic static za.ac.sun.cs.green.expr.Operation.Operator translateBinaryOp(com.ibm.wala.shrikeBT.IShiftInstruction.Operator op)
op
- Wala operationpublic static za.ac.sun.cs.green.expr.Operation.Operator translateUnaryOp(com.ibm.wala.shrikeBT.IUnaryOpInstruction.Operator op)
public static boolean isLoopStart(java.util.HashSet<x10.wala.util.NatLoop> loops, com.ibm.wala.ssa.ISSABasicBlock b)