(command.CommandList
  children: [
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:REFERENCE)
          op: assign_op.Equal
          rhs: {($ Id.VSub_DollarName '$HOME') <'/persist/firmware.bin'>}
          spids: [16]
        )
      ]
    )
    (command.If
      arms: [
        (if_arm
          cond: [
            (command.Sentence
              child: 
                (C {<Id.Lit_LBracket '['>} {<-f>} {($ Id.VSub_DollarName '$REFERENCE')} 
                  {<Id.Lit_RBracket ']'>}
                )
              terminator: <Id.Op_Semi _>
            )
          ]
          action: [
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name name:size_old)
                  op: assign_op.Equal
                  rhs: 
                    {
                      (command_sub
                        left_token: <Id.Left_DollarParen '$('>
                        child: 
                          (C {<stat>} {<-c> <Id.Lit_Other '%'> <s>} 
                            {($ Id.VSub_DollarName '$REFERENCE')}
                          )
                      )
                    }
                  spids: [41]
                )
              ]
            )
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name name:size_new)
                  op: assign_op.Equal
                  rhs: 
                    {
                      (command_sub
                        left_token: <Id.Left_DollarParen '$('>
                        child: 
                          (C {<stat>} {<-c> <Id.Lit_Other '%'> <s>} {<'minimal/build/firmware.bin'>})
                      )
                    }
                  spids: [53]
                )
              ]
            )
            (C {<echo>} 
              {
                (DQ <'Old size: '> ($ Id.VSub_DollarName '$size_old') <' new size: '> 
                  ($ Id.VSub_DollarName '$size_new')
                )
              }
            )
            (command.If
              arms: [
                (if_arm
                  cond: [
                    (command.Sentence
                      child: 
                        (C {<Id.Lit_LBracket '['>} {($ Id.VSub_DollarName '$size_new')} {<-gt>} 
                          {($ Id.VSub_DollarName '$size_old')} {<Id.Lit_RBracket ']'>}
                        )
                      terminator: <Id.Op_Semi _>
                    )
                  ]
                  action: [
                    (C {<echo>} {(DQ <'Validation failure: Core code size increased'>)})
                    (command.If
                      arms: [
                        (if_arm
                          cond: [
                            (command.Sentence
                              child: 
                                (C {<Id.Lit_LBracket '['>} 
                                  {(DQ ($ Id.VSub_DollarName '$TRAVIS_PULL_REQUEST'))} {<Id.KW_Bang '!'> <Id.Lit_Equals '='>} {(DQ <false>)} {<Id.Lit_RBracket ']'>}
                                )
                              terminator: <Id.Op_Semi _>
                            )
                          ]
                          action: [
                            (command.ControlFlow
                              token: <Id.ControlFlow_Exit exit>
                              arg_word: {<1>}
                            )
                          ]
                          spids: [98 116]
                        )
                      ]
                    )
                  ]
                  spids: [75 88]
                )
              ]
            )
          ]
          spids: [27 38]
        )
      ]
      else_action: [
        (C {<echo>} {(DQ <'Warning: reference file doesn\'t exist, code size check didn\'t run'>)})
      ]
    )
  ]
)