(command.CommandList
  children: [
    (C {<_Dbg_help_add>} {<run>} 
      {
        (SQ <'**run** [*args*]\n'> <'\n'> <'Attempt to restart the program via an exec call.\n'> <'\n'> 
          <'See also:\n'> <'---------\n'> <'\n'> <'**set args**, **kill** and **quit**'>
        )
      }
    )
    (command.ShFunction
      name: _Dbg_do_run
      body: 
        (BraceGroup
          children: [
            (C {<typeset>} {<script_args>})
            (command.If
              arms: [
                (if_arm
                  cond: 
                    (condition.Shell
                      commands: [
                        (command.Sentence
                          child: 
                            (command.DParen
                              child: 
                                (arith_expr.Binary
                                  op_id: Id.Arith_DEqual
                                  left: {($ Id.VSub_Pound '$#')}
                                  right: {<Id.Lit_Digits 0>}
                                )
                            )
                          terminator: <Id.Op_Semi _>
                        )
                      ]
                    )
                  action: [
                    (C {<printf>} {<-v>} {<script_args>} {(DQ <'%q '>)} 
                      {
                        (DQ 
                          (braced_var_sub
                            token: <Id.VSub_Name _Dbg_orig_script_args>
                            bracket_op: (bracket_op.WholeArray op_id:Id.Lit_At)
                          )
                        )
                      }
                    )
                  ]
                  spids: [101 116]
                )
              ]
              else_action: [
                (C {<printf>} {<-v>} {<script_args>} {(DQ <'%q '>)} {(DQ ($ Id.VSub_At '$@'))})
              ]
            )
            (C {<typeset>} 
              {<Id.Lit_VarLike 'exec_cmd_prefix='> (DQ ($ Id.VSub_DollarName '$_Dbg_orig_0'))}
            )
            (command.If
              arms: [
                (if_arm
                  cond: 
                    (condition.Shell
                      commands: [
                        (command.Sentence
                          child: (command.DParen child:<Id.Lit_ArithVarLike _Dbg_script>)
                          terminator: <Id.Op_Semi _>
                        )
                      ]
                    )
                  action: [
                    (command.AndOr
                      ops: [Id.Op_DAmp]
                      children: [
                        (C {<Id.Lit_LBracket '['>} {<-z>} {(DQ ($ Id.VSub_DollarName '$BASH'))} 
                          {<Id.Lit_RBracket ']'>}
                        )
                        (command.ShAssignment
                          pairs: [
                            (assign_pair
                              lhs: (sh_lhs_expr.Name name:BASH)
                              op: assign_op.Equal
                              rhs: {(SQ <bash>)}
                              spids: [195]
                            )
                          ]
                        )
                      ]
                    )
                    (C {<typeset>} {<Id.Lit_VarLike 'bash_opt='> (SQ )})
                    (command.If
                      arms: [
                        (if_arm
                          cond: 
                            (condition.Shell
                              commands: [
                                (command.Sentence
                                  child: 
                                    (command.DBracket
                                      expr: 
                                        (bool_expr.Binary
                                          op_id: Id.BoolBinary_GlobDEqual
                                          left: {($ Id.VSub_DollarName '$_Dbg_frame_last_filename')}
                                          right: {($ Id.VSub_DollarName '$_Dbg_bogus_file')}
                                        )
                                    )
                                  terminator: <Id.Op_Semi _>
                                )
                              ]
                            )
                          action: [
                            (command.ShAssignment
                              pairs: [
                                (assign_pair
                                  lhs: (sh_lhs_expr.Name name:script_args)
                                  op: assign_op.Equal
                                  rhs: 
                                    {
                                      (DQ (${ Id.VSub_Name bash_opt) <'-c '> 
                                        (word_part.EscapedLiteral
                                          token: <Id.Lit_EscapedChar '\\"'>
                                        ) ($ Id.VSub_DollarName '$_Dbg_EXECUTION_STRING') 
                                        (word_part.EscapedLiteral
                                          token: <Id.Lit_EscapedChar '\\"'>
                                        )
                                      )
                                    }
                                  spids: [241]
                                )
                              ]
                            )
                          ]
                          spids: [224 238]
                        )
                      ]
                      else_action: [
                        (command.Sentence
                          child: 
                            (command.ShAssignment
                              pairs: [
                                (assign_pair
                                  lhs: (sh_lhs_expr.Name name:script_args)
                                  op: assign_op.Equal
                                  rhs: 
                                    {
                                      (DQ (${ Id.VSub_Name bash_opt) 
                                        ($ Id.VSub_DollarName '$_Dbg_orig_0') <' '> ($ Id.VSub_DollarName '$script_args')
                                      )
                                    }
                                  spids: [256]
                                )
                              ]
                            )
                          terminator: <Id.Op_Semi _>
                        )
                      ]
                    )
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name name:exec_cmd_prefix)
                          op: assign_op.Equal
                          rhs: {(DQ ($ Id.VSub_DollarName '$BASH'))}
                          spids: [271]
                        )
                      ]
                    )
                  ]
                  spids: [169 180]
                )
                (if_arm
                  cond: 
                    (condition.Shell
                      commands: [
                        (command.Sentence
                          child: 
                            (command.DBracket
                              expr: 
                                (bool_expr.Unary
                                  op_id: Id.BoolUnary_n
                                  child: {(DQ ($ Id.VSub_DollarName '$BASH'))}
                                )
                            )
                          terminator: <Id.Op_Semi _>
                        )
                      ]
                    )
                  action: [
                    (C {<local>} 
                      {<Id.Lit_VarLike 'exec_cmd_prefix='> 
                        (DQ ($ Id.VSub_DollarName '$BASH') <' '> ($ Id.VSub_DollarName '$_Dbg_orig_0'))
                      }
                    )
                  ]
                  spids: [277 291]
                )
              ]
            )
            (C {<_Dbg_msg>} {(DQ <'Restarting with: '> ($ Id.VSub_DollarName '$script_args'))})
            (command.If
              arms: [
                (if_arm
                  cond: 
                    (condition.Shell
                      commands: [
                        (command.Sentence
                          child: 
                            (command.DParen
                              child: 
                                (arith_expr.Binary
                                  op_id: Id.Arith_Great
                                  left: <Id.Lit_ArithVarLike BASH_SUBSHELL>
                                  right: {<Id.Lit_Digits 0>}
                                )
                            )
                          terminator: <Id.Op_Semi _>
                        )
                      ]
                    )
                  action: [
                    (C {<_Dbg_msg>} 
                      {(DQ <'Note you are in a subshell. We will need to leave that first.'>)}
                    )
                    (C {<_Dbg_write_journal>} 
                      {
                        (DQ <'_Dbg_RESTART_COMMAND='> 
                          (word_part.EscapedLiteral
                            token: <Id.Lit_EscapedChar '\\"'>
                          ) ($ Id.VSub_DollarName '$exec_cmd_prefix') <' '> ($ Id.VSub_DollarName '$script_args') 
                          (word_part.EscapedLiteral
                            token: <Id.Lit_EscapedChar '\\"'>
                          )
                        )
                      }
                    )
                    (C {<_Dbg_do_quit>} {<0>})
                  ]
                  spids: [333 348]
                )
              ]
            )
            (C {<_Dbg_cleanup>})
            (C {<_Dbg_save_state>})
            (C {<builtin>} {<cd>} {($ Id.VSub_DollarName '$_Dbg_init_cwd')})
            (C {<eval>} 
              {
                (DQ <'exec '> ($ Id.VSub_DollarName '$exec_cmd_prefix') <' '> 
                  ($ Id.VSub_DollarName '$script_args')
                )
              }
            )
          ]
        )
    )
    (C {<_Dbg_alias_add>} {<R>} {<run>})
    (C {<_Dbg_alias_add>} {<restart>} {<run>})
  ]
)