(command.CommandList
  children: [
    (command.If
      arms: [
        (if_arm
          cond: 
            (condition.Shell
              commands: [
                (command.Sentence
                  child: 
                    (C {<Id.Lit_LBracket '['>} 
                      {(command_sub left_token:<Id.Left_Backtick '`'> child:(C {<uname>} {<-s>}))} {<Id.Lit_Equals '='>} {(DQ <FreeBSD>)} {<Id.Lit_RBracket ']'>}
                    )
                  terminator: <Id.Op_Semi _>
                )
              ]
            )
          action: [
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name name:MAKE)
                  op: assign_op.Equal
                  rhs: {<gmake>}
                  spids: [64]
                )
              ]
            )
          ]
          spids: [40 61]
        )
      ]
      else_action: [
        (command.ShAssignment
          pairs: [
            (assign_pair
              lhs: (sh_lhs_expr.Name name:MAKE)
              op: assign_op.Equal
              rhs: {<make>}
              spids: [70]
            )
          ]
        )
      ]
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:projects)
          op: assign_op.Equal
          rhs: {(DQ <'llvm cfe dragonegg test-suite'>)}
          spids: [76]
        )
      ]
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:Base_url)
          op: assign_op.Equal
          rhs: {(DQ <'http://llvm.org/svn/llvm-project'>)}
          spids: [85]
        )
      ]
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:Release)
          op: assign_op.Equal
          rhs: {(DQ )}
          spids: [91]
        )
      ]
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:Release_no_dot)
          op: assign_op.Equal
          rhs: {(DQ )}
          spids: [95]
        )
      ]
    )
    (command.ShAssignment
      pairs: [(assign_pair lhs:(sh_lhs_expr.Name name:RC) op:assign_op.Equal rhs:{(DQ )} spids:[99])]
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:do_checkout)
          op: assign_op.Equal
          rhs: {(DQ <yes>)}
          spids: [103]
        )
      ]
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:do_ada)
          op: assign_op.Equal
          rhs: {(DQ <no>)}
          spids: [108]
        )
      ]
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:do_objc)
          op: assign_op.Equal
          rhs: {(DQ <yes>)}
          spids: [113]
        )
      ]
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:do_fortran)
          op: assign_op.Equal
          rhs: {(DQ <no>)}
          spids: [118]
        )
      ]
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:do_64bit)
          op: assign_op.Equal
          rhs: {(DQ <yes>)}
          spids: [123]
        )
      ]
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:do_debug)
          op: assign_op.Equal
          rhs: {(DQ <no>)}
          spids: [128]
        )
      ]
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:do_asserts)
          op: assign_op.Equal
          rhs: {(DQ <no>)}
          spids: [133]
        )
      ]
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:BuildDir)
          op: assign_op.Equal
          rhs: {(DQ (command_sub left_token:<Id.Left_Backtick '`'> child:(C {<pwd>})))}
          spids: [138]
        )
      ]
    )
    (command.ShFunction
      name: usage
      body: 
        (BraceGroup
          children: [
            (C {<echo>} 
              {
                (DQ <'usage: '> 
                  (command_sub
                    left_token: <Id.Left_Backtick '`'>
                    child: (C {<basename>} {($ Id.VSub_Number '$0')})
                  ) <' -release X.Y -rc NUM [OPTIONS]'>
                )
              }
            )
            (C {<echo>} {(DQ )})
            (C {<echo>} {(DQ <' -release X.Y      The release number to test.'>)})
            (C {<echo>} {(DQ <' -rc NUM           The pre-release candidate number.'>)})
            (C {<echo>} {(DQ <' -j NUM            Number of compile jobs to run. [default: 3]'>)})
            (C {<echo>} {(DQ <' -build-dir DIR    Directory to perform testing in. [default: pwd]'>)})
            (C {<echo>} {(DQ <' -no-checkout      Don\'t checkout the sources from SVN.'>)})
            (C {<echo>} {(DQ <' -no-64bit         Don\'t test the 64-bit version. [default: yes]'>)})
            (C {<echo>} {(DQ <' -enable-ada       Build Ada. [default: disable]'>)})
            (C {<echo>} {(DQ <' -enable-fortran   Enable Fortran build. [default: disable]'>)})
            (C {<echo>} {(DQ <' -disable-objc     Disable ObjC build. [default: enable]'>)})
            (C {<echo>} {(DQ <' -test-debug       Test the debug build. [default: no]'>)})
            (C {<echo>} {(DQ <' -test-asserts     Test with asserts on. [default: no]'>)})
          ]
        )
    )
    (command.WhileUntil
      keyword: <Id.KW_While while>
      cond: 
        (condition.Shell
          commands: [
            (command.Sentence
              child: 
                (C {<Id.Lit_LBracket '['>} {($ Id.VSub_Pound '$#')} {<-gt>} {<0>} {<Id.Lit_RBracket ']'>})
              terminator: <Id.Op_Semi _>
            )
          ]
        )
      body: 
        (command.DoGroup
          children: [
            (command.Case
              to_match: {($ Id.VSub_Number '$1')}
              arms: [
                (case_arm
                  pat_list: [{<-release>} {<--release>}]
                  action: [
                    (C {<shift>})
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name name:Release)
                          op: assign_op.Equal
                          rhs: {(DQ ($ Id.VSub_Number '$1'))}
                          spids: [292]
                        )
                      ]
                    )
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name name:Release_no_dot)
                          op: assign_op.Equal
                          rhs: 
                            {
                              (DQ 
                                (command_sub
                                  left_token: <Id.Left_Backtick '`'>
                                  child: 
                                    (command.Pipeline
                                      children: [
                                        (C {<echo>} {($ Id.VSub_Number '$1')})
                                        (C {<sed>} {<-e>} {(SQ <'s,\\.,,'>)})
                                      ]
                                      negated: F
                                    )
                                )
                              )
                            }
                          spids: [298]
                        )
                      ]
                    )
                  ]
                  spids: [280 286 322 -1]
                )
                (case_arm
                  pat_list: [{<-rc>} {<--rc>} {<-RC>} {<--RC>}]
                  action: [
                    (C {<shift>})
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name name:RC)
                          op: assign_op.Equal
                          rhs: {($ Id.VSub_Number '$1')}
                          spids: [345]
                        )
                      ]
                    )
                  ]
                  spids: [325 339 349 -1]
                )
                (case_arm
                  pat_list: [{<-j> <Id.Lit_Star '*'>}]
                  action: [
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name name:NumJobs)
                          op: assign_op.Equal
                          rhs: 
                            {
                              (DQ 
                                (command_sub
                                  left_token: <Id.Left_Backtick '`'>
                                  child: 
                                    (command.Pipeline
                                      children: [
                                        (C {<echo>} {($ Id.VSub_Number '$1')})
                                        (C {<sed>} {<-e>} {(SQ <'s,-j\\([0-9]*\\),\\1,g'>)})
                                      ]
                                      negated: F
                                    )
                                )
                              )
                            }
                          spids: [358]
                        )
                      ]
                    )
                    (command.If
                      arms: [
                        (if_arm
                          cond: 
                            (condition.Shell
                              commands: [
                                (command.Sentence
                                  child: 
                                    (C {<Id.Lit_LBracket '['>} {<-z>} 
                                      {(DQ ($ Id.VSub_DollarName '$NumJobs'))} {<Id.Lit_RBracket ']'>}
                                    )
                                  terminator: <Id.Op_Semi _>
                                )
                              ]
                            )
                          action: [
                            (C {<shift>})
                            (command.ShAssignment
                              pairs: [
                                (assign_pair
                                  lhs: (sh_lhs_expr.Name name:NumJobs)
                                  op: assign_op.Equal
                                  rhs: {(DQ ($ Id.VSub_Number '$1'))}
                                  spids: [405]
                                )
                              ]
                            )
                          ]
                          spids: [386 399]
                        )
                      ]
                    )
                  ]
                  spids: [352 355 414 -1]
                )
                (case_arm
                  pat_list: [{<-build-dir>} {<--build-dir>} {<-builddir>} {<--builddir>}]
                  action: [
                    (C {<shift>})
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name name:BuildDir)
                          op: assign_op.Equal
                          rhs: {(DQ ($ Id.VSub_Number '$1'))}
                          spids: [437]
                        )
                      ]
                    )
                  ]
                  spids: [417 431 443 -1]
                )
                (case_arm
                  pat_list: [{<-no-checkout>} {<--no-checkout>}]
                  action: [
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name name:do_checkout)
                          op: assign_op.Equal
                          rhs: {(DQ <no>)}
                          spids: [455]
                        )
                      ]
                    )
                  ]
                  spids: [446 452 461 -1]
                )
                (case_arm
                  pat_list: [{<-no-64bit>} {<--no-64bit>}]
                  action: [
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name name:do_64bit)
                          op: assign_op.Equal
                          rhs: {(DQ <no>)}
                          spids: [473]
                        )
                      ]
                    )
                  ]
                  spids: [464 470 479 -1]
                )
                (case_arm
                  pat_list: [{<-enable-ada>} {<--enable-ada>}]
                  action: [
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name name:do_ada)
                          op: assign_op.Equal
                          rhs: {(DQ <yes>)}
                          spids: [491]
                        )
                      ]
                    )
                  ]
                  spids: [482 488 497 -1]
                )
                (case_arm
                  pat_list: [{<-enable-fortran>} {<--enable-fortran>}]
                  action: [
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name name:do_fortran)
                          op: assign_op.Equal
                          rhs: {(DQ <yes>)}
                          spids: [509]
                        )
                      ]
                    )
                  ]
                  spids: [500 506 515 -1]
                )
                (case_arm
                  pat_list: [{<-disable-objc>} {<--disable-objc>}]
                  action: [
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name name:do_objc)
                          op: assign_op.Equal
                          rhs: {(DQ <no>)}
                          spids: [527]
                        )
                      ]
                    )
                  ]
                  spids: [518 524 533 -1]
                )
                (case_arm
                  pat_list: [{<-test-debug>} {<--test-debug>}]
                  action: [
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name name:do_debug)
                          op: assign_op.Equal
                          rhs: {(DQ <yes>)}
                          spids: [545]
                        )
                      ]
                    )
                  ]
                  spids: [536 542 551 -1]
                )
                (case_arm
                  pat_list: [{<-test-asserts>} {<--test-asserts>}]
                  action: [
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name name:do_asserts)
                          op: assign_op.Equal
                          rhs: {(DQ <yes>)}
                          spids: [563]
                        )
                      ]
                    )
                  ]
                  spids: [554 560 569 -1]
                )
                (case_arm
                  pat_list: [
                    {<-help>}
                    {<--help>}
                    {<-h>}
                    {<--h>}
                    {<-> (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\?'>)}
                  ]
                  action: [
                    (C {<usage>})
                    (command.ControlFlow
                      token: <Id.ControlFlow_Exit exit>
                      arg_word: {<0>}
                    )
                  ]
                  spids: [572 591 602 -1]
                )
                (case_arm
                  pat_list: [{<Id.Lit_Star '*'>}]
                  action: [
                    (C {<echo>} {(DQ <'unknown option: '> ($ Id.VSub_Number '$1'))})
                    (C {<usage>})
                    (command.ControlFlow
                      token: <Id.ControlFlow_Exit exit>
                      arg_word: {<1>}
                    )
                  ]
                  spids: [605 607 626 -1]
                )
              ]
            )
            (C {<shift>})
          ]
        )
    )
    (command.If
      arms: [
        (if_arm
          cond: 
            (condition.Shell
              commands: [
                (command.Sentence
                  child: 
                    (C {<Id.Lit_LBracket '['>} {<-z>} {(DQ ($ Id.VSub_DollarName '$Release'))} 
                      {<Id.Lit_RBracket ']'>}
                    )
                  terminator: <Id.Op_Semi _>
                )
              ]
            )
          action: [
            (C {<echo>} {(DQ <'error: no release number specified'>)})
            (command.ControlFlow token:<Id.ControlFlow_Exit exit> arg_word:{<1>})
          ]
          spids: [640 653]
        )
      ]
    )
    (command.If
      arms: [
        (if_arm
          cond: 
            (condition.Shell
              commands: [
                (command.Sentence
                  child: 
                    (C {<Id.Lit_LBracket '['>} {<-z>} {(DQ ($ Id.VSub_DollarName '$RC'))} 
                      {<Id.Lit_RBracket ']'>}
                    )
                  terminator: <Id.Op_Semi _>
                )
              ]
            )
          action: [
            (C {<echo>} {(DQ <'error: no release candidate number specified'>)})
            (command.ControlFlow token:<Id.ControlFlow_Exit exit> arg_word:{<1>})
          ]
          spids: [669 682]
        )
      ]
    )
    (command.If
      arms: [
        (if_arm
          cond: 
            (condition.Shell
              commands: [
                (command.Sentence
                  child: 
                    (C {<Id.Lit_LBracket '['>} {<-z>} {(DQ ($ Id.VSub_DollarName '$NumJobs'))} 
                      {<Id.Lit_RBracket ']'>}
                    )
                  terminator: <Id.Op_Semi _>
                )
              ]
            )
          action: [
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name name:NumJobs)
                  op: assign_op.Equal
                  rhs: 
                    {
                      (command_sub
                        left_token: <Id.Left_Backtick '`'>
                        child: 
                          (command.AndOr
                            ops: [Id.Op_DPipe]
                            children: [
                              (command.Simple
                                words: [{<sysctl>} {<-n>} {<hw.activecpu>}]
                                redirects: [
                                  (redir
                                    op: <Id.Redir_Great '2>'>
                                    loc: (redir_loc.Fd fd:2)
                                    arg: {<'/dev/null'>}
                                  )
                                ]
                                do_fork: T
                              )
                              (C {<true>})
                            ]
                          )
                      )
                    }
                  spids: [718]
                )
              ]
            )
          ]
          spids: [702 715]
        )
      ]
    )
    (command.If
      arms: [
        (if_arm
          cond: 
            (condition.Shell
              commands: [
                (command.Sentence
                  child: 
                    (C {<Id.Lit_LBracket '['>} {<-z>} {(DQ ($ Id.VSub_DollarName '$NumJobs'))} 
                      {<Id.Lit_RBracket ']'>}
                    )
                  terminator: <Id.Op_Semi _>
                )
              ]
            )
          action: [
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name name:NumJobs)
                  op: assign_op.Equal
                  rhs: 
                    {
                      (command_sub
                        left_token: <Id.Left_Backtick '`'>
                        child: 
                          (command.AndOr
                            ops: [Id.Op_DPipe]
                            children: [
                              (command.Simple
                                words: [{<sysctl>} {<-n>} {<hw.ncpu>}]
                                redirects: [
                                  (redir
                                    op: <Id.Redir_Great '2>'>
                                    loc: (redir_loc.Fd fd:2)
                                    arg: {<'/dev/null'>}
                                  )
                                ]
                                do_fork: T
                              )
                              (C {<true>})
                            ]
                          )
                      )
                    }
                  spids: [755]
                )
              ]
            )
          ]
          spids: [739 752]
        )
      ]
    )
    (command.If
      arms: [
        (if_arm
          cond: 
            (condition.Shell
              commands: [
                (command.Sentence
                  child: 
                    (C {<Id.Lit_LBracket '['>} {<-z>} {(DQ ($ Id.VSub_DollarName '$NumJobs'))} 
                      {<Id.Lit_RBracket ']'>}
                    )
                  terminator: <Id.Op_Semi _>
                )
              ]
            )
          action: [
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name name:NumJobs)
                  op: assign_op.Equal
                  rhs: 
                    {
                      (command_sub
                        left_token: <Id.Left_Backtick '`'>
                        child: 
                          (command.AndOr
                            ops: [Id.Op_DPipe]
                            children: [
                              (command.Simple
                                words: [{<grep>} {<-c>} {<processor>} {<'/proc/cpuinfo'>}]
                                redirects: [
                                  (redir
                                    op: <Id.Redir_Great '2>'>
                                    loc: (redir_loc.Fd fd:2)
                                    arg: {<'/dev/null'>}
                                  )
                                ]
                                do_fork: T
                              )
                              (C {<true>})
                            ]
                          )
                      )
                    }
                  spids: [792]
                )
              ]
            )
          ]
          spids: [776 789]
        )
      ]
    )
    (command.If
      arms: [
        (if_arm
          cond: 
            (condition.Shell
              commands: [
                (command.Sentence
                  child: 
                    (C {<Id.Lit_LBracket '['>} {<-z>} {(DQ ($ Id.VSub_DollarName '$NumJobs'))} 
                      {<Id.Lit_RBracket ']'>}
                    )
                  terminator: <Id.Op_Semi _>
                )
              ]
            )
          action: [
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name name:NumJobs)
                  op: assign_op.Equal
                  rhs: {<3>}
                  spids: [831]
                )
              ]
            )
          ]
          spids: [815 828]
        )
      ]
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:BuildDir)
          op: assign_op.Equal
          rhs: {($ Id.VSub_DollarName '$BuildDir') <'/rc'> ($ Id.VSub_DollarName '$RC')}
          spids: [840]
        )
      ]
    )
    (C {<mkdir>} {<-p>} {($ Id.VSub_DollarName '$BuildDir')})
    (C {<cd>} {($ Id.VSub_DollarName '$BuildDir')})
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:LogDir)
          op: assign_op.Equal
          rhs: {($ Id.VSub_DollarName '$BuildDir') <'/logs'>}
          spids: [859]
        )
      ]
    )
    (C {<mkdir>} {<-p>} {($ Id.VSub_DollarName '$LogDir')})
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:c_compiler)
          op: assign_op.Equal
          rhs: {(DQ ($ Id.VSub_DollarName '$CC'))}
          spids: [873]
        )
      ]
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:cxx_compiler)
          op: assign_op.Equal
          rhs: {(DQ ($ Id.VSub_DollarName '$CXX'))}
          spids: [878]
        )
      ]
    )
    (command.ShFunction
      name: check_valid_urls
      body: 
        (BraceGroup
          children: [
            (command.ForEach
              iter_name: proj
              iter_words: [{($ Id.VSub_DollarName '$projects')}]
              do_arg_iter: F
              body: 
                (command.DoGroup
                  children: [
                    (C {<echo>} {(DQ <'# Validating '> ($ Id.VSub_DollarName '$proj') <' SVN URL'>)})
                    (command.If
                      arms: [
                        (if_arm
                          cond: 
                            (condition.Shell
                              commands: [
                                (command.Sentence
                                  child: 
                                    (command.Pipeline
                                      children: [
                                        (command.Simple
                                          words: [
                                            {<svn>}
                                            {<ls>}
                                            {($ Id.VSub_DollarName '$Base_url') <'/'> 
                                              ($ Id.VSub_DollarName '$proj') <'/tags/RELEASE_'> ($ Id.VSub_DollarName '$Release_no_dot') <'/rc'> ($ Id.VSub_DollarName '$RC')
                                            }
                                          ]
                                          redirects: [
                                            (redir
                                              op: <Id.Redir_Great '>'>
                                              loc: (redir_loc.Fd fd:1)
                                              arg: {<'/dev/null'>}
                                            )
                                            (redir
                                              op: <Id.Redir_GreatAnd '2>&'>
                                              loc: (redir_loc.Fd fd:2)
                                              arg: {<1>}
                                            )
                                          ]
                                          do_fork: T
                                        )
                                      ]
                                      negated: T
                                    )
                                  terminator: <Id.Op_Semi _>
                                )
                              ]
                            )
                          action: [
                            (C {<echo>} 
                              {
                                (DQ <'llvm '> ($ Id.VSub_DollarName '$Release') <' release candidate '> 
                                  ($ Id.VSub_DollarName '$RC') <' doesn\'t exist!'>
                                )
                              }
                            )
                            (command.ControlFlow
                              token: <Id.ControlFlow_Exit exit>
                              arg_word: {<1>}
                            )
                          ]
                          spids: [919 944]
                        )
                      ]
                    )
                  ]
                )
            )
          ]
        )
    )
    (command.ShFunction
      name: export_sources
      body: 
        (BraceGroup
          children: [
            (C {<check_valid_urls>})
            (command.ForEach
              iter_name: proj
              iter_words: [{($ Id.VSub_DollarName '$projects')}]
              do_arg_iter: F
              body: 
                (command.DoGroup
                  children: [
                    (C {<echo>} 
                      {
                        (DQ <'# Exporting '> ($ Id.VSub_DollarName '$proj') <' '> 
                          ($ Id.VSub_DollarName '$Release') <-RC> ($ Id.VSub_DollarName '$RC') <' sources'>
                        )
                      }
                    )
                    (command.If
                      arms: [
                        (if_arm
                          cond: 
                            (condition.Shell
                              commands: [
                                (command.Sentence
                                  child: 
                                    (command.Pipeline
                                      children: [
                                        (C {<svn>} {<export>} {<-q>} 
                                          {($ Id.VSub_DollarName '$Base_url') <'/'> 
                                            ($ Id.VSub_DollarName '$proj') <'/tags/RELEASE_'> ($ Id.VSub_DollarName '$Release_no_dot') <'/rc'> ($ Id.VSub_DollarName '$RC')
                                          } {($ Id.VSub_DollarName '$proj') <.src>}
                                        )
                                      ]
                                      negated: T
                                    )
                                  terminator: <Id.Op_Semi _>
                                )
                              ]
                            )
                          action: [
                            (C {<echo>} 
                              {
                                (DQ <'error: failed to export '> ($ Id.VSub_DollarName '$proj') 
                                  <' project'>
                                )
                              }
                            )
                            (command.ControlFlow
                              token: <Id.ControlFlow_Exit exit>
                              arg_word: {<1>}
                            )
                          ]
                          spids: [1013 1036]
                        )
                      ]
                    )
                  ]
                )
            )
            (C {<echo>} {(DQ <'# Creating symlinks'>)})
            (C {<cd>} {($ Id.VSub_DollarName '$BuildDir') <'/llvm.src/tools'>})
            (command.If
              arms: [
                (if_arm
                  cond: 
                    (condition.Shell
                      commands: [
                        (command.Sentence
                          child: 
                            (C {<Id.Lit_LBracket '['>} {<Id.KW_Bang '!'>} {<-h>} {<clang>} 
                              {<Id.Lit_RBracket ']'>}
                            )
                          terminator: <Id.Op_Semi _>
                        )
                      ]
                    )
                  action: [(C {<ln>} {<-s>} {<'../../cfe.src'>} {<clang>})]
                  spids: [1073 1086]
                )
              ]
            )
            (C {<cd>} {($ Id.VSub_DollarName '$BuildDir') <'/llvm.src/projects'>})
            (command.If
              arms: [
                (if_arm
                  cond: 
                    (condition.Shell
                      commands: [
                        (command.Sentence
                          child: 
                            (C {<Id.Lit_LBracket '['>} {<Id.KW_Bang '!'>} {<-h>} {<llvm-test>} 
                              {<Id.Lit_RBracket ']'>}
                            )
                          terminator: <Id.Op_Semi _>
                        )
                      ]
                    )
                  action: [(C {<ln>} {<-s>} {<'../../test-suite.src'>} {<llvm-test>})]
                  spids: [1107 1120]
                )
              ]
            )
            (C {<cd>} {($ Id.VSub_DollarName '$BuildDir')})
          ]
        )
    )
    (command.ShFunction
      name: configure_llvmCore
      body: 
        (BraceGroup
          children: [
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name name:Phase)
                  op: assign_op.Equal
                  rhs: {(DQ ($ Id.VSub_Number '$1'))}
                  spids: [1151]
                )
              ]
            )
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name name:Flavor)
                  op: assign_op.Equal
                  rhs: {(DQ ($ Id.VSub_Number '$2'))}
                  spids: [1157]
                )
              ]
            )
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name name:ObjDir)
                  op: assign_op.Equal
                  rhs: {(DQ ($ Id.VSub_Number '$3'))}
                  spids: [1163]
                )
              ]
            )
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name name:InstallDir)
                  op: assign_op.Equal
                  rhs: {(DQ ($ Id.VSub_Number '$4'))}
                  spids: [1169]
                )
              ]
            )
            (command.Case
              to_match: {($ Id.VSub_DollarName '$Flavor')}
              arms: [
                (case_arm
                  pat_list: [{<Release>} {<Release-64>}]
                  action: [
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name name:Optimized)
                          op: assign_op.Equal
                          rhs: {(DQ <yes>)}
                          spids: [1192]
                        )
                      ]
                    )
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name name:Assertions)
                          op: assign_op.Equal
                          rhs: {(DQ <no>)}
                          spids: [1198]
                        )
                      ]
                    )
                  ]
                  spids: [1183 1189 1204 -1]
                )
                (case_arm
                  pat_list: [{<Release> <Id.Lit_Other '+'> <Asserts>}]
                  action: [
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name name:Optimized)
                          op: assign_op.Equal
                          rhs: {(DQ <yes>)}
                          spids: [1214]
                        )
                      ]
                    )
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name name:Assertions)
                          op: assign_op.Equal
                          rhs: {(DQ <yes>)}
                          spids: [1220]
                        )
                      ]
                    )
                  ]
                  spids: [1207 1211 1226 -1]
                )
                (case_arm
                  pat_list: [{<Debug>}]
                  action: [
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name name:Optimized)
                          op: assign_op.Equal
                          rhs: {(DQ <no>)}
                          spids: [1234]
                        )
                      ]
                    )
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name name:Assertions)
                          op: assign_op.Equal
                          rhs: {(DQ <yes>)}
                          spids: [1240]
                        )
                      ]
                    )
                  ]
                  spids: [1229 1231 1246 -1]
                )
                (case_arm
                  pat_list: [{<Id.Lit_Star '*'>}]
                  action: [
                    (C {<echo>} {(DQ <'# Invalid flavor \''> ($ Id.VSub_DollarName '$Flavor') <'\''>)})
                    (C {<echo>} {(DQ )})
                    (command.ControlFlow token:<Id.ControlFlow_Return return>)
                  ]
                  spids: [1249 1251 1272 -1]
                )
              ]
            )
            (C {<echo>} {(DQ <'# Using C compiler: '> ($ Id.VSub_DollarName '$c_compiler'))})
            (C {<echo>} {(DQ <'# Using C++ compiler: '> ($ Id.VSub_DollarName '$cxx_compiler'))})
            (C {<cd>} {($ Id.VSub_DollarName '$ObjDir')})
            (C {<echo>} 
              {
                (DQ <'# Configuring llvm '> ($ Id.VSub_DollarName '$Release') <-rc> 
                  ($ Id.VSub_DollarName '$RC') <' '> ($ Id.VSub_DollarName '$Flavor')
                )
              }
            )
            (C {<echo>} 
              {
                (DQ <'# '> ($ Id.VSub_DollarName '$BuildDir') <'/llvm.src/configure --prefix='> 
                  ($ Id.VSub_DollarName '$InstallDir') <' '> <'        --enable-optimized='> ($ Id.VSub_DollarName '$Optimized') <' '> 
                  <'        --enable-assertions='> ($ Id.VSub_DollarName '$Assertions')
                )
              }
            )
            (command.Pipeline
              children: [
                (command.Simple
                  words: [
                    {<env>}
                    {<Id.Lit_VarLike 'CC='> ($ Id.VSub_DollarName '$c_compiler')}
                    {<Id.Lit_VarLike 'CXX='> ($ Id.VSub_DollarName '$cxx_compiler')}
                    {($ Id.VSub_DollarName '$BuildDir') <'/llvm.src/configure'>}
                    {<--prefix> <Id.Lit_Equals '='> ($ Id.VSub_DollarName '$InstallDir')}
                    {<--enable-optimized> <Id.Lit_Equals '='> ($ Id.VSub_DollarName '$Optimized')}
                    {<--enable-assertions> <Id.Lit_Equals '='> ($ Id.VSub_DollarName '$Assertions')}
                  ]
                  redirects: [(redir op:<Id.Redir_GreatAnd '2>&'> loc:(redir_loc.Fd fd:2) arg:{<1>})]
                  do_fork: T
                )
                (C {<tee>} 
                  {($ Id.VSub_DollarName '$LogDir') <'/llvm.configure-Phase'> 
                    ($ Id.VSub_DollarName '$Phase') <-> ($ Id.VSub_DollarName '$Flavor') <.log>
                  }
                )
              ]
              negated: F
            )
            (C {<cd>} {($ Id.VSub_DollarName '$BuildDir')})
          ]
        )
    )
    (command.ShFunction
      name: build_llvmCore
      body: 
        (BraceGroup
          children: [
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name name:Phase)
                  op: assign_op.Equal
                  rhs: {(DQ ($ Id.VSub_Number '$1'))}
                  spids: [1393]
                )
              ]
            )
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name name:Flavor)
                  op: assign_op.Equal
                  rhs: {(DQ ($ Id.VSub_Number '$2'))}
                  spids: [1399]
                )
              ]
            )
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name name:ObjDir)
                  op: assign_op.Equal
                  rhs: {(DQ ($ Id.VSub_Number '$3'))}
                  spids: [1405]
                )
              ]
            )
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name name:ExtraOpts)
                  op: assign_op.Equal
                  rhs: {(DQ )}
                  spids: [1411]
                )
              ]
            )
            (command.If
              arms: [
                (if_arm
                  cond: 
                    (condition.Shell
                      commands: [
                        (command.Sentence
                          child: 
                            (C {<Id.Lit_LBracket '['>} {(DQ ($ Id.VSub_DollarName '$Flavor'))} 
                              {<Id.Lit_Equals '='>} {(DQ <Release-64>)} {<Id.Lit_RBracket ']'>}
                            )
                          terminator: <Id.Op_Semi _>
                        )
                      ]
                    )
                  action: [
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name name:ExtraOpts)
                          op: assign_op.Equal
                          rhs: {(DQ <'EXTRA_OPTIONS=-m64'>)}
                          spids: [1437]
                        )
                      ]
                    )
                  ]
                  spids: [1417 1434]
                )
              ]
            )
            (C {<cd>} {($ Id.VSub_DollarName '$ObjDir')})
            (C {<echo>} 
              {
                (DQ <'# Compiling llvm '> ($ Id.VSub_DollarName '$Release') <-rc> 
                  ($ Id.VSub_DollarName '$RC') <' '> ($ Id.VSub_DollarName '$Flavor')
                )
              }
            )
            (C {<echo>} 
              {
                (DQ <'# '> (${ Id.VSub_Name MAKE) <' -j '> ($ Id.VSub_DollarName '$NumJobs') 
                  <' VERBOSE=1 '> ($ Id.VSub_DollarName '$ExtraOpts')
                )
              }
            )
            (command.Pipeline
              children: [
                (command.Simple
                  words: [
                    {(${ Id.VSub_Name MAKE)}
                    {<-j>}
                    {($ Id.VSub_DollarName '$NumJobs')}
                    {<Id.Lit_VarLike 'VERBOSE='> <1>}
                    {($ Id.VSub_DollarName '$ExtraOpts')}
                  ]
                  redirects: [(redir op:<Id.Redir_GreatAnd '2>&'> loc:(redir_loc.Fd fd:2) arg:{<1>})]
                  do_fork: T
                )
                (C {<tee>} 
                  {($ Id.VSub_DollarName '$LogDir') <'/llvm.make-Phase'> 
                    ($ Id.VSub_DollarName '$Phase') <-> ($ Id.VSub_DollarName '$Flavor') <.log>
                  }
                )
              ]
              negated: F
            )
            (C {<echo>} 
              {
                (DQ <'# Installing llvm '> ($ Id.VSub_DollarName '$Release') <-rc> 
                  ($ Id.VSub_DollarName '$RC') <' '> ($ Id.VSub_DollarName '$Flavor')
                )
              }
            )
            (C {<echo>} {(DQ <'# '> (${ Id.VSub_Name MAKE) <' install'>)})
            (command.Pipeline
              children: [
                (command.Simple
                  words: [{(${ Id.VSub_Name MAKE)} {<install>}]
                  redirects: [(redir op:<Id.Redir_GreatAnd '2>&'> loc:(redir_loc.Fd fd:2) arg:{<1>})]
                  do_fork: T
                )
                (C {<tee>} 
                  {($ Id.VSub_DollarName '$LogDir') <'/llvm.install-Phase'> 
                    ($ Id.VSub_DollarName '$Phase') <-> ($ Id.VSub_DollarName '$Flavor') <.log>
                  }
                )
              ]
              negated: F
            )
            (C {<cd>} {($ Id.VSub_DollarName '$BuildDir')})
          ]
        )
    )
    (command.ShFunction
      name: test_llvmCore
      body: 
        (BraceGroup
          children: [
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name name:Phase)
                  op: assign_op.Equal
                  rhs: {(DQ ($ Id.VSub_Number '$1'))}
                  spids: [1571]
                )
              ]
            )
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name name:Flavor)
                  op: assign_op.Equal
                  rhs: {(DQ ($ Id.VSub_Number '$2'))}
                  spids: [1577]
                )
              ]
            )
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name name:ObjDir)
                  op: assign_op.Equal
                  rhs: {(DQ ($ Id.VSub_Number '$3'))}
                  spids: [1583]
                )
              ]
            )
            (C {<cd>} {($ Id.VSub_DollarName '$ObjDir')})
            (command.Pipeline
              children: [
                (command.Simple
                  words: [{(${ Id.VSub_Name MAKE)} {<-k>} {<check-all>}]
                  redirects: [(redir op:<Id.Redir_GreatAnd '2>&'> loc:(redir_loc.Fd fd:2) arg:{<1>})]
                  do_fork: T
                )
                (C {<tee>} 
                  {($ Id.VSub_DollarName '$LogDir') <'/llvm.check-Phase'> 
                    ($ Id.VSub_DollarName '$Phase') <-> ($ Id.VSub_DollarName '$Flavor') <.log>
                  }
                )
              ]
              negated: F
            )
            (command.Pipeline
              children: [
                (command.Simple
                  words: [{(${ Id.VSub_Name MAKE)} {<-k>} {<unittests>}]
                  redirects: [(redir op:<Id.Redir_GreatAnd '2>&'> loc:(redir_loc.Fd fd:2) arg:{<1>})]
                  do_fork: T
                )
                (C {<tee>} 
                  {($ Id.VSub_DollarName '$LogDir') <'/llvm.unittests-Phase'> 
                    ($ Id.VSub_DollarName '$Phase') <-> ($ Id.VSub_DollarName '$Flavor') <.log>
                  }
                )
              ]
              negated: F
            )
            (C {<cd>} {($ Id.VSub_DollarName '$BuildDir')})
          ]
        )
    )
    (C {<set>} {<-e>})
    (command.If
      arms: [
        (if_arm
          cond: 
            (condition.Shell
              commands: [
                (command.Sentence
                  child: 
                    (C {<Id.Lit_LBracket '['>} {(DQ ($ Id.VSub_DollarName '$do_checkout'))} 
                      {<Id.Lit_Equals '='>} {(DQ <yes>)} {<Id.Lit_RBracket ']'>}
                    )
                  terminator: <Id.Op_Semi _>
                )
              ]
            )
          action: [(C {<export_sources>})]
          spids: [1660 1677]
        )
      ]
    )
    (command.Pipeline
      children: [
        (command.Subshell
          child: 
            (command.CommandList
              children: [
                (command.ShAssignment
                  pairs: [
                    (assign_pair
                      lhs: (sh_lhs_expr.Name name:Flavors)
                      op: assign_op.Equal
                      rhs: {(DQ <Release>)}
                      spids: [1687]
                    )
                  ]
                )
                (command.If
                  arms: [
                    (if_arm
                      cond: 
                        (condition.Shell
                          commands: [
                            (command.Sentence
                              child: 
                                (C {<Id.Lit_LBracket '['>} {(DQ ($ Id.VSub_DollarName '$do_debug'))} 
                                  {<Id.Lit_Equals '='>} {(DQ <yes>)} {<Id.Lit_RBracket ']'>}
                                )
                              terminator: <Id.Op_Semi _>
                            )
                          ]
                        )
                      action: [
                        (command.ShAssignment
                          pairs: [
                            (assign_pair
                              lhs: (sh_lhs_expr.Name name:Flavors)
                              op: assign_op.Equal
                              rhs: {(DQ <'Debug '> ($ Id.VSub_DollarName '$Flavors'))}
                              spids: [1712]
                            )
                          ]
                        )
                      ]
                      spids: [1692 1709]
                    )
                  ]
                )
                (command.If
                  arms: [
                    (if_arm
                      cond: 
                        (condition.Shell
                          commands: [
                            (command.Sentence
                              child: 
                                (C {<Id.Lit_LBracket '['>} {(DQ ($ Id.VSub_DollarName '$do_asserts'))} 
                                  {<Id.Lit_Equals '='>} {(DQ <yes>)} {<Id.Lit_RBracket ']'>}
                                )
                              terminator: <Id.Op_Semi _>
                            )
                          ]
                        )
                      action: [
                        (command.ShAssignment
                          pairs: [
                            (assign_pair
                              lhs: (sh_lhs_expr.Name name:Flavors)
                              op: assign_op.Equal
                              rhs: {(DQ ($ Id.VSub_DollarName '$Flavors') <' Release+Asserts'>)}
                              spids: [1740]
                            )
                          ]
                        )
                      ]
                      spids: [1720 1737]
                    )
                  ]
                )
                (command.If
                  arms: [
                    (if_arm
                      cond: 
                        (condition.Shell
                          commands: [
                            (command.Sentence
                              child: 
                                (C {<Id.Lit_LBracket '['>} {(DQ ($ Id.VSub_DollarName '$do_64bit'))} 
                                  {<Id.Lit_Equals '='>} {(DQ <yes>)} {<Id.Lit_RBracket ']'>}
                                )
                              terminator: <Id.Op_Semi _>
                            )
                          ]
                        )
                      action: [
                        (command.ShAssignment
                          pairs: [
                            (assign_pair
                              lhs: (sh_lhs_expr.Name name:Flavors)
                              op: assign_op.Equal
                              rhs: {(DQ ($ Id.VSub_DollarName '$Flavors') <' Release-64'>)}
                              spids: [1768]
                            )
                          ]
                        )
                      ]
                      spids: [1748 1765]
                    )
                  ]
                )
                (command.ForEach
                  iter_name: Flavor
                  iter_words: [{($ Id.VSub_DollarName '$Flavors')}]
                  do_arg_iter: F
                  body: 
                    (command.DoGroup
                      children: [
                        (C {<echo>} {(DQ )})
                        (C {<echo>} {(DQ )})
                        (C {<echo>} 
                          {
                            (DQ 
                              <
'********************************************************************************'
                              >
                            )
                          }
                        )
                        (C {<echo>} 
                          {
                            (DQ <'  Release:     '> ($ Id.VSub_DollarName '$Release') <-rc> 
                              ($ Id.VSub_DollarName '$RC')
                            )
                          }
                        )
                        (C {<echo>} {(DQ <'  Build:       '> ($ Id.VSub_DollarName '$Flavor'))})
                        (C {<echo>} {(DQ <'  System Info: '>)})
                        (C {<echo>} 
                          {
                            (DQ <'    '> 
                              (command_sub
                                left_token: <Id.Left_Backtick '`'>
                                child: (C {<uname>} {<-a>})
                              )
                            )
                          }
                        )
                        (C {<echo>} 
                          {
                            (DQ 
                              <
'********************************************************************************'
                              >
                            )
                          }
                        )
                        (C {<echo>} {(DQ )})
                        (command.ShAssignment
                          pairs: [
                            (assign_pair
                              lhs: (sh_lhs_expr.Name name:llvmCore_phase1_objdir)
                              op: assign_op.Equal
                              rhs: 
                                {($ Id.VSub_DollarName '$BuildDir') <'/Phase1/'> 
                                  ($ Id.VSub_DollarName '$Flavor') <'/llvmCore-'> ($ Id.VSub_DollarName '$Release') <-rc> ($ Id.VSub_DollarName '$RC') <.obj>
                                }
                              spids: [1862]
                            )
                          ]
                        )
                        (command.ShAssignment
                          pairs: [
                            (assign_pair
                              lhs: (sh_lhs_expr.Name name:llvmCore_phase1_installdir)
                              op: assign_op.Equal
                              rhs: 
                                {($ Id.VSub_DollarName '$BuildDir') <'/Phase1/'> 
                                  ($ Id.VSub_DollarName '$Flavor') <'/llvmCore-'> ($ Id.VSub_DollarName '$Release') <-rc> ($ Id.VSub_DollarName '$RC') <.install>
                                }
                              spids: [1873]
                            )
                          ]
                        )
                        (command.ShAssignment
                          pairs: [
                            (assign_pair
                              lhs: (sh_lhs_expr.Name name:llvmCore_phase2_objdir)
                              op: assign_op.Equal
                              rhs: 
                                {($ Id.VSub_DollarName '$BuildDir') <'/Phase2/'> 
                                  ($ Id.VSub_DollarName '$Flavor') <'/llvmCore-'> ($ Id.VSub_DollarName '$Release') <-rc> ($ Id.VSub_DollarName '$RC') <.obj>
                                }
                              spids: [1885]
                            )
                          ]
                        )
                        (command.ShAssignment
                          pairs: [
                            (assign_pair
                              lhs: (sh_lhs_expr.Name name:llvmCore_phase2_installdir)
                              op: assign_op.Equal
                              rhs: 
                                {($ Id.VSub_DollarName '$BuildDir') <'/Phase2/'> 
                                  ($ Id.VSub_DollarName '$Flavor') <'/llvmCore-'> ($ Id.VSub_DollarName '$Release') <-rc> ($ Id.VSub_DollarName '$RC') <.install>
                                }
                              spids: [1896]
                            )
                          ]
                        )
                        (command.ShAssignment
                          pairs: [
                            (assign_pair
                              lhs: (sh_lhs_expr.Name name:llvmCore_phase3_objdir)
                              op: assign_op.Equal
                              rhs: 
                                {($ Id.VSub_DollarName '$BuildDir') <'/Phase3/'> 
                                  ($ Id.VSub_DollarName '$Flavor') <'/llvmCore-'> ($ Id.VSub_DollarName '$Release') <-rc> ($ Id.VSub_DollarName '$RC') <.obj>
                                }
                              spids: [1908]
                            )
                          ]
                        )
                        (command.ShAssignment
                          pairs: [
                            (assign_pair
                              lhs: (sh_lhs_expr.Name name:llvmCore_phase3_installdir)
                              op: assign_op.Equal
                              rhs: 
                                {($ Id.VSub_DollarName '$BuildDir') <'/Phase3/'> 
                                  ($ Id.VSub_DollarName '$Flavor') <'/llvmCore-'> ($ Id.VSub_DollarName '$Release') <-rc> ($ Id.VSub_DollarName '$RC') <.install>
                                }
                              spids: [1919]
                            )
                          ]
                        )
                        (C {<rm>} {<-rf>} {($ Id.VSub_DollarName '$llvmCore_phase1_objdir')})
                        (C {<rm>} {<-rf>} {($ Id.VSub_DollarName '$llvmCore_phase1_installdir')})
                        (C {<rm>} {<-rf>} {($ Id.VSub_DollarName '$llvmCore_phase2_objdir')})
                        (C {<rm>} {<-rf>} {($ Id.VSub_DollarName '$llvmCore_phase2_installdir')})
                        (C {<rm>} {<-rf>} {($ Id.VSub_DollarName '$llvmCore_phase3_objdir')})
                        (C {<rm>} {<-rf>} {($ Id.VSub_DollarName '$llvmCore_phase3_installdir')})
                        (C {<mkdir>} {<-p>} {($ Id.VSub_DollarName '$llvmCore_phase1_objdir')})
                        (C {<mkdir>} {<-p>} {($ Id.VSub_DollarName '$llvmCore_phase1_installdir')})
                        (C {<mkdir>} {<-p>} {($ Id.VSub_DollarName '$llvmCore_phase2_objdir')})
                        (C {<mkdir>} {<-p>} {($ Id.VSub_DollarName '$llvmCore_phase2_installdir')})
                        (C {<mkdir>} {<-p>} {($ Id.VSub_DollarName '$llvmCore_phase3_objdir')})
                        (C {<mkdir>} {<-p>} {($ Id.VSub_DollarName '$llvmCore_phase3_installdir')})
                        (C {<echo>} {(DQ <'# Phase 1: Building llvmCore'>)})
                        (C {<configure_llvmCore>} {<1>} {($ Id.VSub_DollarName '$Flavor')} 
                          {($ Id.VSub_DollarName '$llvmCore_phase1_objdir')} {($ Id.VSub_DollarName '$llvmCore_phase1_installdir')}
                        )
                        (C {<build_llvmCore>} {<1>} {($ Id.VSub_DollarName '$Flavor')} 
                          {($ Id.VSub_DollarName '$llvmCore_phase1_objdir')}
                        )
                        (command.ShAssignment
                          pairs: [
                            (assign_pair
                              lhs: (sh_lhs_expr.Name name:c_compiler)
                              op: assign_op.Equal
                              rhs: 
                                {($ Id.VSub_DollarName '$llvmCore_phase1_installdir') <'/bin/clang'>}
                              spids: [2065]
                            )
                          ]
                        )
                        (command.ShAssignment
                          pairs: [
                            (assign_pair
                              lhs: (sh_lhs_expr.Name name:cxx_compiler)
                              op: assign_op.Equal
                              rhs: 
                                {($ Id.VSub_DollarName '$llvmCore_phase1_installdir') <'/bin/clang'> 
                                  <Id.Lit_Other '+'> <Id.Lit_Other '+'>
                                }
                              spids: [2070]
                            )
                          ]
                        )
                        (C {<echo>} {(DQ <'# Phase 2: Building llvmCore'>)})
                        (C {<configure_llvmCore>} {<2>} {($ Id.VSub_DollarName '$Flavor')} 
                          {($ Id.VSub_DollarName '$llvmCore_phase2_objdir')} {($ Id.VSub_DollarName '$llvmCore_phase2_installdir')}
                        )
                        (C {<build_llvmCore>} {<2>} {($ Id.VSub_DollarName '$Flavor')} 
                          {($ Id.VSub_DollarName '$llvmCore_phase2_objdir')}
                        )
                        (command.ShAssignment
                          pairs: [
                            (assign_pair
                              lhs: (sh_lhs_expr.Name name:c_compiler)
                              op: assign_op.Equal
                              rhs: 
                                {($ Id.VSub_DollarName '$llvmCore_phase2_installdir') <'/bin/clang'>}
                              spids: [2117]
                            )
                          ]
                        )
                        (command.ShAssignment
                          pairs: [
                            (assign_pair
                              lhs: (sh_lhs_expr.Name name:cxx_compiler)
                              op: assign_op.Equal
                              rhs: 
                                {($ Id.VSub_DollarName '$llvmCore_phase2_installdir') <'/bin/clang'> 
                                  <Id.Lit_Other '+'> <Id.Lit_Other '+'>
                                }
                              spids: [2122]
                            )
                          ]
                        )
                        (C {<echo>} {(DQ <'# Phase 3: Building llvmCore'>)})
                        (C {<configure_llvmCore>} {<3>} {($ Id.VSub_DollarName '$Flavor')} 
                          {($ Id.VSub_DollarName '$llvmCore_phase3_objdir')} {($ Id.VSub_DollarName '$llvmCore_phase3_installdir')}
                        )
                        (C {<build_llvmCore>} {<3>} {($ Id.VSub_DollarName '$Flavor')} 
                          {($ Id.VSub_DollarName '$llvmCore_phase3_objdir')}
                        )
                        (C {<echo>} {(DQ <'# Testing - built with clang'>)})
                        (C {<test_llvmCore>} {<3>} {($ Id.VSub_DollarName '$Flavor')} 
                          {($ Id.VSub_DollarName '$llvmCore_phase3_objdir')}
                        )
                        (C {<echo>})
                        (C {<echo>} {(DQ <'# Comparing Phase 2 and Phase 3 files'>)})
                        (command.ForEach
                          iter_name: o
                          iter_words: [
                            {
                              (command_sub
                                left_token: <Id.Left_Backtick '`'>
                                child: 
                                  (C {<find>} {($ Id.VSub_DollarName '$llvmCore_phase2_objdir')} 
                                    {<-name>} {(SQ <'*.o'>)}
                                  )
                              )
                            }
                          ]
                          do_arg_iter: F
                          body: 
                            (command.DoGroup
                              children: [
                                (command.ShAssignment
                                  pairs: [
                                    (assign_pair
                                      lhs: (sh_lhs_expr.Name name:p3)
                                      op: assign_op.Equal
                                      rhs: 
                                        {
                                          (command_sub
                                            left_token: <Id.Left_Backtick '`'>
                                            child: 
                                              (command.Pipeline
                                                children: [
                                                  (C {<echo>} {($ Id.VSub_DollarName '$o')})
                                                  (C {<sed>} {<-e>} {(SQ <'s,Phase2,Phase3,'>)})
                                                ]
                                                negated: F
                                              )
                                          )
                                        }
                                      spids: [2229]
                                    )
                                  ]
                                )
                                (command.If
                                  arms: [
                                    (if_arm
                                      cond: 
                                        (condition.Shell
                                          commands: [
                                            (command.Sentence
                                              child: 
                                                (command.Pipeline
                                                  children: [
                                                    (command.Simple
                                                      words: [
                                                        {<cmp>}
                                                        {<--ignore-initial> <Id.Lit_Equals '='> <16>}
                                                        {($ Id.VSub_DollarName '$o')}
                                                        {($ Id.VSub_DollarName '$p3')}
                                                      ]
                                                      redirects: [
                                                        (redir
                                                          op: <Id.Redir_Great '>'>
                                                          loc: (redir_loc.Fd fd:1)
                                                          arg: {<'/dev/null'>}
                                                        )
                                                        (redir
                                                          op: <Id.Redir_GreatAnd '2>&'>
                                                          loc: (redir_loc.Fd fd:2)
                                                          arg: {<1>}
                                                        )
                                                      ]
                                                      do_fork: T
                                                    )
                                                  ]
                                                  negated: T
                                                )
                                              terminator: <Id.Op_Semi _>
                                            )
                                          ]
                                        )
                                      action: [
                                        (C {<echo>} 
                                          {
                                            (DQ <'file '> 
                                              (command_sub
                                                left_token: <Id.Left_Backtick '`'>
                                                child: (C {<basename>} {($ Id.VSub_DollarName '$o')})
                                              ) <' differs between phase 2 and phase 3'>
                                            )
                                          }
                                        )
                                      ]
                                      spids: [2249 2272]
                                    )
                                  ]
                                )
                              ]
                            )
                        )
                      ]
                    )
                )
              ]
            )
          redirects: [(redir op:<Id.Redir_GreatAnd '2>&'> loc:(redir_loc.Fd fd:2) arg:{<1>})]
        )
        (C {<tee>} 
          {($ Id.VSub_DollarName '$LogDir') <'/testing.'> ($ Id.VSub_DollarName '$Release') <-rc> 
            ($ Id.VSub_DollarName '$RC') <.log>
          }
        )
      ]
      negated: F
    )
    (C {<set>} {<Id.Lit_Other '+'> <e>})
    (C {<echo>} {(DQ <'### Testing Finished ###'>)})
    (C {<echo>} {(DQ <'### Logs: '> ($ Id.VSub_DollarName '$LogDir'))})
    (command.ControlFlow token:<Id.ControlFlow_Exit exit> arg_word:{<0>})
  ]
)