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
  • Field Details

    • result

      protected final int result
    • val1

      protected final int val1
    • val2

      protected final int val2
  • Constructor Details

    • SSAAbstractBinaryInstruction

      public SSAAbstractBinaryInstruction(int iindex, int result, int val1, int val2)
  • Method Details

    • hasDef

      public boolean hasDef()
      Description copied from class: SSAInstruction
      Does this instruction define a normal value, as distinct from a set of exceptions possibly thrown by it (e.g. for invoke instructions).
      Overrides:
      hasDef in class SSAInstruction
      Returns:
      true if the instruction does define a proper value.
    • getDef

      public int getDef()
      Overrides:
      getDef in class SSAInstruction
    • getDef

      public int getDef(int i)
      Description copied from class: SSAInstruction
      Return the ith def
      Overrides:
      getDef in class SSAInstruction
      Parameters:
      i - number of the def, starting at 0.
    • getNumberOfDefs

      public int getNumberOfDefs()
      Overrides:
      getNumberOfDefs in class SSAInstruction
      See Also:
    • getNumberOfUses

      public int getNumberOfUses()
      Overrides:
      getNumberOfUses in class SSAInstruction
    • getUse

      public int getUse(int j)
      Overrides:
      getUse in class SSAInstruction
      Returns:
      value number representing the jth use in this instruction. -1 means TOP (i.e., the value doesn't matter)
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in class SSAInstruction