(command.CommandList
  children: [
    (command.If
      arms: [
        (if_arm
          cond: [
            (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: [77]
                )
              ]
            )
            (command.Sentence child:(C {<shift>}) terminator:<Id.Op_Semi _>)
            (command.Sentence child:(C {<shift>}) terminator:<Id.Op_Semi _>)
          ]
          spids: [58 74]
        )
      ]
      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 '`'>
                    command_list: (command.CommandList children:[(C {<llvm-config>} {<--src-root>})])
                  )
                }
              spids: [92]
            )
          ]
        )
      ]
    )
    (command.If
      arms: [
        (if_arm
          cond: [
            (command.Sentence
              child: (C {<test>} {<-d>} {(DQ ($ Id.VSub_DollarName '$TOPDIR'))})
              terminator: <Id.Op_Semi _>
            )
          ]
          action: [
            (C {<cd>} {($ Id.VSub_DollarName '$TOPDIR')})
            (C {<./utils/llvmdo>} {<-topdir>} {(DQ ($ Id.VSub_DollarName '$TOPDIR'))} {<-dirs>} 
              {(DQ <'include lib tools utils examples projects'>)} {<echo>}
            )
          ]
          spids: [104 116]
        )
      ]
      else_action: [(C {<echo>} {(DQ <"Can't find LLVM top directory">)})]
    )
  ]
)