public static boolean logicCommandLoopExitP(Stella_Object command, Object [] MV_returnarray) {
    { boolean exitP = false;

      { Surrogate testValue000 = Stella_Object.safePrimaryType(command);

        if (Surrogate.subtypeOfKeywordP(testValue000)) {
          { Keyword command000 = ((Keyword)(command));

            if ((command000 == Logic.KWD_BYE) ||
                ((command000 == Logic.KWD_EXIT) ||
                 ((command000 == Logic.KWD_HALT) ||
                  ((command000 == Logic.KWD_QUIT) ||
                   (command000 == Logic.KWD_STOP))))) {
              exitP = true;
            }
            else {
            }
          }
        }
        else if (Surrogate.subtypeOfSymbolP(testValue000)) {
          { Symbol command000 = ((Symbol)(command));

            { String testValue001 = command000.symbolName;

              if (Stella.stringEqlP(testValue001, "BYE") ||
                  (Stella.stringEqlP(testValue001, "EXIT") ||
                   (Stella.stringEqlP(testValue001, "HALT") ||
                    (Stella.stringEqlP(testValue001, "QUIT") ||
                     (Stella.stringEqlP(testValue001, "STOP") ||
                      (Stella.stringEqlP(testValue001, "bye") ||
                       (Stella.stringEqlP(testValue001, "exit") ||
                        (Stella.stringEqlP(testValue001, "halt") ||
                         (Stella.stringEqlP(testValue001, "quit") ||
                          Stella.stringEqlP(testValue001, "stop")))))))))) {
                exitP = true;
              }
              else {
              }
            }
          }
        }
        else {
        }
      }
      if (exitP &&
          ((Boolean)(Logic.$CAREFUL_LOGIC_COMMAND_LOOP_EXIT$p.get())).booleanValue()) {
        exitP = Stella.yesOrNoP("Really exit? (yes or no) ");
        if (exitP) {
          System.out.println();
        }
        { boolean _return_temp = exitP;

          MV_returnarray[0] = BooleanWrapper.wrapBoolean(true);
          return (_return_temp);
        }
      }
      { boolean _return_temp = exitP;

        MV_returnarray[0] = BooleanWrapper.wrapBoolean(exitP);
        return (_return_temp);
      }
    }
  }