(CommandList
  children: [
    (CommandList
      children: [
        (Sentence
          child: 
            (C {(.)} 
              {
                (DQ 
                  (BracedVarSub
                    token: <VSub_Name srcdir>
                    suffix_op: (StringUnary op_id:VTest_Equals arg_word:{(.)})
                    spids: [55 59]
                  ) (/init.sh)
                )
              }
            )
          terminator: <Op_Semi ';'>
        )
        (C {(path_prepend_)} {(.)})
      ]
    )
    (SimpleCommand
      words: [{(test-xalloc-die) (${ VSub_Name EXEEXT)}]
      redirects: [
        (Redir op:<Redir_Great '>'> fd:16777215 arg_word:{(out)})
        (Redir op:<Redir_Great '2>'> fd:2 arg_word:{(err)})
      ]
    )
    (Case
      to_match: {($ VSub_QMark '$?')}
      arms: [
        (case_arm pat_list:[{(1)}] spids:[89 90 92 16777215])
        (case_arm
          pat_list: [{(Lit_Other '*')}]
          action: [(C {(Exit)} {(1)})]
          spids: [95 96 101 16777215]
        )
      ]
      spids: [82 86 103]
    )
    (AndOr
      ops: [Op_DPipe]
      children: [
        (Pipeline
          children: [
            (SimpleCommand
              words: [{(tr)} {(-d)} {(SQ <'\\015'>)}]
              redirects: [(Redir op:<Redir_Less '<'> fd:16777215 arg_word:{(err)})]
            )
            (SimpleCommand
              words: [{(sed)} {(SQ <'s,.*test-xalloc-die[.ex]*:,test-xalloc-die:,'>)}]
              redirects: [(Redir op:<Redir_Great '>'> fd:16777215 arg_word:{(err2)})]
            )
          ]
          negated: F
        )
        (C {(Exit)} {(1)})
      ]
    )
    (AndOr
      ops: [Op_DPipe]
      children: [
        (SimpleCommand
          words: [{(compare)} {(-)} {(err2)}]
          redirects: [
            (HereDoc
              op: <Redir_DLess '<<'>
              fd: 16777215
              here_begin: {(EscapedLiteralPart token:<Lit_EscapedChar '\\E'>) (OF)}
              here_end_span_id: 156
              stdin_parts: [('test-xalloc-die: memory exhausted\n')]
            )
          ]
        )
        (C {(Exit)} {(1)})
      ]
    )
    (AndOr ops:[Op_DAmp] children:[(C {(test)} {(-s)} {(out)}) (C {(Exit)} {(1)})])
    (C {(Exit)} {($ VSub_Name '$fail')})
  ]
)