(CommandList
  children: [
    (If
      arms: [
        (if_arm
          cond: [
            (Sentence
              child: (C {(test)} {(KW_Bang '!')} {(-e)} {(src/google/protobuf/stubs/common.h)})
              terminator: <Op_Semi ';'>
            )
          ]
          action: [
            (SimpleCommand
              words: [{(cat)}]
              redirects: [
                (Redir op:<Redir_GreatAnd '>&'> fd:16777215 arg_word:{(2)})
                (HereDoc
                  op: <Redir_DLess '<<'>
                  fd: 16777215
                  here_begin: {(__EOF__)}
                  here_end_span_id: 58
                  stdin_parts: [
                    (
'Could not find source code.  Make sure you are running this script from the\n'
                    )
                    ('root of the distribution tree.\n')
                  ]
                )
              ]
            )
            (ControlFlow token:<ControlFlow_Exit exit> arg_word:{(1)})
          ]
          spids: [16777215 43]
        )
      ]
      spids: [16777215 64]
    )
    (If
      arms: [
        (if_arm
          cond: [
            (Sentence
              child: (C {(test)} {(KW_Bang '!')} {(-e)} {(src/Makefile)})
              terminator: <Op_Semi ';'>
            )
          ]
          action: [
            (SimpleCommand
              words: [{(cat)}]
              redirects: [
                (Redir op:<Redir_GreatAnd '>&'> fd:16777215 arg_word:{(2)})
                (HereDoc
                  op: <Redir_DLess '<<'>
                  fd: 16777215
                  here_begin: {(__EOF__)}
                  here_end_span_id: 93
                  stdin_parts: [
                    ('Could not find src/Makefile.  You must run ./configure (and perhaps\n')
                    ('./autogen.sh) first.\n')
                  ]
                )
              ]
            )
            (ControlFlow token:<ControlFlow_Exit exit> arg_word:{(1)})
          ]
          spids: [16777215 78]
        )
      ]
      spids: [16777215 99]
    )
    (C {(cd)} {(src)})
    (Assignment
      keyword: Assign_Declare
      flags: [-a]
      pairs: [
        (assign_pair
          lhs: (LhsName name:RUNTIME_PROTO_FILES)
          op: Equal
          rhs: 
            {
              (ArrayLiteralPart
                words: [
                  {(google/protobuf/any.proto)}
                  {(google/protobuf/api.proto)}
                  {(google/protobuf/descriptor.proto)}
                  {(google/protobuf/duration.proto)}
                  {(google/protobuf/empty.proto)}
                  {(google/protobuf/field_mask.proto)}
                  {(google/protobuf/source_context.proto)}
                  {(google/protobuf/struct.proto)}
                  {(google/protobuf/timestamp.proto)}
                  {(google/protobuf/type.proto)}
                  {(google/protobuf/wrappers.proto)}
                ]
              )
            }
          spids: [111]
        )
      ]
      spids: [107]
    )
    (Assignment
      keyword: Assign_None
      pairs: [(assign_pair lhs:(LhsName name:CORE_PROTO_IS_CORRECT) op:Equal rhs:{(0)} spids:[159])]
      spids: [159]
    )
    (Assignment
      keyword: Assign_None
      pairs: [(assign_pair lhs:(LhsName name:PROCESS_ROUND) op:Equal rhs:{(1)} spids:[162])]
      spids: [162]
    )
    (Assignment
      keyword: Assign_None
      pairs: [
        (assign_pair
          lhs: (LhsName name:TMP)
          op: Equal
          rhs: 
            {
              (CommandSubPart
                command_list: (CommandList children:[(C {(mktemp)} {(-d)})])
                left_token: <Left_CommandSub '$('>
                spids: [166 170]
              )
            }
          spids: [165]
        )
      ]
      spids: [165]
    )
    (C {(echo)} {(DQ ('Updating descriptor protos...'))})
    (WhileUntil
      keyword: <KW_While while>
      cond: [
        (C {(Lit_Other '[')} {($ VSub_Name '$CORE_PROTO_IS_CORRECT')} {(-ne)} {(1)} {(Lit_Other ']')})
      ]
      body: 
        (DoGroup
          children: [
            (C {(echo)} {(DQ ('Round ') ($ VSub_Name '$PROCESS_ROUND'))})
            (Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (LhsName name:CORE_PROTO_IS_CORRECT)
                  op: Equal
                  rhs: {(1)}
                  spids: [201]
                )
              ]
              spids: [201]
            )
            (C {(make)} {($ VSub_At '$@')} {(protoc)})
            (If
              arms: [
                (if_arm
                  cond: [
                    (Sentence
                      child: (C {(test)} {($ VSub_QMark '$?')} {(-ne)} {(0)})
                      terminator: <Op_Semi ';'>
                    )
                  ]
                  action: [
                    (C {(echo)} {(DQ ('Failed to build protoc.'))})
                    (ControlFlow token:<ControlFlow_Exit exit> arg_word:{(1)})
                  ]
                  spids: [16777215 224]
                )
              ]
              spids: [16777215 239]
            )
            (AndOr
              ops: [Op_DAmp]
              children: [
                (C {(./protoc)} 
                  {(--cpp_out) (Lit_Other '=') (Lit_VarLike 'dllexport_decl=') (LIBPROTOBUF_EXPORT) 
                    (Lit_Other ':') ($ VSub_Name '$TMP')
                  } 
                  {
                    (BracedVarSub
                      token: <VSub_Name RUNTIME_PROTO_FILES>
                      bracket_op: (WholeArray op_id:Lit_At)
                      spids: [252 257]
                    )
                  }
                )
                (C {(./protoc)} 
                  {(--cpp_out) (Lit_Other '=') (Lit_VarLike 'dllexport_decl=') (LIBPROTOC_EXPORT) 
                    (Lit_Other ':') ($ VSub_Name '$TMP')
                  } {(google/protobuf/compiler/plugin.proto)}
                )
              ]
            )
            (ForEach
              iter_name: PROTO_FILE
              iter_words: [
                {
                  (BracedVarSub
                    token: <VSub_Name RUNTIME_PROTO_FILES>
                    bracket_op: (WholeArray op_id:Lit_At)
                    spids: [282 287]
                  )
                }
              ]
              do_arg_iter: F
              body: 
                (DoGroup
                  children: [
                    (Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (LhsName name:BASE_NAME)
                          op: Equal
                          rhs: 
                            {
                              (BracedVarSub
                                token: <VSub_Name PROTO_FILE>
                                suffix_op: (StringUnary op_id:VOp1_Percent arg_word:{('.*')})
                                spids: [294 298]
                              )
                            }
                          spids: [293]
                        )
                      ]
                      spids: [293]
                    )
                    (SimpleCommand
                      words: [
                        {(diff)}
                        {(${ VSub_Name BASE_NAME) (.pb.h)}
                        {($ VSub_Name '$TMP') (/) (${ VSub_Name BASE_NAME) (.pb.h)}
                      ]
                      redirects: [(Redir op:<Redir_Great '>'> fd:16777215 arg_word:{(/dev/null)})]
                    )
                    (If
                      arms: [
                        (if_arm
                          cond: [
                            (Sentence
                              child: (C {(test)} {($ VSub_QMark '$?')} {(-ne)} {(0)})
                              terminator: <Op_Semi ';'>
                            )
                          ]
                          action: [
                            (Assignment
                              keyword: Assign_None
                              pairs: [
                                (assign_pair
                                  lhs: (LhsName name:CORE_PROTO_IS_CORRECT)
                                  op: Equal
                                  rhs: {(0)}
                                  spids: [334]
                                )
                              ]
                              spids: [334]
                            )
                          ]
                          spids: [16777215 331]
                        )
                      ]
                      spids: [16777215 338]
                    )
                    (SimpleCommand
                      words: [
                        {(diff)}
                        {(${ VSub_Name BASE_NAME) (.pb.cc)}
                        {($ VSub_Name '$TMP') (/) (${ VSub_Name BASE_NAME) (.pb.cc)}
                      ]
                      redirects: [(Redir op:<Redir_Great '>'> fd:16777215 arg_word:{(/dev/null)})]
                    )
                    (If
                      arms: [
                        (if_arm
                          cond: [
                            (Sentence
                              child: (C {(test)} {($ VSub_QMark '$?')} {(-ne)} {(0)})
                              terminator: <Op_Semi ';'>
                            )
                          ]
                          action: [
                            (Assignment
                              keyword: Assign_None
                              pairs: [
                                (assign_pair
                                  lhs: (LhsName name:CORE_PROTO_IS_CORRECT)
                                  op: Equal
                                  rhs: {(0)}
                                  spids: [374]
                                )
                              ]
                              spids: [374]
                            )
                          ]
                          spids: [16777215 371]
                        )
                      ]
                      spids: [16777215 378]
                    )
                  ]
                  spids: [290 381]
                )
              spids: [281 288]
            )
            (SimpleCommand
              words: [
                {(diff)}
                {(google/protobuf/compiler/plugin.pb.h)}
                {($ VSub_Name '$TMP') (/google/protobuf/compiler/plugin.pb.h)}
              ]
              redirects: [(Redir op:<Redir_Great '>'> fd:16777215 arg_word:{(/dev/null)})]
            )
            (If
              arms: [
                (if_arm
                  cond: [
                    (Sentence
                      child: (C {(test)} {($ VSub_QMark '$?')} {(-ne)} {(0)})
                      terminator: <Op_Semi ';'>
                    )
                  ]
                  action: [
                    (Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (LhsName name:CORE_PROTO_IS_CORRECT)
                          op: Equal
                          rhs: {(0)}
                          spids: [411]
                        )
                      ]
                      spids: [411]
                    )
                  ]
                  spids: [16777215 408]
                )
              ]
              spids: [16777215 415]
            )
            (SimpleCommand
              words: [
                {(diff)}
                {(google/protobuf/compiler/plugin.pb.cc)}
                {($ VSub_Name '$TMP') (/google/protobuf/compiler/plugin.pb.cc)}
              ]
              redirects: [(Redir op:<Redir_Great '>'> fd:16777215 arg_word:{(/dev/null)})]
            )
            (If
              arms: [
                (if_arm
                  cond: [
                    (Sentence
                      child: (C {(test)} {($ VSub_QMark '$?')} {(-ne)} {(0)})
                      terminator: <Op_Semi ';'>
                    )
                  ]
                  action: [
                    (Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (LhsName name:CORE_PROTO_IS_CORRECT)
                          op: Equal
                          rhs: {(0)}
                          spids: [444]
                        )
                      ]
                      spids: [444]
                    )
                  ]
                  spids: [16777215 441]
                )
              ]
              spids: [16777215 448]
            )
            (If
              arms: [
                (if_arm
                  cond: [
                    (Sentence
                      child: 
                        (C {(Lit_Other '[')} {($ VSub_Name '$CORE_PROTO_IS_CORRECT')} {(-ne)} {(1)} 
                          {(Lit_Other ']')}
                        )
                      terminator: <Op_Semi ';'>
                    )
                  ]
                  action: [
                    (ForEach
                      iter_name: PROTO_FILE
                      iter_words: [
                        {
                          (BracedVarSub
                            token: <VSub_Name RUNTIME_PROTO_FILES>
                            bracket_op: (WholeArray op_id:Lit_At)
                            spids: [482 487]
                          )
                        }
                      ]
                      do_arg_iter: F
                      body: 
                        (DoGroup
                          children: [
                            (Assignment
                              keyword: Assign_None
                              pairs: [
                                (assign_pair
                                  lhs: (LhsName name:BASE_NAME)
                                  op: Equal
                                  rhs: 
                                    {
                                      (BracedVarSub
                                        token: <VSub_Name PROTO_FILE>
                                        suffix_op: (StringUnary op_id:VOp1_Percent arg_word:{('.*')})
                                        spids: [494 498]
                                      )
                                    }
                                  spids: [493]
                                )
                              ]
                              spids: [493]
                            )
                            (C {(mv)} {($ VSub_Name '$TMP') (/) (${ VSub_Name BASE_NAME) (.pb.h)} 
                              {(${ VSub_Name BASE_NAME) (.pb.h)}
                            )
                            (C {(mv)} {($ VSub_Name '$TMP') (/) (${ VSub_Name BASE_NAME) (.pb.cc)} 
                              {(${ VSub_Name BASE_NAME) (.pb.cc)}
                            )
                          ]
                          spids: [490 531]
                        )
                      spids: [481 488]
                    )
                    (C {(mv)} 
                      {($ VSub_Name '$TMP') (/google/protobuf/compiler/plugin.pb.) (Lit_Other '*')} {(google/protobuf/compiler/)}
                    )
                  ]
                  spids: [16777215 473]
                )
              ]
              spids: [16777215 543]
            )
            (Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (LhsName name:PROCESS_ROUND)
                  op: Equal
                  rhs: 
                    {
                      (ArithSubPart
                        anode: 
                          (ArithBinary
                            op_id: Arith_Plus
                            left: (ArithVarRef name:PROCESS_ROUND)
                            right: (ArithWord w:{(Lit_Digits 1)})
                          )
                        spids: [548 555]
                      )
                    }
                  spids: [547]
                )
              ]
              spids: [547]
            )
          ]
          spids: [190 557]
        )
    )
    (C {(cd)} {(..)})
    (If
      arms: [
        (if_arm
          cond: [
            (Sentence
              child: (C {(test)} {(-x)} {(objectivec/generate_well_known_types.sh)})
              terminator: <Op_Semi ';'>
            )
          ]
          action: [
            (C {(echo)} {(DQ ('Generating messages for objc.'))})
            (C {(objectivec/generate_well_known_types.sh)} {($ VSub_At '$@')})
          ]
          spids: [16777215 573]
        )
      ]
      spids: [16777215 587]
    )
    (If
      arms: [
        (if_arm
          cond: [
            (Sentence
              child: (C {(test)} {(-x)} {(csharp/generate_protos.sh)})
              terminator: <Op_Semi ';'>
            )
          ]
          action: [
            (C {(echo)} {(DQ ('Generating messages for C#.'))})
            (C {(csharp/generate_protos.sh)} {($ VSub_At '$@')})
          ]
          spids: [16777215 599]
        )
      ]
      spids: [16777215 613]
    )
  ]
)