(command.CommandList
  children: [
    (C {<set>} {<-e>})
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:TMP)
          op: assign_op.Equal
          rhs: {<'/tmp/mtree.'> ($ Id.VSub_Dollar '$$')}
          spids: [33]
        )
      ]
    )
    (C {<rm>} {<-rf>} {(${ Id.VSub_Name TMP)})
    (C {<mkdir>} {<-p>} {(${ Id.VSub_Name TMP)} {(${ Id.VSub_Name TMP) <'/mr'>} 
      {(${ Id.VSub_Name TMP) <'/mt'>}
    )
    (C {<mkdir>} {(${ Id.VSub_Name TMP) <'/mr/a'>})
    (C {<mkdir>} {(${ Id.VSub_Name TMP) <'/mr/b'>})
    (C {<mkdir>} {(${ Id.VSub_Name TMP) <'/mt/a'>})
    (C {<mkdir>} {(${ Id.VSub_Name TMP) <'/mt/b'>})
    (C {<touch>} {(${ Id.VSub_Name TMP) <'/mt/z'>})
    (command.Simple
      words: [{<mtree>} {<-c>} {<-p>} {(${ Id.VSub_Name TMP) <'/mr'>}]
      redirects: [
        (redir
          op: <Id.Redir_Great '>'>
          loc: (redir_loc.Fd fd:1)
          arg: {(${ Id.VSub_Name TMP) <'/_r'>}
        )
      ]
      do_fork: T
    )
    (command.Simple
      words: [{<mtree>} {<-c>} {<-p>} {(${ Id.VSub_Name TMP) <'/mt'>}]
      redirects: [
        (redir
          op: <Id.Redir_Great '>'>
          loc: (redir_loc.Fd fd:1)
          arg: {(${ Id.VSub_Name TMP) <'/_t'>}
        )
      ]
      do_fork: T
    )
    (command.If
      arms: [
        (if_arm
          cond: 
            (condition.Shell
              commands: [
                (command.Sentence
                  child: 
                    (command.Simple
                      words: [
                        {<mtree>}
                        {<-f>}
                        {(${ Id.VSub_Name TMP) <'/_r'>}
                        {<-f>}
                        {(${ Id.VSub_Name TMP) <'/_t'>}
                      ]
                      redirects: [
                        (redir
                          op: <Id.Redir_Great '>'>
                          loc: (redir_loc.Fd fd:1)
                          arg: {(${ Id.VSub_Name TMP) <'/_'>}
                        )
                      ]
                      do_fork: T
                    )
                  terminator: <Id.Op_Semi _>
                )
              ]
            )
          action: [
            (command.Simple
              words: [{<echo>} {(DQ <'ERROR wrong exit on difference'>)}]
              redirects: [(redir op:<Id.Redir_GreatAnd '1>&'> loc:(redir_loc.Fd fd:1) arg:{<2>})]
              do_fork: T
            )
            (command.ControlFlow token:<Id.ControlFlow_Exit exit> arg_word:{<1>})
          ]
          spids: [138 165]
        )
      ]
    )
    (command.If
      arms: [
        (if_arm
          cond: 
            (condition.Shell
              commands: [
                (command.Sentence
                  child: 
                    (C {<Id.Lit_LBracket '['>} 
                      {
                        (command_sub
                          left_token: <Id.Left_Backtick '`'>
                          child: 
                            (command.Simple
                              words: [{<wc>} {<-l>}]
                              redirects: [
                                (redir
                                  op: <Id.Redir_Less '<'>
                                  loc: (redir_loc.Fd fd:0)
                                  arg: {(${ Id.VSub_Name TMP) <'/_'>}
                                )
                              ]
                              do_fork: T
                            )
                        )
                      } {<-ne>} {<1>} {<Id.Lit_RBracket ']'>}
                    )
                  terminator: <Id.Op_Semi _>
                )
              ]
            )
          action: [
            (command.Simple
              words: [{<echo>} {(DQ <'ERROR spec/spec compare generated wrong output'>)}]
              redirects: [(redir op:<Id.Redir_GreatAnd '1>&'> loc:(redir_loc.Fd fd:1) arg:{<2>})]
              do_fork: T
            )
            (C {<rm>} {<-rf>} {(${ Id.VSub_Name TMP)})
            (command.ControlFlow token:<Id.ControlFlow_Exit exit> arg_word:{<1>})
          ]
          spids: [185 212]
        )
      ]
    )
    (command.If
      arms: [
        (if_arm
          cond: 
            (condition.Shell
              commands: [
                (command.Sentence
                  child: 
                    (command.Simple
                      words: [
                        {<mtree>}
                        {<-f>}
                        {(${ Id.VSub_Name TMP) <'/_t'>}
                        {<-f>}
                        {(${ Id.VSub_Name TMP) <'/_r'>}
                      ]
                      redirects: [
                        (redir
                          op: <Id.Redir_Great '>'>
                          loc: (redir_loc.Fd fd:1)
                          arg: {(${ Id.VSub_Name TMP) <'/_'>}
                        )
                      ]
                      do_fork: T
                    )
                  terminator: <Id.Op_Semi _>
                )
              ]
            )
          action: [
            (command.Simple
              words: [{<echo>} {(DQ <'ERROR wrong exit on difference'>)}]
              redirects: [(redir op:<Id.Redir_GreatAnd '1>&'> loc:(redir_loc.Fd fd:1) arg:{<2>})]
              do_fork: T
            )
            (command.ControlFlow token:<Id.ControlFlow_Exit exit> arg_word:{<1>})
          ]
          spids: [241 268]
        )
      ]
    )
    (command.If
      arms: [
        (if_arm
          cond: 
            (condition.Shell
              commands: [
                (command.Sentence
                  child: 
                    (C {<Id.Lit_LBracket '['>} 
                      {
                        (command_sub
                          left_token: <Id.Left_Backtick '`'>
                          child: 
                            (command.Simple
                              words: [{<wc>} {<-l>}]
                              redirects: [
                                (redir
                                  op: <Id.Redir_Less '<'>
                                  loc: (redir_loc.Fd fd:0)
                                  arg: {(${ Id.VSub_Name TMP) <'/_'>}
                                )
                              ]
                              do_fork: T
                            )
                        )
                      } {<-ne>} {<1>} {<Id.Lit_RBracket ']'>}
                    )
                  terminator: <Id.Op_Semi _>
                )
              ]
            )
          action: [
            (command.Simple
              words: [{<echo>} {(DQ <'ERROR spec/spec compare generated wrong output'>)}]
              redirects: [(redir op:<Id.Redir_GreatAnd '1>&'> loc:(redir_loc.Fd fd:1) arg:{<2>})]
              do_fork: T
            )
            (C {<rm>} {<-rf>} {(${ Id.VSub_Name TMP)})
            (command.ControlFlow token:<Id.ControlFlow_Exit exit> arg_word:{<1>})
          ]
          spids: [288 315]
        )
      ]
    )
    (C {<rm>} {<-rf>} {(${ Id.VSub_Name TMP)})
    (command.ControlFlow token:<Id.ControlFlow_Exit exit> arg_word:{<0>})
  ]
)