public static void cleanupUnfinalizedClasses() {
    { Cons unfinalizedclasses = Stella.NIL;

      { Stella_Class renamed_Class = null;
        Cons iter000 = Stella.$UNFINALIZED_CLASSES$.theConsList;
        Cons collect000 = null;

        for (;!(iter000 == Stella.NIL); iter000 = iter000.rest) {
          renamed_Class = ((Stella_Class)(iter000.value));
          if ((!renamed_Class.classFinalizedP) ||
              (!renamed_Class.classSlotsFinalizedP)) {
            if (collect000 == null) {
              {
                collect000 = Cons.cons(renamed_Class, Stella.NIL);
                if (unfinalizedclasses == Stella.NIL) {
                  unfinalizedclasses = collect000;
                }
                else {
                  Cons.addConsToEndOfConsList(unfinalizedclasses, collect000);
                }
              }
            }
            else {
              {
                collect000.rest = Cons.cons(renamed_Class, Stella.NIL);
                collect000 = collect000.rest;
              }
            }
          }
        }
      }
      Stella.$UNFINALIZED_CLASSES$.clear();
      Stella.$UNFINALIZED_CLASSES$.theConsList = unfinalizedclasses;
      Stella.$NEWLY_UNFINALIZED_CLASSESp$ = false;
    }
  }