protected boolean isDefinitionMoveParam(int reg) {
    SsaInsn defInsn = ssaMeth.getDefinitionForRegister(reg);

    if (defInsn instanceof NormalSsaInsn) {
      NormalSsaInsn ndefInsn = (NormalSsaInsn) defInsn;

      return ndefInsn.getOpcode().getOpcode() == RegOps.MOVE_PARAM;
    }

    return false;
  }
Returns true if the definition site of this register is a move-param (ie, this is a method
parameter).

@param reg register in question
@return {@code true} if this is a method parameter
android/android_framework/dex-maker/src/main/java/com/android/dx/ssa/back/RegisterAllocator.java