Package com.ibm.wala.ssa
Class SSAAbstractBinaryInstruction
- java.lang.Object
-
- com.ibm.wala.ssa.SSAInstruction
-
- com.ibm.wala.ssa.SSAAbstractBinaryInstruction
-
- Direct Known Subclasses:
EachElementGetInstruction,EachElementHasNextInstruction,SSABinaryOpInstruction
public abstract class SSAAbstractBinaryInstruction extends SSAInstruction
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.ibm.wala.ssa.SSAInstruction
SSAInstruction.IVisitor, SSAInstruction.Visitor
-
-
Constructor Summary
Constructors Constructor Description SSAAbstractBinaryInstruction(int iindex, int result, int val1, int val2)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetDef()intgetDef(int i)Return the ith defintgetNumberOfDefs()intgetNumberOfUses()intgetUse(int j)booleanhasDef()Does this instruction define a normal value, as distinct from a set of exceptions possibly thrown by it (e.g.inthashCode()-
Methods inherited from class com.ibm.wala.ssa.SSAInstruction
copyForSSA, equals, getExceptionTypes, getValueString, isFallThrough, isPEI, toString, toString, visit
-
-
-
-
Method Detail
-
hasDef
public boolean hasDef()
Description copied from class:SSAInstructionDoes this instruction define a normal value, as distinct from a set of exceptions possibly thrown by it (e.g. for invoke instructions).- Overrides:
hasDefin classSSAInstruction- Returns:
- true if the instruction does define a proper value.
-
getDef
public int getDef()
- Overrides:
getDefin classSSAInstruction
-
getDef
public int getDef(int i)
Description copied from class:SSAInstructionReturn the ith def- Overrides:
getDefin classSSAInstruction- Parameters:
i- number of the def, starting at 0.
-
getNumberOfDefs
public int getNumberOfDefs()
- Overrides:
getNumberOfDefsin classSSAInstruction- See Also:
SSAInstruction.getNumberOfUses()
-
getNumberOfUses
public int getNumberOfUses()
- Overrides:
getNumberOfUsesin classSSAInstruction
-
getUse
public int getUse(int j)
- Overrides:
getUsein classSSAInstruction- Returns:
- value number representing the jth use in this instruction. -1 means TOP (i.e., the value doesn't matter)
- See Also:
SSAInstruction.getUse(int)
-
hashCode
public int hashCode()
- Specified by:
hashCodein classSSAInstruction
-
-