public static Stella_Object yieldInitialValueExpression(StorageSlot slot) {
    if (slot.abstractP ||
        (slot.dynamicStorageP() ||
         (slot.slotHardwiredP ||
          (slot.allocation() == Stella.KWD_CLASS)))) {
      return (null);
    }
    { Stella_Object initialvalueexpression = slot.initially();

      if (initialvalueexpression != null) {
        return (Stella_Object.copyConsTree(initialvalueexpression));
      }
      if (((Keyword)(Stella.$TRANSLATOROUTPUTLANGUAGE$.get())) == Stella.KWD_COMMON_LISP) {
        if (slot.allocation() == Stella.KWD_EMBEDDED) {
          return (Cons.list$(Cons.cons(Stella.SYM_STELLA_ALLOCATE, Cons.cons(Surrogate.typeToSymbol(slot.type()), Cons.cons(Stella.NIL, Stella.NIL)))));
        }
      }
      else if ((((Keyword)(Stella.$TRANSLATOROUTPUTLANGUAGE$.get())) == Stella.KWD_JAVA) ||
          ((((Keyword)(Stella.$TRANSLATOROUTPUTLANGUAGE$.get())) == Stella.KWD_CPP) ||
           ((((Keyword)(Stella.$TRANSLATOROUTPUTLANGUAGE$.get())) == Stella.KWD_CPP_STANDALONE) ||
            (((Keyword)(Stella.$TRANSLATOROUTPUTLANGUAGE$.get())) == Stella.KWD_IDL)))) {
        if (slot.allocation() == Stella.KWD_EMBEDDED) {
          return (Cons.list$(Cons.cons(Stella.SYM_STELLA_ALLOCATE, Cons.cons(Surrogate.typeToSymbol(slot.type()), Cons.cons(Stella.NIL, Stella.NIL)))));
        }
      }
      else {
        { OutputStringStream stream000 = OutputStringStream.newOutputStringStream();

          stream000.nativeStream.print("`" + ((Keyword)(Stella.$TRANSLATOROUTPUTLANGUAGE$.get())) + "' is not a valid case option");
          throw ((StellaException)(StellaException.newStellaException(stream000.theStringReader()).fillInStackTrace()));
        }
      }
      return (StandardObject.typeToWalkedNullValueTree(slot.typeSpecifier(), slot.type()));
    }
  }