(CommandList
  children: [
    (Sentence
      child: 
        (C {(.)} 
          {
            (DQ 
              (BracedVarSub
                token: <VSub_Name srcdir>
                suffix_op: (StringUnary op_id:VTest_Equals arg_word:{(.)})
                spids: [47 51]
              ) (/tests/init.sh)
            )
          }
        )
      terminator: <Op_Semi ';'>
    )
    (C {(path_prepend_)} {(./src)})
    (C {(print_ver_)} {(sort)})
    (AndOr
      ops: [Op_DPipe]
      children: [
        (SimpleCommand
          words: [{(seq)} {(100)}]
          redirects: [(Redir op_id:Redir_Great fd:16777215 arg_word:{(KW_In in)} spids:[69])]
        )
        (C {(framework_failure_)})
      ]
    )
    (AndOr
      ops: [Op_DPipe]
      children: [
        (SimpleCommand
          words: [{(sort)} {(--random-sort)} {(KW_In in)}]
          redirects: [(Redir op_id:Redir_Great fd:16777215 arg_word:{(out)} spids:[85])]
        )
        (Assignment
          keyword: Assign_None
          pairs: [(assign_pair lhs:(LhsName name:fail) op:Equal rhs:{(1)} spids:[91])]
          spids: [91]
        )
      ]
    )
    (AndOr
      ops: [Op_DAmp]
      children: [
        (SimpleCommand
          words: [{(compare)} {(KW_In in)} {(out)}]
          redirects: [(Redir op_id:Redir_Great fd:16777215 arg_word:{(/dev/null)} spids:[110])]
        )
        (BraceGroup
          children: [
            (Sentence
              child: 
                (Assignment
                  keyword: Assign_None
                  pairs: [(assign_pair lhs:(LhsName name:fail) op:Equal rhs:{(1)} spids:[118])]
                  spids: [118]
                )
              terminator: <Op_Semi ';'>
            )
            (Sentence
              child: 
                (SimpleCommand
                  words: [{(echo)} {(DQ ('not random?'))}]
                  redirects: [(Redir op_id:Redir_GreatAnd fd:1 arg_word:{(2)} spids:[128])]
                )
              terminator: <Op_Semi ';'>
            )
          ]
          spids: [116]
        )
      ]
    )
    (SimpleCommand
      words: [{(sort)} {(-n)} {(out)}]
      redirects: [(Redir op_id:Redir_Great fd:16777215 arg_word:{(out1)} spids:[144])]
    )
    (AndOr
      ops: [Op_DPipe]
      children: [
        (C {(compare)} {(KW_In in)} {(out1)})
        (BraceGroup
          children: [
            (Sentence
              child: 
                (Assignment
                  keyword: Assign_None
                  pairs: [(assign_pair lhs:(LhsName name:fail) op:Equal rhs:{(1)} spids:[158])]
                  spids: [158]
                )
              terminator: <Op_Semi ';'>
            )
            (Sentence
              child: 
                (SimpleCommand
                  words: [{(echo)} {(DQ ('not a permutation'))}]
                  redirects: [(Redir op_id:Redir_GreatAnd fd:1 arg_word:{(2)} spids:[168])]
                )
              terminator: <Op_Semi ';'>
            )
          ]
          spids: [156]
        )
      ]
    )
    (If
      arms: [
        (if_arm
          cond: [
            (Sentence
              child: 
                (Subshell
                  child: (C {(locale)} {(--version)})
                  redirects: [
                    (Redir
                      op_id: Redir_Great
                      fd: 16777215
                      arg_word: {(/dev/null)}
                      spids: [186]
                    )
                    (Redir op_id:Redir_GreatAnd fd:2 arg_word:{(1)} spids:[190])
                  ]
                  spids: [180 184]
                )
              terminator: <Op_Semi ';'>
            )
          ]
          action: [
            (Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (LhsName name:locale)
                  op: Equal
                  rhs: 
                    {
                      (CommandSubPart
                        command_list: 
                          (CommandList
                            children: [
                              (Pipeline
                                children: [
                                  (C {(locale)} {(-a)})
                                  (C {(sort)} {(--random-sort)})
                                  (C {($ VSub_Name '$AWK')} {(SQ <'/^.._/{print;exit}'>)})
                                ]
                                negated: F
                              )
                            ]
                          )
                        left_token: <Left_CommandSub '$('>
                        spids: [198 216]
                      )
                    }
                  spids: [197]
                )
              ]
              spids: [197]
            )
            (AndOr
              ops: [Op_DPipe]
              children: [
                (SimpleCommand
                  words: [{(sort)} {(--random-sort)} {(KW_In in)}]
                  redirects: [(Redir op_id:Redir_Great fd:16777215 arg_word:{(out1)} spids:[228])]
                  more_env: [(env_pair name:LC_ALL val:{($ VSub_Name '$locale')} spids:[219])]
                )
                (Assignment
                  keyword: Assign_None
                  pairs: [(assign_pair lhs:(LhsName name:fail) op:Equal rhs:{(1)} spids:[234])]
                  spids: [234]
                )
              ]
            )
            (AndOr
              ops: [Op_DPipe]
              children: [
                (SimpleCommand
                  words: [{(sort)} {(--random-sort)} {(KW_In in)}]
                  redirects: [(Redir op_id:Redir_Great fd:16777215 arg_word:{(out2)} spids:[247])]
                  more_env: [(env_pair name:LC_ALL val:{($ VSub_Name '$locale')} spids:[238])]
                )
                (Assignment
                  keyword: Assign_None
                  pairs: [(assign_pair lhs:(LhsName name:fail) op:Equal rhs:{(1)} spids:[253])]
                  spids: [253]
                )
              ]
            )
            (AndOr
              ops: [Op_DAmp]
              children: [
                (SimpleCommand
                  words: [{(compare)} {(out1)} {(out2)}]
                  redirects: [
                    (Redir
                      op_id: Redir_Great
                      fd: 16777215
                      arg_word: {(/dev/null)}
                      spids: [268]
                    )
                  ]
                )
                (BraceGroup
                  children: [
                    (Sentence
                      child: 
                        (Assignment
                          keyword: Assign_None
                          pairs: [
                            (assign_pair
                              lhs: (LhsName name:fail)
                              op: Equal
                              rhs: {(1)}
                              spids: [277]
                            )
                          ]
                          spids: [277]
                        )
                      terminator: <Op_Semi ';'>
                    )
                    (Sentence
                      child: 
                        (SimpleCommand
                          words: [{(echo)} {(DQ ('not random with LC_ALL=') ($ VSub_Name '$locale'))}]
                          redirects: [(Redir op_id:Redir_GreatAnd fd:1 arg_word:{(2)} spids:[288])]
                        )
                      terminator: <Op_Semi ';'>
                    )
                  ]
                  spids: [275]
                )
              ]
            )
            (SimpleCommand
              words: [{(sort)} {(-n)} {(out)}]
              redirects: [(Redir op_id:Redir_Great fd:16777215 arg_word:{(out1)} spids:[306])]
            )
            (AndOr
              ops: [Op_DPipe]
              children: [
                (C {(compare)} {(KW_In in)} {(out1)})
                (BraceGroup
                  children: [
                    (Sentence
                      child: 
                        (Assignment
                          keyword: Assign_None
                          pairs: [
                            (assign_pair
                              lhs: (LhsName name:fail)
                              op: Equal
                              rhs: {(1)}
                              spids: [322]
                            )
                          ]
                          spids: [322]
                        )
                      terminator: <Op_Semi ';'>
                    )
                    (Sentence
                      child: 
                        (SimpleCommand
                          words: [
                            {(echo)}
                            {(DQ ('not a permutation with LC_ALL=') ($ VSub_Name '$locale'))}
                          ]
                          redirects: [(Redir op_id:Redir_GreatAnd fd:1 arg_word:{(2)} spids:[333])]
                        )
                      terminator: <Op_Semi ';'>
                    )
                  ]
                  spids: [320]
                )
              ]
            )
          ]
          spids: [16777215 194]
        )
      ]
      spids: [16777215 339]
    )
    (C {(Exit)} {($ VSub_Name '$fail')})
  ]
)