(CommandList
  children: [
    (Sentence
      child: 
        (C {(.)} 
          {
            (DQ 
              (BracedVarSub
                token: <VSub_Name srcdir>
                suffix_op: (StringUnary op_id:VTest_Equals arg_word:{(.)})
                spids: [51 55]
              ) (/tests/init.sh)
            )
          }
        )
      terminator: <Op_Semi ';'>
    )
    (C {(path_prepend_)} {(./src)})
    (C {(print_ver_)} {(sort)})
    (C {(very_expensive_)})
    (C {(require_valgrind_)})
    (AndOr
      ops: [Op_DPipe]
      children: [
        (SimpleCommand
          words: [{(grep)} {(SQ <'^#define HAVE_PTHREAD_T 1'>)} {(DQ ($ VSub_Name '$CONFIG_HEADER'))}]
          redirects: [(Redir op_id:Redir_Great fd:16777215 arg_word:{(/dev/null)} spids:[84])]
        )
        (C {(skip_)} {(SQ <'requires pthreads'>)})
      ]
    )
    (AndOr
      ops: [Op_DPipe Op_DPipe]
      children: [
        (Subshell
          child: (C {(gensort)} {(-a)} {(10000)} {(KW_In in)})
          redirects: [(Redir op_id:Redir_Great fd:2 arg_word:{(/dev/null)} spids:[114])]
          spids: [104 112]
        )
        (Pipeline
          children: [
            (C {(seq)} {(-f)} {(Lit_Other '%') (-98f)} {(10000)})
            (SimpleCommand
              words: [{(shuf)}]
              redirects: [(Redir op_id:Redir_Great fd:16777215 arg_word:{(KW_In in)} spids:[133])]
            )
          ]
          negated: F
        )
        (C {(framework_failure_)})
      ]
    )
    (AndOr
      ops: [Op_DPipe]
      children: [
        (SimpleCommand
          words: [{(valgrind)} {(--quiet)} {(--error-exitcode) (Lit_Other '=') (3)} {(sort)} {(--version)}]
          redirects: [(Redir op_id:Redir_Great fd:16777215 arg_word:{(/dev/null)} spids:[164])]
        )
        (C {(framework_failure_)} {(SQ <'valgrind fails for trivial sort invocation'>)})
      ]
    )
    (ForEach
      iter_name: i
      iter_words: [
        {
          (CommandSubPart
            command_list: (CommandList children:[(C {(seq)} {(100)})])
            left_token: <Left_CommandSub '$('>
            spids: [196 200]
          )
        }
      ]
      do_arg_iter: F
      body: 
        (DoGroup
          children: [
            (AndOr
              ops: [Op_DPipe]
              children: [
                (SimpleCommand
                  words: [
                    {(valgrind)}
                    {(--quiet)}
                    {(--error-exitcode) (Lit_Other '=') (3)}
                    {(sort)}
                    {(-S)}
                    {(100K)}
                    {(--parallel) (Lit_Other '=') (2)}
                    {(KW_In in)}
                  ]
                  redirects: [
                    (Redir
                      op_id: Redir_Great
                      fd: 16777215
                      arg_word: {(/dev/null)}
                      spids: [228]
                    )
                  ]
                )
                (BraceGroup
                  children: [
                    (Sentence
                      child: 
                        (Assignment
                          keyword: Assign_None
                          pairs: [
                            (assign_pair
                              lhs: (LhsName name:fail)
                              op: Equal
                              rhs: {($ VSub_QMark '$?')}
                              spids: [237]
                            )
                          ]
                          spids: [237]
                        )
                      terminator: <Op_Semi ';'>
                    )
                    (Sentence
                      child: (C {(echo)} {(iteration)} {($ VSub_Name '$i')} {(failed)})
                      terminator: <Op_Semi ';'>
                    )
                    (Sentence
                      child: (C {(Exit)} {($ VSub_Name '$fail')})
                      terminator: <Op_Semi ';'>
                    )
                  ]
                  spids: [235]
                )
              ]
            )
          ]
          spids: [203 257]
        )
      spids: [195 201]
    )
    (C {(Exit)} {($ VSub_Name '$fail')})
  ]
)