(command.CommandList
  children: [
    (command.ForEach
      iter_name: e
      iter_words: [{<le>} {<be>}]
      do_arg_iter: F
      body: 
        (command.DoGroup
          children: [
            (command.ForEach
              iter_name: v
              iter_words: [{<1>} {<2>}]
              do_arg_iter: F
              body: 
                (command.DoGroup
                  children: [
                    (C {<test_case>} 
                      {<corrupt_list_> (${ Id.VSub_Name e) <Id.Lit_Underscore _> (${ Id.VSub_Name v)} {<corrupt_list>} {(DQ <'recovery of corrupted free list in'>)} {(${ Id.VSub_Name e)} 
                      {(${ Id.VSub_Name v)}
                    )
                    (C {<test_case>} 
                      {<expand1_list_> (${ Id.VSub_Name e) <Id.Lit_Underscore _> (${ Id.VSub_Name v)} {<expand_list>} {(DQ <'allocation of direct block in'>)} {<40>} {(${ Id.VSub_Name e)} 
                      {(${ Id.VSub_Name v)}
                    )
                    (C {<test_case>} 
                      {<expand2_list_> (${ Id.VSub_Name e) <Id.Lit_Underscore _> (${ Id.VSub_Name v)} {<expand_list>} {(DQ <'allocation of indirect block in'>)} {<1000>} {(${ Id.VSub_Name e)} 
                      {(${ Id.VSub_Name v)}
                    )
                  ]
                )
            )
          ]
        )
    )
    (command.ShFunction
      name: corrupt_list
      body: 
        (BraceGroup
          children: [
            (C {<create_with_quotas>} {($ Id.VSub_Star '$*')})
            (C {<local>} 
              {<Id.Lit_VarLike 'blkno='> 
                (command_sub
                  left_token: <Id.Left_DollarParen '$('>
                  child: 
                    (command.Pipeline
                      children: [
                        (C {<printf>} 
                          {
                            (DQ <'inode 3'> <Id.Lit_BadBackslash '\\'> <nblks> 
                              <Id.Lit_BadBackslash '\\'> <n>
                            )
                          }
                        )
                        (C {<'/sbin/fsdb'>} {<-nF>} {<-f>} {(${ Id.VSub_Name IMG)})
                        (C {<awk>} {(SQ <'$1 == "0:" {print $2}'>)})
                      ]
                      negated: F
                    )
                )
              }
            )
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name name:blkno)
                  op: assign_op.Equal
                  rhs: 
                    {
                      (word_part.ArithSub
                        anode: 
                          (arith_expr.Binary
                            op_id: Id.Arith_Plus
                            left: 
                              (arith_expr.Binary
                                op_id: Id.Arith_Star
                                left: {($ Id.VSub_DollarName '$blkno')}
                                right: {<Id.Lit_Digits 512>}
                              )
                            right: {<Id.Lit_Digits 104>}
                          )
                      )
                    }
                  spids: [248]
                )
              ]
            )
            (C {<atf_check>} {<-o>} {<ignore>} {<-e>} {<ignore>} {<dd>} 
              {<Id.Lit_VarLike 'if='> <'/dev/zero'>} {<Id.Lit_VarLike 'of='> (${ Id.VSub_Name IMG)} {<Id.Lit_VarLike 'bs='> <1>} 
              {<Id.Lit_VarLike 'count='> <8>} {<Id.Lit_VarLike 'seek='> (${ Id.VSub_Name blkno)} {<Id.Lit_VarLike 'conv='> <notrunc>}
            )
            (C {<atf_check>} {<-s>} {<Id.ControlFlow_Exit exit> <Id.Lit_Colon ':'> <0>} {<-o>} 
              {
                (DQ <'match:QUOTA ENTRY NOT IN LIST '> <Id.Lit_BadBackslash '\\'> <'(FIXED'> 
                  <Id.Lit_BadBackslash '\\'> <')'>
                )
              } {<fsck_ffs>} {<-fp>} {<-F>} {(${ Id.VSub_Name IMG)}
            )
            (C {<atf_check>} {<-s>} {<Id.ControlFlow_Exit exit> <Id.Lit_Colon ':'> <0>} {<-o>} 
              {(DQ <'match:3 files'>)} {<fsck_ffs>} {<-nf>} {<-F>} {(${ Id.VSub_Name IMG)}
            )
          ]
        )
    )
    (command.ShFunction
      name: expand_list
      body: 
        (BraceGroup
          children: [
            (command.Sentence
              child: (C {<local>} {<Id.Lit_VarLike 'nuid='> ($ Id.VSub_Number '$1')})
              terminator: <Id.Op_Semi _>
            )
            (C {<shift>})
            (C {<local>} 
              {<Id.Lit_VarLike 'expected_files='> 
                (word_part.ArithSub
                  anode: 
                    (arith_expr.Binary
                      op_id: Id.Arith_Plus
                      left: <Id.Lit_ArithVarLike nuid>
                      right: {<Id.Lit_Digits 2>}
                    )
                )
              }
            )
            (command.Simple
              words: [{<echo>} {(DQ <'/set uid=0 gid=0'>)}]
              redirects: [(redir op:<Id.Redir_Great '>'> loc:(redir_loc.Fd fd:1) arg:{<spec>})]
              do_fork: T
            )
            (command.Simple
              words: [{<echo>} {(DQ <'.\t\ttype=dir  mode=0755'>)}]
              redirects: [(redir op:<Id.Redir_DGreat '>>'> loc:(redir_loc.Fd fd:1) arg:{<spec>})]
              do_fork: T
            )
            (C {<mkdir>} {(${ Id.VSub_Name DIR)})
            (command.ForEach
              iter_name: i
              iter_words: [
                {
                  (command_sub
                    left_token: <Id.Left_DollarParen '$('>
                    child: (C {<seq>} {(${ Id.VSub_Name nuid)})
                  )
                }
              ]
              do_arg_iter: F
              body: 
                (command.DoGroup
                  children: [
                    (C {<touch>} {(${ Id.VSub_Name DIR) <'/f'> (${ Id.VSub_Name i)})
                    (command.Simple
                      words: [
                        {<echo>}
                        {
                          (DQ <'./f'> ($ Id.VSub_DollarName '$i') <'\ttype=file mode=0600 uid='> 
                            ($ Id.VSub_DollarName '$i') <' gid='> ($ Id.VSub_DollarName '$i')
                          )
                        }
                      ]
                      redirects: [
                        (redir
                          op: <Id.Redir_DGreat '>>'>
                          loc: (redir_loc.Fd fd:1)
                          arg: {<spec>}
                        )
                      ]
                      do_fork: T
                    )
                  ]
                )
            )
            (C {<atf_check>} {<-o>} {<ignore>} {<-e>} {<ignore>} {<makefs>} {<-B>} {($ Id.VSub_Number '$1')} 
              {<-o>} {<Id.Lit_VarLike 'version='> ($ Id.VSub_Number '$2')} {<-F>} {<spec>} {<-s>} {<4000b>} 
              {(${ Id.VSub_Name IMG)} {(${ Id.VSub_Name DIR)}
            )
            (C {<atf_check>} {<-o>} {<ignore>} {<-e>} {<ignore>} {<tunefs>} {<-q>} {<user>} {<-F>} 
              {(${ Id.VSub_Name IMG)}
            )
            (C {<atf_check>} {<-s>} {<Id.ControlFlow_Exit exit> <Id.Lit_Colon ':'> <0>} {<-o>} 
              {(SQ <'match:NO USER QUOTA INODE \\(CREATED\\)'>)} {<-o>} {(SQ <'match:USER QUOTA MISMATCH FOR ID 10: 0/0 SHOULD BE 0/1'>)} {<fsck_ffs>} {<-p>} {<-F>} 
              {(${ Id.VSub_Name IMG)}
            )
            (C {<atf_check>} {<-s>} {<Id.ControlFlow_Exit exit> <Id.Lit_Colon ':'> <0>} {<-o>} 
              {(DQ <'match:'> (${ Id.VSub_Name expected_files) <' files'>)} {<fsck_ffs>} {<-nf>} {<-F>} {(${ Id.VSub_Name IMG)}
            )
          ]
        )
    )
  ]
)