public static Cons yieldInCursorClausesForIntegerInterval(Cons collectiontree, StandardObject collectiontype, Symbol keyvar, Symbol valuevar, Object [] MV_returnarray) {
    if (keyvar != null) {
      { Object old$PrintreadablyP$000 = Stella.$PRINTREADABLYp$.get();

        try {
          Native.setBooleanSpecial(Stella.$PRINTREADABLYp$, true);
          Stella.signalTranslationError();
          if (!(Stella.suppressWarningsP())) {
            Stella.printErrorContext(">> ERROR: ", Stella.STANDARD_ERROR);
            {
              Stella.STANDARD_ERROR.nativeStream.println();
              Stella.STANDARD_ERROR.nativeStream.println(" Illegal key variable specified for INTEGER-INTERVAL.");
            }
;
          }

        } finally {
          Stella.$PRINTREADABLYp$.set(old$PrintreadablyP$000);
        }
      }
      { Cons _return_temp = Stella.NIL;

        MV_returnarray[0] = Stella.NIL;
        MV_returnarray[1] = Stella.NIL;
        MV_returnarray[2] = Stella.SYM_STELLA_FALSE;
        return (_return_temp);
      }
    }
    if (Stella.$AGGRESSIVELY_OPTIMIZE_INTERVAL_FOREACHp$) {
      return (Cons.yieldOptimizedInCursorClausesForIntegerInterval(collectiontree, collectiontype, keyvar, valuevar, MV_returnarray));
    }
    { Stella_Object upperbound = collectiontree.rest.rest.value;
      boolean knownunboundedP = (upperbound == Stella.SYM_STELLA_NULL) ||
          (upperbound == Stella.SYM_STELLA_NULL_INTEGER);
      boolean knownboundedP = (!knownunboundedP) &&
          (Stella_Object.isaP(Stella_Object.walkExpressionTree(Stella_Object.copyConsTree(upperbound), Stella.SGT_STELLA_INTEGER, Stella.SYM_STELLA_FOREACH, false, new Object[1]), Stella.SGT_STELLA_NUMBER_WRAPPER) ||
           (Stella_Object.consP(upperbound) &&
            Stella.getQuotedTree("((+ - * / 1+ 1- ++ -- LENGTH) \"/STELLA\")", "/STELLA").memberP(((Cons)(upperbound)).value)));
      Symbol iteratorvar = Stella.localGensym("ITER");
      Symbol upperboundvar = (knownunboundedP ? ((Symbol)(null)) : Stella.localGensym("UPPER-BOUND"));
      Symbol unboundedvar = ((knownunboundedP ||
          knownboundedP) ? ((Symbol)(null)) : Stella.localGensym("UNBOUNDED?"));

      { Cons _return_temp = Cons.list$(Cons.cons(Cons.cons(valuevar, Cons.list$(Cons.cons(Stella.SGT_STELLA_INTEGER, Cons.cons(Stella.SYM_STELLA_NULL, Cons.cons(Stella.NIL, Stella.NIL))))), Cons.cons(Cons.cons(iteratorvar, Cons.list$(Cons.cons(Stella.SGT_STELLA_INTEGER, Cons.cons(collectiontree.rest.value, Cons.cons(Stella.NIL, Stella.NIL))))), Cons.cons(((knownunboundedP ? Stella.NIL : Cons.cons(Cons.cons(upperboundvar, Cons.list$(Cons.cons(Stella.SGT_STELLA_INTEGER, Cons.cons(upperbound, Cons.cons(Stella.NIL, Stella.NIL))))), Stella.NIL))).concatenate((((knownunboundedP ||
            knownboundedP) ? Stella.NIL : Cons.cons(Cons.cons(unboundedvar, Cons.list$(Cons.cons(Stella.SGT_STELLA_BOOLEAN, Cons.cons(Cons.list$(Cons.cons(Stella.SYM_STELLA_NULLp, Cons.cons(upperboundvar, Cons.cons(Stella.NIL, Stella.NIL)))), Cons.cons(Stella.NIL, Stella.NIL))))), Stella.NIL))).concatenate(Stella.NIL, Stella.NIL), Stella.NIL), Stella.NIL))));

        MV_returnarray[0] = Cons.cons(Cons.list$(Cons.cons(Stella.SYM_STELLA_SETQ, Cons.cons(valuevar, Cons.cons(Cons.cons(iteratorvar, Stella.NIL), Stella.NIL)))), Stella.NIL);
        MV_returnarray[1] = Cons.cons(Cons.list$(Cons.cons(Stella.SYM_STELLA_ii, Cons.cons(iteratorvar, Cons.cons(Stella.NIL, Stella.NIL)))), Stella.NIL);
        MV_returnarray[2] = (knownunboundedP ? ((StandardObject)(Stella.SYM_STELLA_TRUE)) : ((StandardObject)((knownboundedP ? Cons.list$(Cons.cons(Stella.SYM_STELLA_le, Cons.cons(iteratorvar, Cons.cons(Cons.cons(upperboundvar, Stella.NIL), Stella.NIL)))) : Cons.list$(Cons.cons(Stella.SYM_STELLA_OR, Cons.cons(unboundedvar, Cons.cons(Cons.cons(Cons.list$(Cons.cons(Stella.SYM_STELLA_le, Cons.cons(iteratorvar, Cons.cons(Cons.cons(upperboundvar, Stella.NIL), Stella.NIL)))), Stella.NIL), Stella.NIL))))))));
        return (_return_temp);
      }
    }
  }