(CommandList
  children: [
    (AndOr
      children: [
        (FuncDef
          name: _valgrind
          body: 
            (BraceGroup
              children: [
                (Assignment
                  keyword: Assign_Local
                  pairs: [
                    (assign_pair lhs:(LhsName name:cur) op:Equal spids:[13])
                    (assign_pair lhs:(LhsName name:prev) op:Equal spids:[15])
                    (assign_pair lhs:(LhsName name:words) op:Equal spids:[17])
                    (assign_pair lhs:(LhsName name:cword) op:Equal spids:[19])
                    (assign_pair lhs:(LhsName name:split) op:Equal spids:[21])
                  ]
                  spids: [11]
                )
                (AndOr
                  children: [
                    (C {(_init_completion)} {(-s)})
                    (ControlFlow token:<ControlFlow_Return return>)
                  ]
                  op_id: Op_DPipe
                )
                (Assignment
                  keyword: Assign_Local
                  pairs: [(assign_pair lhs:(LhsName name:i) op:Equal spids:[36])]
                  spids: [34]
                )
                (ForExpr
                  init: 
                    (BinaryAssign
                      op_id: Arith_Equal
                      left: (LhsName name:i)
                      right: (ArithWord w:{(Lit_Digits 1)})
                    )
                  cond: 
                    (ArithBinary
                      op_id: Arith_LessEqual
                      left: (ArithVarRef name:i)
                      right: (ArithVarRef name:COMP_CWORD)
                    )
                  update: (UnaryAssign op_id:Node_PostDPlus child:(LhsName name:i))
                  body: 
                    (DoGroup
                      children: [
                        (If
                          arms: [
                            (if_arm
                              cond: [
                                (Sentence
                                  child: 
                                    (DBracket
                                      expr: 
                                        (LogicalAnd
                                          left: 
                                            (BoolBinary
                                              op_id: BoolBinary_GlobNEqual
                                              left: 
                                                {
                                                  (BracedVarSub
                                                    token: <VSub_Name COMP_WORDS>
                                                    bracket_op: (ArrayIndex expr:(ArithVarRef name:i))
                                                    spids: [81 86]
                                                  )
                                                }
                                              right: 
                                                {(ExtGlobPart op:<ExtGlob_At '@('> spids:[90 92]) 
                                                  (Lit_Other '*')
                                                }
                                            )
                                          right: 
                                            (BoolBinary
                                              op_id: BoolBinary_GlobNEqual
                                              left: 
                                                {
                                                  (BracedVarSub
                                                    token: <VSub_Name COMP_WORDS>
                                                    bracket_op: 
                                                      (ArrayIndex
                                                        expr: 
                                                          (ArithBinary
                                                            op_id: Arith_Minus
                                                            left: (ArithVarRef name:i)
                                                            right: (ArithWord w:{(Lit_Digits 1)})
                                                          )
                                                      )
                                                    spids: [97 104]
                                                  )
                                                }
                                              right: {(BoolBinary_GlobEqual '=')}
                                            )
                                        )
                                    )
                                  terminator: <Op_Semi ';'>
                                )
                              ]
                              action: [
                                (C {(_command_offset)} {($ VSub_Name '$i')})
                                (ControlFlow
                                  token: <ControlFlow_Return return>
                                )
                              ]
                              spids: [16777215 113]
                            )
                          ]
                          spids: [16777215 124]
                        )
                      ]
                      spids: [74 127]
                    )
                )
                (Assignment
                  keyword: Assign_Local
                  pairs: [(assign_pair lhs:(LhsName name:tool) op:Equal spids:[133])]
                  spids: [131]
                )
                (ForExpr
                  init: 
                    (BinaryAssign
                      op_id: Arith_Equal
                      left: (LhsName name:i)
                      right: (ArithWord w:{(Lit_Digits 1)})
                    )
                  cond: 
                    (ArithBinary
                      op_id: Arith_Less
                      left: (ArithVarRef name:i)
                      right: 
                        (ArithWord
                          w: 
                            {
                              (BracedVarSub
                                token: <VSub_Name words>
                                prefix_op: VSub_Pound
                                bracket_op: (WholeArray op_id:Lit_At)
                                spids: [149 155]
                              )
                            }
                        )
                    )
                  update: (UnaryAssign op_id:Node_PostDPlus child:(LhsName name:i))
                  body: 
                    (DoGroup
                      children: [
                        (If
                          arms: [
                            (if_arm
                              cond: [
                                (Sentence
                                  child: 
                                    (DBracket
                                      expr: 
                                        (BoolBinary
                                          op_id: BoolBinary_GlobDEqual
                                          left: 
                                            {
                                              (BracedVarSub
                                                token: <VSub_Name words>
                                                bracket_op: (ArrayIndex expr:(ArithVarRef name:i))
                                                spids: [172 177]
                                              )
                                            }
                                          right: 
                                            {(--tool) (BoolBinary_GlobEqual '=') (Lit_Other '?') 
                                              (Lit_Other '*')
                                            }
                                        )
                                    )
                                  terminator: <Op_Semi ';'>
                                )
                              ]
                              action: [
                                (Assignment
                                  keyword: Assign_None
                                  pairs: [
                                    (assign_pair
                                      lhs: (LhsName name:tool)
                                      op: Equal
                                      rhs: 
                                        {
                                          (BracedVarSub
                                            token: <VSub_Name words>
                                            bracket_op: (ArrayIndex expr:(ArithVarRef name:i))
                                            spids: [193 198]
                                          )
                                        }
                                      spids: [192]
                                    )
                                  ]
                                  spids: [192]
                                )
                                (ControlFlow
                                  token: <ControlFlow_Break break>
                                )
                              ]
                              spids: [16777215 189]
                            )
                          ]
                          spids: [16777215 204]
                        )
                      ]
                      spids: [165 207]
                    )
                )
                (Case
                  to_match: {($ VSub_Name '$prev')}
                  arms: [
                    (case_arm
                      pat_list: [{(-h)} {(--help)} {(--help-debug)} {(--version)}]
                      action: [(ControlFlow token:<ControlFlow_Return return>)]
                      spids: [218 225 231 16777215]
                    )
                    (case_arm
                      pat_list: [{(--tool)}]
                      action: [
                        (Assignment
                          keyword: Assign_None
                          pairs: [
                            (assign_pair
                              lhs: (LhsName name:COMPREPLY)
                              op: Equal
                              rhs: 
                                {
                                  (ArrayLiteralPart
                                    words: [
                                      {
                                        (CommandSubPart
                                          command_list: 
                                            (CommandList
                                              children: [
                                                (C {(compgen)} {(-W)} 
                                                  {
                                                    (SQ <'$(\n'> 
                                                      <
'                for f in /usr{,/local}/lib{,64}/valgrind/*; do\n'
                                                      > <'                    [[ $f != *.so && -x $f ]] &&\n'> 
                                                      <
'                        sed -ne "s/^.*\\/\\(.*\\)-\\([^-]*\\)-\\([^-]*\\)/\\1/p" <<<$f\n'
                                                      > <'                done )'>
                                                    )
                                                  } {(--)} {(DQ ($ VSub_Name '$cur'))}
                                                )
                                              ]
                                            )
                                          left_token: <Left_CommandSub '$('>
                                          spids: [249 269]
                                        )
                                      }
                                    ]
                                  )
                                }
                              spids: [246]
                            )
                          ]
                          spids: [246]
                        )
                        (ControlFlow token:<ControlFlow_Return return>)
                      ]
                      spids: [234 235 277 16777215]
                    )
                    (case_arm
                      pat_list: [{(--sim-hints)}]
                      action: [
                        (Assignment
                          keyword: Assign_None
                          pairs: [
                            (assign_pair
                              lhs: (LhsName name:COMPREPLY)
                              op: Equal
                              rhs: 
                                {
                                  (ArrayLiteralPart
                                    words: [
                                      {
                                        (CommandSubPart
                                          command_list: 
                                            (CommandList
                                              children: [
                                                (C {(compgen)} {(-W)} {(SQ <'lax-ioctls enable-outer'>)} 
                                                  {(--)} {(DQ ($ VSub_Name '$cur'))}
                                                )
                                              ]
                                            )
                                          left_token: <Left_CommandSub '$('>
                                          spids: [287 303]
                                        )
                                      }
                                    ]
                                  )
                                }
                              spids: [284]
                            )
                          ]
                          spids: [284]
                        )
                        (ControlFlow token:<ControlFlow_Return return>)
                      ]
                      spids: [280 281 311 16777215]
                    )
                    (case_arm
                      pat_list: [{(--soname-synonyms)}]
                      action: [
                        (Assignment
                          keyword: Assign_None
                          pairs: [
                            (assign_pair
                              lhs: (LhsName name:COMPREPLY)
                              op: Equal
                              rhs: 
                                {
                                  (ArrayLiteralPart
                                    words: [
                                      {
                                        (CommandSubPart
                                          command_list: 
                                            (CommandList
                                              children: [
                                                (C {(compgen)} {(-W)} {(SQ <somalloc>)} {(-S)} 
                                                  {(Lit_Other '=')} {(--)} {(DQ ($ VSub_Name '$cur'))}
                                                )
                                              ]
                                            )
                                          left_token: <Left_CommandSub '$('>
                                          spids: [321 341]
                                        )
                                      }
                                    ]
                                  )
                                }
                              spids: [318]
                            )
                          ]
                          spids: [318]
                        )
                        (AndOr
                          children: [
                            (DBracket
                              expr: 
                                (BoolBinary
                                  op_id: BoolBinary_GlobDEqual
                                  left: {($ VSub_Name '$COMPREPLY')}
                                  right: {(Lit_Other '*') (BoolBinary_GlobEqual '=')}
                                )
                            )
                            (C {(compopt)} {(-o)} {(nospace)})
                          ]
                          op_id: Op_DAmp
                        )
                        (ControlFlow token:<ControlFlow_Return return>)
                      ]
                      spids: [314 315 369 16777215]
                    )
                    (case_arm
                      pat_list: [{(--kernel-variant)}]
                      action: [
                        (Assignment
                          keyword: Assign_None
                          pairs: [
                            (assign_pair
                              lhs: (LhsName name:COMPREPLY)
                              op: Equal
                              rhs: 
                                {
                                  (ArrayLiteralPart
                                    words: [
                                      {
                                        (CommandSubPart
                                          command_list: 
                                            (CommandList
                                              children: [
                                                (C {(compgen)} {(-W)} {(SQ <bproc>)} {(--)} 
                                                  {(DQ ($ VSub_Name '$cur'))}
                                                )
                                              ]
                                            )
                                          left_token: <Left_CommandSub '$('>
                                          spids: [379 395]
                                        )
                                      }
                                    ]
                                  )
                                }
                              spids: [376]
                            )
                          ]
                          spids: [376]
                        )
                        (ControlFlow token:<ControlFlow_Return return>)
                      ]
                      spids: [372 373 403 16777215]
                    )
                    (case_arm
                      pat_list: [{(--callgrind-out-file)}]
                      action: [(C {(_filedir)}) (ControlFlow token:<ControlFlow_Return return>)]
                      spids: [410 411 420 16777215]
                    )
                    (case_arm
                      pat_list: [{(--sort-by)}]
                      action: [
                        (Assignment
                          keyword: Assign_None
                          pairs: [
                            (assign_pair
                              lhs: (LhsName name:COMPREPLY)
                              op: Equal
                              rhs: 
                                {
                                  (ArrayLiteralPart
                                    words: [
                                      {
                                        (CommandSubPart
                                          command_list: 
                                            (CommandList
                                              children: [
                                                (C {(compgen)} {(-W)} 
                                                  {
                                                    (SQ <'max-bytes-live tot-bytes-allocd\n'> 
                                                      <'                max-blocks-live'>
                                                    )
                                                  } {(--)} {(DQ ($ VSub_Name '$cur'))}
                                                )
                                              ]
                                            )
                                          left_token: <Left_CommandSub '$('>
                                          spids: [434 451]
                                        )
                                      }
                                    ]
                                  )
                                }
                              spids: [431]
                            )
                          ]
                          spids: [431]
                        )
                        (ControlFlow token:<ControlFlow_Return return>)
                      ]
                      spids: [427 428 459 16777215]
                    )
                    (case_arm
                      pat_list: [{(--time-unit)}]
                      action: [
                        (Assignment
                          keyword: Assign_None
                          pairs: [
                            (assign_pair
                              lhs: (LhsName name:COMPREPLY)
                              op: Equal
                              rhs: 
                                {
                                  (ArrayLiteralPart
                                    words: [
                                      {
                                        (CommandSubPart
                                          command_list: 
                                            (CommandList
                                              children: [
                                                (C {(compgen)} {(-W)} {(SQ <'i ms B'>)} {(--)} 
                                                  {(DQ ($ VSub_Name '$cur'))}
                                                )
                                              ]
                                            )
                                          left_token: <Left_CommandSub '$('>
                                          spids: [473 489]
                                        )
                                      }
                                    ]
                                  )
                                }
                              spids: [470]
                            )
                          ]
                          spids: [470]
                        )
                        (ControlFlow token:<ControlFlow_Return return>)
                      ]
                      spids: [466 467 497 16777215]
                    )
                    (case_arm
                      pat_list: [{(--) (ExtGlobPart op:<ExtGlob_Plus '+('> spids:[505 507])}]
                      action: [
                        (Assignment
                          keyword: Assign_Local
                          pairs: [
                            (assign_pair
                              lhs: (LhsName name:value)
                              op: Equal
                              rhs: 
                                {
                                  (CommandSubPart
                                    command_list: 
                                      (CommandList
                                        children: [
                                          (Pipeline
                                            children: [
                                              (SimpleCommand
                                                words: [
                                                  {($ VSub_Number '$1')}
                                                  {(--help-debug)}
                                                  {($ VSub_Name '$tool')}
                                                ]
                                                redirects: [
                                                  (Redir
                                                    op_id: Redir_Great
                                                    fd: 2
                                                    arg_word: {(/dev/null)}
                                                    spids: [522]
                                                  )
                                                ]
                                              )
                                              (C {(sed)} {(-ne)} 
                                                {
                                                  (DQ ('s|^[') (Lit_Other '$') ("' ") (Lit_Other '\\') 
                                                    ("t']*") ($ VSub_Name '$prev') ('=') (Lit_Other '\\') ('([^') (Lit_Other '$') ("' ") (Lit_Other '\\') ("t']") 
                                                    (Lit_Other '\\') ('{1,') (Lit_Other '\\') ('}') (Lit_Other '\\') (').*|') (Lit_Other '\\') ('1|p')
                                                  )
                                                }
                                              )
                                            ]
                                            negated: False
                                          )
                                        ]
                                      )
                                    left_token: <Left_CommandSub '$('>
                                    spids: [514 557]
                                  )
                                }
                              spids: [513]
                            )
                          ]
                          spids: [511]
                        )
                        (Case
                          to_match: {($ VSub_Name '$value')}
                          arms: [
                            (case_arm
                              pat_list: [
                                {(EscapedLiteralPart token:<Lit_EscapedChar '\\<'>) (file) 
                                  (Lit_Other '*') (EscapedLiteralPart token:<Lit_EscapedChar '\\>'>)
                                }
                              ]
                              action: [(C {(_filedir)}) (ControlFlow token:<ControlFlow_Return return>)]
                              spids: [567 571 580 16777215]
                            )
                            (case_arm
                              pat_list: [
                                {(EscapedLiteralPart token:<Lit_EscapedChar '\\<'>) (command) 
                                  (EscapedLiteralPart
                                    token: <Lit_EscapedChar '\\>'>
                                  )
                                }
                              ]
                              action: [
                                (C {(compopt)} {(-o)} {(filenames)})
                                (Assignment
                                  keyword: Assign_None
                                  pairs: [
                                    (assign_pair
                                      lhs: (LhsName name:COMPREPLY)
                                      op: Equal
                                      rhs: 
                                        {
                                          (ArrayLiteralPart
                                            words: [
                                              {
                                                (CommandSubPart
                                                  command_list: 
                                                    (CommandList
                                                      children: [
                                                        (C {(compgen)} {(-c)} {(--)} 
                                                          {(DQ ($ VSub_Name '$cur'))}
                                                        )
                                                      ]
                                                    )
                                                  left_token: <Left_CommandSub '$('>
                                                  spids: [599 611]
                                                )
                                              }
                                            ]
                                          )
                                        }
                                      spids: [596]
                                    )
                                  ]
                                  spids: [596]
                                )
                                (ControlFlow
                                  token: <ControlFlow_Return return>
                                )
                              ]
                              spids: [583 586 619 16777215]
                            )
                            (case_arm
                              pat_list: [
                                {(EscapedLiteralPart token:<Lit_EscapedChar '\\<'>) 
                                  (ExtGlobPart
                                    op: <ExtGlob_Plus '+('>
                                    spids: [623 625]
                                  ) (..) (ExtGlobPart op:<ExtGlob_Plus '+('> spids:[627 629]) 
                                  (EscapedLiteralPart
                                    token: <Lit_EscapedChar '\\>'>
                                  )
                                }
                              ]
                              action: [
                                (Assignment
                                  keyword: Assign_None
                                  pairs: [
                                    (assign_pair
                                      lhs: (LhsName name:COMPREPLY)
                                      op: Equal
                                      rhs: 
                                        {
                                          (ArrayLiteralPart
                                            words: [
                                              {
                                                (CommandSubPart
                                                  command_list: 
                                                    (CommandList
                                                      children: [
                                                        (C {(compgen)} {(-W)} 
                                                          {
                                                            (DQ ('{') 
                                                              (BracedVarSub
                                                                token: <VSub_Name value>
                                                                suffix_op: 
                                                                  (Slice
                                                                    begin: 
                                                                      (ArithWord
                                                                        w: {(Lit_Digits 1)}
                                                                      )
                                                                    length: 
                                                                      (ArithBinary
                                                                        op_id: Arith_Minus
                                                                        left: 
                                                                          (ArithWord
                                                                            w: 
                                                                              {
                                                                                (BracedVarSub
                                                                                  token: 
                                                                                    <VSub_Name 
value
                                                                                    >
                                                                                  prefix_op: 
VSub_Pound
                                                                                  spids: [652 655]
                                                                                )
                                                                              }
                                                                          )
                                                                        right: 
                                                                          (ArithWord
                                                                            w: {(Lit_Digits 2)}
                                                                          )
                                                                      )
                                                                  )
                                                                spids: [645 660]
                                                              ) ('}')
                                                            )
                                                          } {(--)} {(DQ ($ VSub_Name '$cur'))}
                                                        )
                                                      ]
                                                    )
                                                  left_token: <Left_CommandSub '$('>
                                                  spids: [637 672]
                                                )
                                              }
                                            ]
                                          )
                                        }
                                      spids: [634]
                                    )
                                  ]
                                  spids: [634]
                                )
                                (ControlFlow
                                  token: <ControlFlow_Return return>
                                )
                              ]
                              spids: [622 631 680 16777215]
                            )
                            (case_arm
                              pat_list: [
                                {(yes)}
                                {(ExtGlobPart op:<ExtGlob_Plus '+('> spids:[693 695]) 
                                  (EscapedLiteralPart
                                    token: <Lit_EscapedChar '\\|'>
                                  ) (ExtGlobPart op:<ExtGlob_Plus '+('> spids:[697 701])
                                }
                              ]
                              action: [
                                (Assignment
                                  keyword: Assign_None
                                  pairs: [
                                    (assign_pair
                                      lhs: (LhsName name:COMPREPLY)
                                      op: Equal
                                      rhs: 
                                        {
                                          (ArrayLiteralPart
                                            words: [
                                              {
                                                (CommandSubPart
                                                  command_list: 
                                                    (CommandList
                                                      children: [
                                                        (SimpleCommand
                                                          words: [
                                                            {(compgen)}
                                                            {(-W)}
                                                            {(SQ <'$value'>)}
                                                            {(--)}
                                                            {(DQ ($ VSub_Name '$cur'))}
                                                          ]
                                                          more_env: [
                                                            (env_pair
                                                              name: IFS
                                                              val: {(SQ <'|'>)}
                                                              spids: [710]
                                                            )
                                                          ]
                                                        )
                                                      ]
                                                    )
                                                  left_token: <Left_CommandSub '$('>
                                                  spids: [708 729]
                                                )
                                              }
                                            ]
                                          )
                                        }
                                      spids: [705]
                                    )
                                  ]
                                  spids: [705]
                                )
                                (ControlFlow
                                  token: <ControlFlow_Return return>
                                )
                              ]
                              spids: [691 702 737 16777215]
                            )
                          ]
                          spids: [560 564 740]
                        )
                      ]
                      spids: [504 508 743 16777215]
                    )
                  ]
                  spids: [211 215 746]
                )
                (AndOr
                  children: [
                    (C {($ VSub_Name '$split')})
                    (ControlFlow token:<ControlFlow_Return return>)
                  ]
                  op_id: Op_DAmp
                )
                (If
                  arms: [
                    (if_arm
                      cond: [
                        (Sentence
                          child: 
                            (DBracket
                              expr: 
                                (BoolBinary
                                  op_id: BoolBinary_GlobDEqual
                                  left: {($ VSub_Name '$cur')}
                                  right: {(-) (Lit_Other '*')}
                                )
                            )
                          terminator: <Op_Semi ';'>
                        )
                      ]
                      action: [
                        (Assignment
                          keyword: Assign_None
                          pairs: [
                            (assign_pair
                              lhs: (LhsName name:COMPREPLY)
                              op: Equal
                              rhs: 
                                {
                                  (ArrayLiteralPart
                                    words: [
                                      {
                                        (CommandSubPart
                                          command_list: 
                                            (CommandList
                                              children: [
                                                (C {(compgen)} {(-W)} 
                                                  {(SQ <'$( _parse_help "$1" "--help $tool" )'>)} {(--)} {(DQ ($ VSub_Name '$cur'))}
                                                )
                                              ]
                                            )
                                          left_token: <Left_CommandSub '$('>
                                          spids: [778 796]
                                        )
                                      }
                                    ]
                                  )
                                }
                              spids: [775]
                            )
                          ]
                          spids: [775]
                        )
                        (AndOr
                          children: [
                            (DBracket
                              expr: 
                                (BoolBinary
                                  op_id: BoolBinary_GlobDEqual
                                  left: {($ VSub_Name '$COMPREPLY')}
                                  right: {(Lit_Other '*') (BoolBinary_GlobEqual '=')}
                                )
                            )
                            (C {(compopt)} {(-o)} {(nospace)})
                          ]
                          op_id: Op_DAmp
                        )
                        (ControlFlow token:<ControlFlow_Return return>)
                      ]
                      spids: [16777215 772]
                    )
                  ]
                  spids: [16777215 824]
                )
              ]
              spids: [8]
            )
          spids: [4 7]
        )
        (C {(complete)} {(-F)} {(_valgrind)} {(valgrind)})
      ]
      op_id: Op_DAmp
    )
  ]
)