(CommandList
  children: [
    (C {(Lit_Other ':')} 
      {
        (DQ 
          (BracedVarSub
            token: <VSub_Name SED>
            suffix_op: (StringUnary op_id:VTest_Equals arg_word:{(sed)})
            spids: [86 90]
          )
        )
      }
    )
    (If
      arms: [
        (if_arm
          cond: [
            (Sentence
              child: 
                (SimpleCommand
                  words: [{(command)} {(-v)} {(cpuset)}]
                  redirects: [(Redir op_id:Redir_Great fd:-1 arg_word:{(/dev/null)} spids:[108])]
                )
              terminator: <Op_Semi ';'>
            )
          ]
          action: [
            (Case
              to_match: 
                {
                  (CommandSubPart
                    command_list: 
                      (CommandList
                        children: [(C {(cpuset)} {(-g)} {(-p)} {($ VSub_Dollar '$$')})]
                      )
                    left_token: <Left_Backtick '`'>
                    spids: [117 125]
                  )
                }
              arms: [
                (case_arm
                  pat_list: [{(Lit_Other '*') (Lit_Comma ',') (Lit_Other '*')}]
                  spids: [130 133 135 -1]
                )
                (case_arm
                  pat_list: [{(Lit_Other '*')}]
                  action: [(C {(echo)} {(SQ <'1..0 # Skipped: not an SMP system'>)}) (C {(exit)} {(0)})]
                  spids: [138 139 153 -1]
                )
              ]
              spids: [115 127 156]
            )
          ]
          spids: [-1 112]
        )
      ]
      spids: [-1 158]
    )
    (C {(echo)} {(DQ (1..1))})
    (Assignment
      keyword: Assign_None
      pairs: [(assign_pair lhs:(LhsName name:data) op:Equal rhs:{(abababab)} spids:[168])]
      spids: [168]
    )
    (Assignment
      keyword: Assign_None
      pairs: [
        (assign_pair
          lhs: (LhsName name:data)
          op: Equal
          rhs: 
            {($ VSub_Name '$data') ($ VSub_Name '$data') ($ VSub_Name '$data') ($ VSub_Name '$data')}
          spids: [171]
        )
      ]
      spids: [171]
    )
    (Assignment
      keyword: Assign_None
      pairs: [
        (assign_pair
          lhs: (LhsName name:data)
          op: Equal
          rhs: 
            {($ VSub_Name '$data') ($ VSub_Name '$data') ($ VSub_Name '$data') ($ VSub_Name '$data')}
          spids: [177]
        )
      ]
      spids: [177]
    )
    (Assignment
      keyword: Assign_None
      pairs: [
        (assign_pair
          lhs: (LhsName name:data)
          op: Equal
          rhs: 
            {($ VSub_Name '$data') ($ VSub_Name '$data') ($ VSub_Name '$data') ($ VSub_Name '$data')}
          spids: [183]
        )
      ]
      spids: [183]
    )
    (Assignment
      keyword: Assign_None
      pairs: [
        (assign_pair
          lhs: (LhsName name:data)
          op: Equal
          rhs: 
            {($ VSub_Name '$data') ($ VSub_Name '$data') ($ VSub_Name '$data') ($ VSub_Name '$data')}
          spids: [189]
        )
      ]
      spids: [189]
    )
    (Assignment
      keyword: Assign_None
      pairs: [
        (assign_pair
          lhs: (LhsName name:data)
          op: Equal
          rhs: {(DQ ('BEGIN\n') ($ VSub_Name '$data') ('\n') (END))}
          spids: [195]
        )
      ]
      spids: [195]
    )
    (ForEach
      iter_name: i
      iter_words: [{(0)} {(1)} {(2)} {(3)} {(4)} {(5)} {(6)} {(7)} {(8)} {(9)}]
      do_arg_iter: False
      body: 
        (DoGroup
          children: [
            (SimpleCommand
              words: [{(echo)} {(DQ ($ VSub_Name '$data'))}]
              redirects: [
                (Redir
                  op_id: Redir_Great
                  fd: -1
                  arg_word: {(file) ($ VSub_Name '$i')}
                  spids: [239]
                )
              ]
            )
          ]
          spids: [230 243]
        )
      spids: [208 228]
    )
    (Assignment
      keyword: Assign_None
      pairs: [
        (assign_pair
          lhs: (LhsName name:len)
          op: Equal
          rhs: {(BracedVarSub token:<VSub_Name data> prefix_op:VSub_Pound spids:[246249])}
          spids: [245]
        )
      ]
      spids: [245]
    )
    (Assignment
      keyword: Assign_None
      pairs: [(assign_pair lhs:(LhsName name:i) op:Equal rhs:{(0)} spids:[252])]
      spids: [252]
    )
    (Sentence
      child: 
        (While
          cond: [
            (Sentence
              child: (C {(Lit_Other '[')} {($ VSub_Name '$i')} {(-lt)} {(100)} {(Lit_Other ']')})
              terminator: <Op_Semi ';'>
            )
          ]
          body: 
            (DoGroup
              children: [
                (C {(${ VSub_Name SED)} {(-i.prev)} {(DQ (s/) ($ VSub_Name '$i') (/ab/))} 
                  {(file) (Lit_Other '[') (0-9) (Lit_Other ']')}
                )
                (Assignment
                  keyword: Assign_None
                  pairs: [
                    (assign_pair
                      lhs: (LhsName name:i)
                      op: Equal
                      rhs: 
                        {
                          (ArithSubPart
                            anode: 
                              (ArithBinary
                                op_id: Arith_Plus
                                left: (ArithVarRef name:i)
                                right: (ArithWord w:{(Lit_Digits 1)})
                              )
                            spids: [290 295]
                          )
                        }
                      spids: [289]
                    )
                  ]
                  spids: [289]
                )
              ]
              spids: [268 297]
            )
        )
      terminator: <Op_Amp '&'>
    )
    (Assignment
      keyword: Assign_None
      pairs: [(assign_pair lhs:(LhsName name:sedproc) op:Equal rhs:{($ VSub_Bang '$!')} spids:[301])]
      spids: [301]
    )
    (Sentence
      child: 
        (While
          cond: [(Sentence child:(C {(Lit_Other ':')}) terminator:<Op_Semi ';'>)]
          body: 
            (DoGroup
              children: [
                (C {(set)} {(--)} {(file) (Lit_Other '[') (0-9) (Lit_Other ']')})
                (If
                  arms: [
                    (if_arm
                      cond: [
                        (Sentence
                          child: 
                            (C {(Lit_Other '[')} {($ VSub_Pound '$#')} {(-ne)} {(10)} {(Lit_Other ']')})
                          terminator: <Op_Semi ';'>
                        )
                      ]
                      action: [(C {(echo)} {(DQ ('not ok 1 inplace_race'))}) (C {(exit)} {(3)})]
                      spids: [-1 336]
                    )
                  ]
                  spids: [-1 351]
                )
              ]
              spids: [310 353]
            )
        )
      terminator: <Op_Amp '&'>
    )
    (Assignment
      keyword: Assign_None
      pairs: [
        (assign_pair
          lhs: (LhsName name:checkproc)
          op: Equal
          rhs: {($ VSub_Bang '$!')}
          spids: [357]
        )
      ]
      spids: [357]
    )
    (C {(wait)} {($ VSub_Name '$sedproc')})
    (SimpleCommand
      words: [{(kill)} {($ VSub_Name '$checkproc')}]
      redirects: [(Redir op_id:Redir_Great fd:2 arg_word:{(/dev/null)} spids:[369])]
    )
    (SimpleCommand
      words: [{(wait)} {($ VSub_Name '$checkproc')}]
      redirects: [
        (Redir op_id:Redir_Great fd:-1 arg_word:{(/dev/null)} spids:[376])
        (Redir op_id:Redir_GreatAnd fd:2 arg_word:{(1)} spids:[379])
      ]
    )
    (If
      arms: [
        (if_arm
          cond: [
            (Sentence
              child: (C {(Lit_Other '[')} {($ VSub_QMark '$?')} {(-ne)} {(3)} {(Lit_Other ']')})
              terminator: <Op_Semi ';'>
            )
          ]
          action: [(C {(echo)} {(DQ ('ok 1 inplace_race'))})]
          spids: [-1 395]
        )
      ]
      spids: [-1 404]
    )
  ]
)