code: public static int getLocalVariableEndRange(LocalVariableTable lvt, int reg, int curPC) {
          int endRange = Integer.MAX_VALUE;
          if (lvt != null) {
              LocalVariable lv = lvt.getLocalVariable(reg, curPC);
              if (lv != null) {
                  endRange = lv.getStartPC() + lv.getLength();
              }
          }
          return endRange;
      }
docs: returns the end pc of the visible range of this register at this pc
  
  @param lvt
  the local variable table for this method
  @param reg
  the register to examine
  @param curPC
  the pc of the current instruction
  @return the endpc