(command.AndOr
  ops: [Id.Op_DAmp]
  children: [
    (command.ShFunction
      name: _gdb
      body: 
        (command.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: (sh_lhs_expr.Name name:i)
                  right: (arith_expr.ArithWord w:{<Id.Lit_Digits 1>})
                )
              cond: 
                (arith_expr.Binary
                  op_id: Id.Arith_Less
                  left: (arith_expr.VarRef token:<Id.Lit_ArithVarLike i>)
                  right: (arith_expr.VarRef token:<Id.Lit_ArithVarLike cword>)
                )
              update: (arith_expr.UnaryAssign op_id:Id.Node_PostDPlus child:(sh_lhs_expr.Name name:i))
              body: 
                (command.DoGroup
                  children: [
                    (command.If
                      arms: [
                        (if_arm
                          cond: [
                            (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: 
                                                    (arith_expr.VarRef
                                                      token: <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: (arith_expr.VarRef token:<Id.Lit_ArithVarLike i>)
                                      right: (arith_expr.ArithWord w:{<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: [
                    (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: [
                            (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_SingleQuoteC "$'">
                                        tokens: [<Id.Char_OneChar '\\n'>]
                                      )
                                    }
                                  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 '$('>
                                              command_list: 
                                                (command.CommandList
                                                  children: [
                                                    (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]
                                                        )
                                                      ]
                                                    )
                                                  ]
                                                )
                                            )
                                          }
                                        ]
                                      )
                                    }
                                  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 '$('>
                                    command_list: 
                                      (command.CommandList
                                        children: [
                                          (command.Simple
                                            words: [
                                              {<sed>}
                                              {<-e>}
                                              {(SQ <'s/:\\{2,\\}/:/g'>)}
                                              {<-e>}
                                              {(SQ <'s/^://'>)}
                                              {<-e>}
                                              {(SQ <'s/:$//'>)}
                                            ]
                                            redirects: [
                                              (redir.Redir
                                                op: <Id.Redir_TLess '<<<'>
                                                fd: -1
                                                arg_word: {(DQ ($ Id.VSub_DollarName '$PATH'))}
                                              )
                                            ]
                                          )
                                        ]
                                      )
                                  )
                                }
                              ]
                            )
                          }
                        )
                        (command.ShAssignment
                          pairs: [
                            (assign_pair
                              lhs: (sh_lhs_expr.Name name:IFS)
                              op: assign_op.Equal
                              rhs: 
                                {
                                  (single_quoted
                                    left: <Id.Left_SingleQuoteC "$'">
                                    tokens: [<Id.Char_OneChar '\\n'>]
                                  )
                                }
                              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 '$('>
                                          command_list: 
                                            (command.CommandList
                                              children: [
                                                (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: [
                    (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 '$('>
                                      command_list: 
                                        (command.CommandList
                                          children: [
                                            (C {<compgen>} {<-W>} 
                                              {
                                                (DQ 
                                                  (command_sub
                                                    left_token: <Id.Left_DollarParen '$('>
                                                    command_list: 
                                                      (command.CommandList
                                                        children: [
                                                          (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
                                                                          op_id: Id.VOp1_DPound
                                                                          arg_word: 
                                                                            {<'*'> <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 '$('>
                                      command_list: 
                                        (command.CommandList
                                          children: [
                                            (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>})
  ]
)