(command.AndOr
  ops: [Id.Op_DAmp]
  children: [
    (command.ShFunction
      name: _gdb
      body: 
        (BraceGroup
          children: [
            (C {<local>} {<cur>} {<prev>} {<words>} {<cword>} {<i>})
            (command.AndOr
              ops: [Id.Op_DPipe]
              children: [
                (C {<_init_completion>})
                (command.ControlFlow token:<Id.ControlFlow_Return return>)
              ]
            )
            (command.ForExpr
              init: 
                (arith_expr.BinaryAssign
                  op_id: Id.Arith_Equal
                  left: <Id.Lit_ArithVarLike i>
                  right: {<Id.Lit_Digits 1>}
                )
              cond: 
                (arith_expr.Binary
                  op_id: Id.Arith_Less
                  left: <Id.Lit_ArithVarLike i>
                  right: <Id.Lit_ArithVarLike cword>
                )
              update: (arith_expr.UnaryAssign op_id:Id.Node_PostDPlus child:<Id.Lit_ArithVarLike i>)
              body: 
                (command.DoGroup
                  children: [
                    (command.If
                      arms: [
                        (if_arm
                          cond: 
                            (condition.Shell
                              commands: [
                                (command.Sentence
                                  child: 
                                    (command.DBracket
                                      expr: 
                                        (bool_expr.Binary
                                          op_id: Id.BoolBinary_GlobDEqual
                                          left: 
                                            {
                                              (DQ 
                                                (braced_var_sub
                                                  token: <Id.VSub_Name words>
                                                  bracket_op: 
                                                    (bracket_op.ArrayIndex
                                                      expr: <Id.Lit_ArithVarLike i>
                                                    )
                                                )
                                              )
                                            }
                                          right: {<--args>}
                                        )
                                    )
                                  terminator: <Id.Op_Semi _>
                                )
                              ]
                            )
                          action: [
                            (C {<_command_offset>} 
                              {
                                (word_part.ArithSub
                                  anode: 
                                    (arith_expr.Binary
                                      op_id: Id.Arith_Plus
                                      left: <Id.Lit_ArithVarLike i>
                                      right: {<Id.Lit_Digits 1>}
                                    )
                                )
                              }
                            )
                            (command.ControlFlow
                              token: <Id.ControlFlow_Return return>
                              arg_word: {($ Id.VSub_QMark '$?')}
                            )
                          ]
                          spids: [62 82]
                        )
                      ]
                    )
                  ]
                )
            )
            (command.If
              arms: [
                (if_arm
                  cond: 
                    (condition.Shell
                      commands: [
                        (command.Sentence
                          child: 
                            (command.DBracket
                              expr: 
                                (bool_expr.Binary
                                  op_id: Id.BoolBinary_eq
                                  left: {($ Id.VSub_DollarName '$cword')}
                                  right: {<1>}
                                )
                            )
                          terminator: <Id.Op_Semi _>
                        )
                      ]
                    )
                  action: [
                    (C {<local>} {<IFS>})
                    (C {<compopt>} {<-o>} {<filenames>})
                    (command.If
                      arms: [
                        (if_arm
                          cond: 
                            (condition.Shell
                              commands: [
                                (command.Sentence
                                  child: 
                                    (command.DBracket
                                      expr: 
                                        (bool_expr.Binary
                                          op_id: Id.BoolBinary_GlobDEqual
                                          left: {(DQ ($ Id.VSub_DollarName '$cur'))}
                                          right: {<Id.Lit_Other '*'> <'/'> <Id.Lit_Other '*'>}
                                        )
                                    )
                                  terminator: <Id.Op_Semi _>
                                )
                              ]
                            )
                          action: [
                            (command.ShAssignment
                              pairs: [
                                (assign_pair
                                  lhs: (sh_lhs_expr.Name name:IFS)
                                  op: assign_op.Equal
                                  rhs: 
                                    {
                                      (single_quoted
                                        left: <Id.Left_DollarSingleQuote '$\''>
                                        tokens: [<Id.Char_OneChar '\\n'>]
                                        multiline: F
                                      )
                                    }
                                  spids: [163]
                                )
                              ]
                            )
                            (command.ShAssignment
                              pairs: [
                                (assign_pair
                                  lhs: (sh_lhs_expr.Name name:COMPREPLY)
                                  op: assign_op.Equal
                                  rhs: 
                                    {
                                      (sh_array_literal
                                        left: <Id.Op_LParen _>
                                        words: [
                                          {
                                            (command_sub
                                              left_token: <Id.Left_DollarParen '$('>
                                              child: 
                                                (command.Simple
                                                  words: [
                                                    {<compgen>}
                                                    {<-d>}
                                                    {<-c>}
                                                    {<-->}
                                                    {(DQ ($ Id.VSub_DollarName '$cur'))}
                                                  ]
                                                  more_env: [
                                                    (env_pair
                                                      name: PATH
                                                      val: {(DQ ($ Id.VSub_DollarName '$PATH') <':.'>)}
                                                      spids: [174]
                                                    )
                                                  ]
                                                  do_fork: T
                                                )
                                            )
                                          }
                                        ]
                                      )
                                    }
                                  spids: [169]
                                )
                              ]
                            )
                          ]
                          spids: [139 156]
                        )
                      ]
                      else_action: [
                        (command.ShAssignment
                          pairs: [
                            (assign_pair
                              lhs: (sh_lhs_expr.Name name:IFS)
                              op: assign_op.Equal
                              rhs: {(DQ <':'>)}
                              spids: [212]
                            )
                          ]
                        )
                        (C {<local>} 
                          {<Id.Lit_VarLike 'path_array='> 
                            (sh_array_literal
                              left: <Id.Op_LParen _>
                              words: [
                                {
                                  (command_sub
                                    left_token: <Id.Left_DollarParen '$('>
                                    child: 
                                      (command.Simple
                                        words: [
                                          {<sed>}
                                          {<-e>}
                                          {(SQ <'s/:\\{2,\\}/:/g'>)}
                                          {<-e>}
                                          {(SQ <'s/^://'>)}
                                          {<-e>}
                                          {(SQ <'s/:$//'>)}
                                        ]
                                        redirects: [
                                          (redir
                                            op: <Id.Redir_TLess '<<<'>
                                            loc: (redir_loc.Fd fd:0)
                                            arg: {(DQ ($ Id.VSub_DollarName '$PATH'))}
                                          )
                                        ]
                                        do_fork: T
                                      )
                                  )
                                }
                              ]
                            )
                          }
                        )
                        (command.ShAssignment
                          pairs: [
                            (assign_pair
                              lhs: (sh_lhs_expr.Name name:IFS)
                              op: assign_op.Equal
                              rhs: 
                                {
                                  (single_quoted
                                    left: <Id.Left_DollarSingleQuote '$\''>
                                    tokens: [<Id.Char_OneChar '\\n'>]
                                    multiline: F
                                  )
                                }
                              spids: [257]
                            )
                          ]
                        )
                        (command.ShAssignment
                          pairs: [
                            (assign_pair
                              lhs: (sh_lhs_expr.Name name:COMPREPLY)
                              op: assign_op.Equal
                              rhs: 
                                {
                                  (sh_array_literal
                                    left: <Id.Op_LParen _>
                                    words: [
                                      {
                                        (command_sub
                                          left_token: <Id.Left_DollarParen '$('>
                                          child: 
                                            (C {<compgen>} {<-d>} {<-W>} 
                                              {
                                                (SQ <'$(find "${path_array[@]}" . \\\n'> 
                                                  <
'                -mindepth 1 -maxdepth 1 -not -type d -executable \\\n'
                                                  > <'                -printf "%f\\\\n" 2>/dev/null)'>
                                                )
                                              } {<-->} {(DQ ($ Id.VSub_DollarName '$cur'))}
                                            )
                                        )
                                      }
                                    ]
                                  )
                                }
                              spids: [263]
                            )
                          ]
                        )
                      ]
                    )
                  ]
                  spids: [111 124]
                )
                (if_arm
                  cond: 
                    (condition.Shell
                      commands: [
                        (command.Sentence
                          child: 
                            (command.DBracket
                              expr: 
                                (bool_expr.Binary
                                  op_id: Id.BoolBinary_eq
                                  left: {($ Id.VSub_DollarName '$cword')}
                                  right: {<2>}
                                )
                            )
                          terminator: <Id.Op_Semi _>
                        )
                      ]
                    )
                  action: [
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name name:COMPREPLY)
                          op: assign_op.Equal
                          rhs: 
                            {
                              (sh_array_literal
                                left: <Id.Op_LParen _>
                                words: [
                                  {
                                    (command_sub
                                      left_token: <Id.Left_DollarParen '$('>
                                      child: 
                                        (C {<compgen>} {<-W>} 
                                          {
                                            (DQ 
                                              (command_sub
                                                left_token: <Id.Left_DollarParen '$('>
                                                child: 
                                                  (command.Pipeline
                                                    children: [
                                                      (C {<command>} {<ps>} {<axo>} 
                                                        {<comm> <Id.Lit_Comma ','> <pid>}
                                                      )
                                                      (C {<awk>} 
                                                        {(SQ <'{if ($1 ~ /^'>) 
                                                          (DQ 
                                                            (braced_var_sub
                                                              token: <Id.VSub_Name prev>
                                                              suffix_op: 
                                                                (suffix_op.Unary
                                                                  tok: <Id.VOp1_DPound '##'>
                                                                  arg_word: 
                                                                    {<Id.Lit_Other '*'> 
                                                                      <Id.Lit_Slash '/'>
                                                                    }
                                                                )
                                                            )
                                                          ) (SQ <'/) print $2}'>)
                                                        }
                                                      )
                                                    ]
                                                    negated: F
                                                  )
                                              )
                                            )
                                          } {<-->} {(DQ ($ Id.VSub_DollarName '$cur'))}
                                        )
                                    )
                                  }
                                ]
                              )
                            }
                          spids: [310]
                        )
                      ]
                    )
                    (C {<compopt>} {<-o>} {<filenames>})
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name name:COMPREPLY)
                          op: assign_op.PlusEqual
                          rhs: 
                            {
                              (sh_array_literal
                                left: <Id.Op_LParen _>
                                words: [
                                  {
                                    (command_sub
                                      left_token: <Id.Left_DollarParen '$('>
                                      child: 
                                        (C {<compgen>} {<-f>} {<-X>} {(SQ <'!?(*/)core?(.+([0-9]))'>)} 
                                          {<-o>} {<plusdirs>} {<-->} {(DQ ($ Id.VSub_DollarName '$cur'))}
                                        )
                                    )
                                  }
                                ]
                              )
                            }
                          spids: [374]
                        )
                      ]
                    )
                  ]
                  spids: [294 307]
                )
              ]
            )
          ]
        )
    )
    (C {<complete>} {<-F>} {<_gdb>} {<gdb>})
  ]
)