Example #1
0
  /**
   * Return the integer value minimum value for the bound.
   *
   * @throws scale.common.InvalidException if the minimum value for the bound is not statically
   *     known
   */
  public final long getConstMin() throws scale.common.InvalidException {
    if ((flags & INTMIN) != 0) return minValue;

    if ((flags & MINCALC) != 0)
      throw new scale.common.InvalidException(
          "The number of elements is not known at compile time.");

    flags |= MINCALC;

    minValue = scale.common.Lattice.convertToLongValue(min.getConstantValue());
    flags |= INTMIN;
    return minValue;
  }