(CommandList
  children: [
    (C {(Lit_Other ":")} {(included)} {(from)} {(t2016)} {(and)} {(others)})
    (C {(.)} {(./test-lib.sh)})
    (FuncDef
      name: set_state
      body: 
        (BraceGroup
          children: [
            (AndOr
              children: [
                (SimpleCommand
                  words: [{(echo)} {(DQ ($ VSub_Number "$3"))}]
                  redirects: [
                    (Redir
                      op_id: Redir_Great
                      fd: -1
                      arg_word: {(DQ ($ VSub_Number "$1"))}
                      spids: [32]
                    )
                  ]
                )
                (AndOr
                  children: [
                    (C {(git)} {(add)} {(DQ ($ VSub_Number "$1"))})
                    (SimpleCommand
                      words: [{(echo)} {(DQ ($ VSub_Number "$2"))}]
                      redirects: [
                        (Redir
                          op_id: Redir_Great
                          fd: -1
                          arg_word: {(DQ ($ VSub_Number "$1"))}
                          spids: [58]
                        )
                      ]
                    )
                  ]
                  op_id: Op_DAmp
                )
              ]
              op_id: Op_DAmp
            )
          ]
          spids: [23]
        )
      spids: [18 22]
    )
    (FuncDef
      name: save_state
      body: 
        (BraceGroup
          children: [
            (AndOr
              children: [
                (Assignment
                  keyword: Assign_None
                  pairs: [
                    (assign_pair
                      lhs: (LhsName name:noslash)
                      op: Equal
                      rhs: 
                        {
                          (DQ 
                            (CommandSubPart
                              command_list: 
                                (CommandList
                                  children: [
                                    (Pipeline
                                      children: [
                                        (C {(echo)} {(DQ ($ VSub_Number "$1"))})
                                        (C {(tr)} {(/)} {(_)})
                                      ]
                                      negated: False
                                    )
                                  ]
                                )
                              left_token: <Left_CommandSub "$(">
                              spids: [77 91]
                            )
                          )
                        }
                      spids: [75]
                    )
                  ]
                  spids: [75]
                )
                (AndOr
                  children: [
                    (SimpleCommand
                      words: [{(cat)} {(DQ ($ VSub_Number "$1"))}]
                      redirects: [
                        (Redir
                          op_id: Redir_Great
                          fd: -1
                          arg_word: {(_worktree_) (DQ ($ VSub_Name "$noslash"))}
                          spids: [103]
                        )
                      ]
                    )
                    (SimpleCommand
                      words: [{(git)} {(show)} {(Lit_Other ":") (DQ ($ VSub_Number "$1"))}]
                      redirects: [
                        (Redir
                          op_id: Redir_Great
                          fd: -1
                          arg_word: {(_index_) (DQ ($ VSub_Name "$noslash"))}
                          spids: [122]
                        )
                      ]
                    )
                  ]
                  op_id: Op_DAmp
                )
              ]
              op_id: Op_DAmp
            )
          ]
          spids: [72]
        )
      spids: [67 71]
    )
    (FuncDef
      name: set_and_save_state
      body: 
        (BraceGroup
          children: [
            (AndOr
              children: [
                (C {(set_state)} {(DQ ($ VSub_At "$@"))})
                (C {(save_state)} {(DQ ($ VSub_Number "$1"))})
              ]
              op_id: Op_DAmp
            )
          ]
          spids: [137]
        )
      spids: [132 136]
    )
    (FuncDef
      name: verify_state
      body: 
        (BraceGroup
          children: [
            (AndOr
              children: [
                (C {(test)} 
                  {
                    (DQ 
                      (CommandSubPart
                        command_list: 
                          (CommandList
                            children: [(C {(cat)} {(DQ ($ VSub_Number "$1"))})]
                          )
                        left_token: <Left_CommandSub "$(">
                        spids: [169 175]
                      )
                    )
                  } {(Lit_Other "=")} {(DQ ($ VSub_Number "$2"))}
                )
                (C {(test)} 
                  {
                    (DQ 
                      (CommandSubPart
                        command_list: 
                          (CommandList
                            children: [(C {(git)} {(show)} {(Lit_Other ":") (DQ ($ VSub_Number "$1"))})]
                          )
                        left_token: <Left_CommandSub "$(">
                        spids: [190 199]
                      )
                    )
                  } {(Lit_Other "=")} {(DQ ($ VSub_Number "$3"))}
                )
              ]
              op_id: Op_DAmp
            )
          ]
          spids: [163]
        )
      spids: [158 162]
    )
    (FuncDef
      name: verify_saved_state
      body: 
        (BraceGroup
          children: [
            (AndOr
              children: [
                (Assignment
                  keyword: Assign_None
                  pairs: [
                    (assign_pair
                      lhs: (LhsName name:noslash)
                      op: Equal
                      rhs: 
                        {
                          (DQ 
                            (CommandSubPart
                              command_list: 
                                (CommandList
                                  children: [
                                    (Pipeline
                                      children: [
                                        (C {(echo)} {(DQ ($ VSub_Number "$1"))})
                                        (C {(tr)} {(/)} {(_)})
                                      ]
                                      negated: False
                                    )
                                  ]
                                )
                              left_token: <Left_CommandSub "$(">
                              spids: [221 235]
                            )
                          )
                        }
                      spids: [219]
                    )
                  ]
                  spids: [219]
                )
                (C {(verify_state)} {(DQ ($ VSub_Number "$1"))} 
                  {
                    (DQ 
                      (CommandSubPart
                        command_list: 
                          (CommandList
                            children: [(C {(cat)} {(_worktree_) (DQ ($ VSub_Name "$noslash"))})]
                          )
                        left_token: <Left_CommandSub "$(">
                        spids: [248 255]
                      )
                    )
                  } 
                  {
                    (DQ 
                      (CommandSubPart
                        command_list: 
                          (CommandList
                            children: [(C {(cat)} {(_index_) (DQ ($ VSub_Name "$noslash"))})]
                          )
                        left_token: <Left_CommandSub "$(">
                        spids: [259 266]
                      )
                    )
                  }
                )
              ]
              op_id: Op_DAmp
            )
          ]
          spids: [216]
        )
      spids: [211 215]
    )
    (FuncDef
      name: save_head
      body: 
        (BraceGroup
          children: [
            (SimpleCommand
              words: [{(git)} {(rev-parse)} {(HEAD)}]
              redirects: [(Redir op_id:Redir_Great fd:-1 arg_word:{(_head)} spids:[286])]
            )
          ]
          spids: [277]
        )
      spids: [272 276]
    )
    (FuncDef
      name: verify_saved_head
      body: 
        (BraceGroup
          children: [
            (C {(test)} 
              {
                (DQ 
                  (CommandSubPart
                    command_list: (CommandList children:[(C {(cat)} {(_head)})])
                    left_token: <Left_CommandSub "$(">
                    spids: [304 308]
                  )
                )
              } {(Lit_Other "=")} 
              {
                (DQ 
                  (CommandSubPart
                    command_list: (CommandList children:[(C {(git)} {(rev-parse)} {(HEAD)})])
                    left_token: <Left_CommandSub "$(">
                    spids: [314 320]
                  )
                )
              }
            )
          ]
          spids: [298]
        )
      spids: [293 297]
    )
  ]
)