public static Cons computeExternalBindings(Vector externalarguments) {
    { Cons externalbindings = Stella.NIL;

      if (externalarguments == null) {
        return (Stella.NIL);
      }
      { Stella_Object arg = null;
        Vector vector000 = externalarguments;
        int index000 = 0;
        int length000 = vector000.length();
        Cons collect000 = null;

        for (;index000 < length000; index000 = index000 + 1) {
          arg = (vector000.theArray)[index000];
          if (collect000 == null) {
            {
              collect000 = Cons.cons(Logic.instantiateExternalBindings(Logic.safeArgumentBoundTo(arg)), Stella.NIL);
              if (externalbindings == Stella.NIL) {
                externalbindings = collect000;
              }
              else {
                Cons.addConsToEndOfConsList(externalbindings, collect000);
              }
            }
          }
          else {
            {
              collect000.rest = Cons.cons(Logic.instantiateExternalBindings(Logic.safeArgumentBoundTo(arg)), Stella.NIL);
              collect000 = collect000.rest;
            }
          }
        }
      }
      return (externalbindings);
    }
  }