(CommandList
  children: [
    (C {(set)} {(-e)})
    (Assignment
      keyword: Assign_None
      pairs: [(assign_pair lhs:(LhsName name:type) op:Equal rhs:{($ VSub_Number '$1')} spids:[67])]
      spids: [67]
    )
    (Assignment
      keyword: Assign_None
      pairs: [(assign_pair lhs:(LhsName name:objpfx) op:Equal rhs:{($ VSub_Number '$2')} spids:[70])]
      spids: [70]
    )
    (C {(shift)} {(2)})
    (Case
      to_match: {($ VSub_Name '$type')}
      arms: [
        (case_arm
          pat_list: [{(-s)}]
          action: [
            (Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (LhsName name:subdir)
                  op: Equal
                  rhs: {($ VSub_Number '$1')}
                  spids: [89]
                )
              ]
              spids: [89]
            )
            (C {(shift)})
            (Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (LhsName name:subdir)
                  op: Equal
                  rhs: 
                    {
                      (BracedVarSub
                        token: <VSub_Name subdir>
                        suffix_op: 
                          (StringUnary
                            op_id: VTest_ColonPlus
                            arg_word: {($ VSub_Name '$subdir') (Lit_Slash /)}
                          )
                        spids: [97 102]
                      )
                    }
                  spids: [96]
                )
              ]
              spids: [96]
            )
            (ForEach
              iter_name: t
              iter_words: [{(DQ ($ VSub_At '$@'))}]
              do_arg_iter: F
              body: 
                (DoGroup
                  children: [
                    (If
                      arms: [
                        (if_arm
                          cond: [
                            (Sentence
                              child: 
                                (C {(Lit_Other '[')} {(-s)} 
                                  {(DQ ($ VSub_Name '$objpfx') ($ VSub_Name '$t') (.test-result))} {(Lit_Other ']')}
                                )
                              terminator: <Op_Semi ';'>
                            )
                          ]
                          action: [
                            (C {(head)} {(-n1)} 
                              {(DQ ($ VSub_Name '$objpfx') ($ VSub_Name '$t') (.test-result))}
                            )
                          ]
                          spids: [16777215 134]
                        )
                      ]
                      else_action: [
                        (C {(echo)} {(DQ ('UNRESOLVED: ') ($ VSub_Name '$subdir') ($ VSub_Name '$t'))})
                      ]
                      spids: [148 160]
                    )
                  ]
                  spids: [116 163]
                )
              spids: [110 114]
            )
          ]
          spids: [85 86 166 16777215]
        )
        (case_arm
          pat_list: [{(-t)}]
          action: [
            (Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (LhsName name:subdir_file_name)
                  op: Equal
                  rhs: {($ VSub_Number '$1')}
                  spids: [174]
                )
              ]
              spids: [174]
            )
            (C {(shift)})
            (ForEach
              iter_name: d
              iter_words: [{(DQ ($ VSub_At '$@'))}]
              do_arg_iter: F
              body: 
                (DoGroup
                  children: [
                    (If
                      arms: [
                        (if_arm
                          cond: [
                            (Sentence
                              child: 
                                (C {(Lit_Other '[')} {(-f)} 
                                  {
                                    (DQ ($ VSub_Name '$objpfx') ($ VSub_Name '$d') (/) 
                                      ($ VSub_Name '$subdir_file_name')
                                    )
                                  } {(Lit_Other ']')}
                                )
                              terminator: <Op_Semi ';'>
                            )
                          ]
                          action: [
                            (C {(cat)} 
                              {
                                (DQ ($ VSub_Name '$objpfx') ($ VSub_Name '$d') (/) 
                                  ($ VSub_Name '$subdir_file_name')
                                )
                              }
                            )
                          ]
                          spids: [16777215 211]
                        )
                      ]
                      else_action: [
                        (C {(echo)} 
                          {
                            (DQ ('ERROR: test results for ') ($ VSub_Name '$d') (' directory missing'))
                          }
                        )
                      ]
                      spids: [224 236]
                    )
                  ]
                  spids: [192 239]
                )
              spids: [186 190]
            )
          ]
          spids: [170 171 242 16777215]
        )
        (case_arm
          pat_list: [{(Lit_Other '*')}]
          action: [
            (SimpleCommand
              words: [{(echo)} {(DQ ('unknown type ') ($ VSub_Name '$type'))}]
              redirects: [(Redir op:<Redir_GreatAnd '>&'> fd:16777215 arg_word:{(2)})]
            )
            (ControlFlow token:<ControlFlow_Exit exit> arg_word:{(1)})
          ]
          spids: [246 247 266 16777215]
        )
      ]
      spids: [78 82 268]
    )
  ]
)