public static Vector copyPatternArguments(Vector arguments, Description description) {
    if (arguments == null) {
      return (null);
    }
    { int argumentcount = description.arity();
      Vector copiedarguments = null;

      if (argumentcount == -1) {
        argumentcount = arguments.length();
      }
      copiedarguments = Vector.newVector(argumentcount);
      { int i = Stella.NULL_INTEGER;
        int iter000 = 0;
        int upperBound000 = argumentcount - 1;

        for (;iter000 <= upperBound000; iter000 = iter000 + 1) {
          i = iter000;
          (copiedarguments.theArray)[i] = ((arguments.theArray)[i]);
        }
      }
      return (copiedarguments);
    }
  }