(AndOr
  ops: [Op_DAmp]
  children: [
    (FuncDef
      name: _gdb
      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:i) op:Equal spids:[21])
              ]
              spids: [11]
            )
            (AndOr
              ops: [Op_DPipe]
              children: [(C {(_init_completion)}) (ControlFlow token:<ControlFlow_Return return>)]
            )
            (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: (ArithVarRef name:cword)
                )
              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: 
                                        {
                                          (DQ 
                                            (BracedVarSub
                                              token: <VSub_Name words>
                                              bracket_op: (ArrayIndex expr:(ArithVarRef name:i))
                                              spids: [67 72]
                                            )
                                          )
                                        }
                                      right: {(--args)}
                                    )
                                )
                              terminator: <Op_Semi ';'>
                            )
                          ]
                          action: [
                            (C {(_command_offset)} 
                              {
                                (ArithSubPart
                                  anode: 
                                    (ArithBinary
                                      op_id: Arith_Plus
                                      left: (ArithVarRef name:i)
                                      right: (ArithWord w:{(Lit_Digits 1)})
                                    )
                                  spids: [87 92]
                                )
                              }
                            )
                            (ControlFlow
                              token: <ControlFlow_Return return>
                              arg_word: {($ VSub_QMark '$?')}
                            )
                          ]
                          spids: [16777215 82]
                        )
                      ]
                      spids: [16777215 100]
                    )
                  ]
                  spids: [59 103]
                )
            )
            (If
              arms: [
                (if_arm
                  cond: [
                    (Sentence
                      child: 
                        (DBracket
                          expr: 
                            (BoolBinary
                              op_id: BoolBinary_eq
                              left: {($ VSub_Name '$cword')}
                              right: {(1)}
                            )
                        )
                      terminator: <Op_Semi ';'>
                    )
                  ]
                  action: [
                    (Assignment
                      keyword: Assign_Local
                      pairs: [(assign_pair lhs:(LhsName name:IFS) op:Equal spids:[129])]
                      spids: [127]
                    )
                    (C {(compopt)} {(-o)} {(filenames)})
                    (If
                      arms: [
                        (if_arm
                          cond: [
                            (Sentence
                              child: 
                                (DBracket
                                  expr: 
                                    (BoolBinary
                                      op_id: BoolBinary_GlobDEqual
                                      left: {(DQ ($ VSub_Name '$cur'))}
                                      right: {(Lit_Other '*') (/) (Lit_Other '*')}
                                    )
                                )
                              terminator: <Op_Semi ';'>
                            )
                          ]
                          action: [
                            (Assignment
                              keyword: Assign_None
                              pairs: [
                                (assign_pair
                                  lhs: (LhsName name:IFS)
                                  op: Equal
                                  rhs: 
                                    {
                                      (SingleQuotedPart
                                        left: <Left_DollarSingleQuote "$'">
                                        tokens: [<Char_OneChar '\\n'>]
                                        spids: [164 166]
                                      )
                                    }
                                  spids: [163]
                                )
                              ]
                              spids: [163]
                            )
                            (Assignment
                              keyword: Assign_None
                              pairs: [
                                (assign_pair
                                  lhs: (LhsName name:COMPREPLY)
                                  op: Equal
                                  rhs: 
                                    {
                                      (ArrayLiteralPart
                                        words: [
                                          {
                                            (CommandSubPart
                                              command_list: 
                                                (CommandList
                                                  children: [
                                                    (SimpleCommand
                                                      words: [
                                                        {(compgen)}
                                                        {(-d)}
                                                        {(-c)}
                                                        {(--)}
                                                        {(DQ ($ VSub_Name '$cur'))}
                                                      ]
                                                      more_env: [
                                                        (env_pair
                                                          name: PATH
                                                          val: {(DQ ($ VSub_Name '$PATH') (':.'))}
                                                          spids: [174]
                                                        )
                                                      ]
                                                    )
                                                  ]
                                                )
                                              left_token: <Left_CommandSub '$('>
                                              spids: [172 192]
                                            )
                                          }
                                        ]
                                      )
                                    }
                                  spids: [169]
                                )
                              ]
                              spids: [169]
                            )
                          ]
                          spids: [16777215 156]
                        )
                      ]
                      else_action: [
                        (Assignment
                          keyword: Assign_None
                          pairs: [
                            (assign_pair
                              lhs: (LhsName name:IFS)
                              op: Equal
                              rhs: {(DQ (':'))}
                              spids: [212]
                            )
                          ]
                          spids: [212]
                        )
                        (Assignment
                          keyword: Assign_Local
                          pairs: [
                            (assign_pair
                              lhs: (LhsName name:path_array)
                              op: Equal
                              rhs: 
                                {
                                  (ArrayLiteralPart
                                    words: [
                                      {
                                        (CommandSubPart
                                          command_list: 
                                            (CommandList
                                              children: [
                                                (SimpleCommand
                                                  words: [
                                                    {(sed)}
                                                    {(-e)}
                                                    {(SQ <'s/:\\{2,\\}/:/g'>)}
                                                    {(-e)}
                                                    {(SQ <'s/^://'>)}
                                                    {(-e)}
                                                    {(SQ <'s/:$//'>)}
                                                  ]
                                                  redirects: [
                                                    (Redir
                                                      op: <Redir_TLess '<<<'>
                                                      fd: 16777215
                                                      arg_word: {(DQ ($ VSub_Name '$PATH'))}
                                                    )
                                                  ]
                                                )
                                              ]
                                            )
                                          left_token: <Left_CommandSub '$('>
                                          spids: [223 252]
                                        )
                                      }
                                    ]
                                  )
                                }
                              spids: [220]
                            )
                          ]
                          spids: [218]
                        )
                        (Assignment
                          keyword: Assign_None
                          pairs: [
                            (assign_pair
                              lhs: (LhsName name:IFS)
                              op: Equal
                              rhs: 
                                {
                                  (SingleQuotedPart
                                    left: <Left_DollarSingleQuote "$'">
                                    tokens: [<Char_OneChar '\\n'>]
                                    spids: [258 260]
                                  )
                                }
                              spids: [257]
                            )
                          ]
                          spids: [257]
                        )
                        (Assignment
                          keyword: Assign_None
                          pairs: [
                            (assign_pair
                              lhs: (LhsName name:COMPREPLY)
                              op: Equal
                              rhs: 
                                {
                                  (ArrayLiteralPart
                                    words: [
                                      {
                                        (CommandSubPart
                                          command_list: 
                                            (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 ($ VSub_Name '$cur'))}
                                                )
                                              ]
                                            )
                                          left_token: <Left_CommandSub '$('>
                                          spids: [266 286]
                                        )
                                      }
                                    ]
                                  )
                                }
                              spids: [263]
                            )
                          ]
                          spids: [263]
                        )
                      ]
                      spids: [197 291]
                    )
                  ]
                  spids: [16777215 124]
                )
                (if_arm
                  cond: [
                    (Sentence
                      child: 
                        (DBracket
                          expr: 
                            (BoolBinary
                              op_id: BoolBinary_eq
                              left: {($ VSub_Name '$cword')}
                              right: {(2)}
                            )
                        )
                      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)} 
                                              {
                                                (DQ 
                                                  (CommandSubPart
                                                    command_list: 
                                                      (CommandList
                                                        children: [
                                                          (Pipeline
                                                            children: [
                                                              (C {(command)} {(ps)} {(axo)} 
                                                                {(comm) (Lit_Comma ',') (pid)}
                                                              )
                                                              (C {(awk)} 
                                                                {(SQ <'{if ($1 ~ /^'>) 
                                                                  (DQ 
                                                                    (BracedVarSub
                                                                      token: <VSub_Name prev>
                                                                      suffix_op: 
                                                                        (StringUnary
                                                                          op_id: VOp1_DPound
                                                                          arg_word: 
                                                                            {('*') (Lit_Slash /)}
                                                                        )
                                                                      spids: [342 347]
                                                                    )
                                                                  ) (SQ <'/) print $2}'>)
                                                                }
                                                              )
                                                            ]
                                                            negated: F
                                                          )
                                                        ]
                                                      )
                                                    left_token: <Left_CommandSub '$('>
                                                    spids: [320 353]
                                                  )
                                                )
                                              } {(--)} {(DQ ($ VSub_Name '$cur'))}
                                            )
                                          ]
                                        )
                                      left_token: <Left_CommandSub '$('>
                                      spids: [313 362]
                                    )
                                  }
                                ]
                              )
                            }
                          spids: [310]
                        )
                      ]
                      spids: [310]
                    )
                    (C {(compopt)} {(-o)} {(filenames)})
                    (Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (LhsName name:COMPREPLY)
                          op: PlusEqual
                          rhs: 
                            {
                              (ArrayLiteralPart
                                words: [
                                  {
                                    (CommandSubPart
                                      command_list: 
                                        (CommandList
                                          children: [
                                            (C {(compgen)} {(-f)} {(-X)} {(SQ <'!?(*/)core?(.+([0-9]))'>)} 
                                              {(-o)} {(plusdirs)} {(--)} {(DQ ($ VSub_Name '$cur'))}
                                            )
                                          ]
                                        )
                                      left_token: <Left_CommandSub '$('>
                                      spids: [377 401]
                                    )
                                  }
                                ]
                              )
                            }
                          spids: [374]
                        )
                      ]
                      spids: [374]
                    )
                  ]
                  spids: [294 307]
                )
              ]
              spids: [16777215 406]
            )
          ]
          spids: [8]
        )
      spids: [4 7]
    )
    (C {(complete)} {(-F)} {(_gdb)} {(gdb)})
  ]
)