(command.CommandList
  children: [
    (command.ShFunction
      name: check
      body: 
        (BraceGroup
          children: [
            (command.If
              arms: [
                (if_arm
                  cond: 
                    (condition.Shell
                      commands: [
                        (command.Pipeline
                          children: [
                            (C {<grep>} {<-q>} {(DQ ($ Id.VSub_Number '$2'))} 
                              {(DQ ($ Id.VSub_Number '$1'))}
                            )
                          ]
                          negated: T
                        )
                      ]
                    )
                  action: [
                    (C {<echo>} 
                      {(DQ <'Did not find expected section in '> ($ Id.VSub_Number '$1') <':'>)}
                    )
                    (C {<echo>} {(DQ <'   '> ($ Id.VSub_Number '$2'))})
                    (C {<echo>} {(DQ )})
                    (C {<echo>} {(DQ <'Actual output below:'>)})
                    (C {<cat>} {(DQ ($ Id.VSub_Number '$1'))})
                    (command.ControlFlow
                      token: <Id.ControlFlow_Exit exit>
                      arg_word: {<1>}
                    )
                  ]
                  spids: [65 82]
                )
              ]
            )
          ]
        )
    )
    (C {<check>} {<script_test_10.stdout>} 
      {(DQ <'.*'> <Id.Lit_BadBackslash '\\'> <'[ 1'> <Id.Lit_BadBackslash '\\'> <'] .text'>)}
    )
    (C {<check>} {<script_test_10.stdout>} 
      {(DQ <'.*'> <Id.Lit_BadBackslash '\\'> <'[ 2'> <Id.Lit_BadBackslash '\\'> <'] .sec0'>)}
    )
    (C {<check>} {<script_test_10.stdout>} 
      {(DQ <'.*'> <Id.Lit_BadBackslash '\\'> <'[ 3'> <Id.Lit_BadBackslash '\\'> <'] .sec1'>)}
    )
    (C {<check>} {<script_test_10.stdout>} 
      {(DQ <'.*'> <Id.Lit_BadBackslash '\\'> <'[ 4'> <Id.Lit_BadBackslash '\\'> <'] .sec2'>)}
    )
    (C {<check>} {<script_test_10.stdout>} 
      {(DQ <'.*'> <Id.Lit_BadBackslash '\\'> <'[ 5'> <Id.Lit_BadBackslash '\\'> <'] .secz'>)}
    )
    (C {<check>} {<script_test_10.stdout>} 
      {(DQ <'.*'> <Id.Lit_BadBackslash '\\'> <'[ 6'> <Id.Lit_BadBackslash '\\'> <'] .sec3'>)}
    )
    (C {<check>} {<script_test_10.stdout>} 
      {(DQ <'.*'> <Id.Lit_BadBackslash '\\'> <'[ 7'> <Id.Lit_BadBackslash '\\'> <'] .data'>)}
    )
    (C {<check>} {<script_test_10.stdout>} {(DQ <'.* .bss'>)})
  ]
)