(command.CommandList
  children: [
    (command.If
      arms: [
        (if_arm
          cond: 
            (condition.Shell
              commands: [
                (command.Sentence
                  child: (C {<test>} {($ Id.VSub_Pound '$#')} {<-gt>} {<1>})
                  terminator: <Id.Op_Semi _>
                )
              ]
            )
          action: [
            (command.If
              arms: [
                (if_arm
                  cond: 
                    (condition.Shell
                      commands: [
                        (command.Sentence
                          child: 
                            (C {<test>} {(DQ ($ Id.VSub_Number '$1'))} {<Id.Lit_Equals '='>} 
                              {(DQ <-topdir>)}
                            )
                          terminator: <Id.Op_Semi _>
                        )
                      ]
                    )
                  action: [
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name name:TOPDIR)
                          op: assign_op.Equal
                          rhs: {(DQ ($ Id.VSub_Number '$2'))}
                          spids: [98]
                        )
                      ]
                    )
                    (command.Sentence
                      child: (C {<shift>})
                      terminator: <Id.Op_Semi _>
                    )
                    (command.Sentence
                      child: (C {<shift>})
                      terminator: <Id.Op_Semi _>
                    )
                  ]
                  spids: [79 95]
                )
              ]
              else_action: [
                (command.ShAssignment
                  pairs: [
                    (assign_pair
                      lhs: (sh_lhs_expr.Name name:TOPDIR)
                      op: assign_op.Equal
                      rhs: 
                        {
                          (command_sub
                            left_token: <Id.Left_Backtick '`'>
                            child: (C {<llvm-config>} {<--src-root>})
                          )
                        }
                      spids: [114]
                    )
                  ]
                )
              ]
            )
          ]
          spids: [64 76]
        )
      ]
    )
    (command.If
      arms: [
        (if_arm
          cond: 
            (condition.Shell
              commands: [
                (command.Sentence
                  child: (C {<test>} {<-d>} {(DQ ($ Id.VSub_DollarName '$TOPDIR'))})
                  terminator: <Id.Op_Semi _>
                )
              ]
            )
          action: [
            (C {<cd>} {($ Id.VSub_DollarName '$TOPDIR')})
            (command.Pipeline
              children: [
                (C {<'./utils/llvmdo'>} {<-topdir>} {(DQ ($ Id.VSub_DollarName '$TOPDIR'))} {<-dirs>} 
                  {(DQ <'include lib tools test utils examples'>)} {<-code-only>} {<wc>} {<-l>}
                )
                (C {<awk>} 
                  {
                    (SQ <'\\\n'> <'      BEGIN { loc=0; } \\\n'> <'      { loc += $1; } \\\n'> 
                      <'      END { print loc; }'>
                    )
                  }
                )
              ]
              negated: F
            )
          ]
          spids: [129 141]
        )
      ]
      else_action: [(C {<echo>} {(DQ <'Can\'t find LLVM top directory'>)})]
    )
  ]
)