(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 output 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: [75 92]
                )
              ]
            )
          ]
        )
    )
    (C {<check>} {<plugin_test_6.err>} {(DQ <'API version:'>)})
    (C {<check>} {<plugin_test_6.err>} {(DQ <'gold version:'>)})
    (C {<check>} {<plugin_test_6.err>} {(DQ <'plugin_common_test_1.o.syms: claim file hook called'>)})
    (C {<check>} {<plugin_test_6.err>} {(DQ <'plugin_common_test_2.o.syms: claim file hook called'>)})
    (C {<check>} {<plugin_test_6.err>} {(DQ <'plugin_common_test_1.o.syms: c1: PREVAILING_DEF_IRONLY'>)})
    (C {<check>} {<plugin_test_6.err>} {(DQ <'plugin_common_test_1.o.syms: c2: PREVAILING_DEF_IRONLY'>)})
    (C {<check>} {<plugin_test_6.err>} {(DQ <'plugin_common_test_1.o.syms: c3: RESOLVED_IR'>)})
    (C {<check>} {<plugin_test_6.err>} {(DQ <'plugin_common_test_1.o.syms: c4: RESOLVED_IR'>)})
    (C {<check>} {<plugin_test_6.err>} {(DQ <'plugin_common_test_1.o.syms: c5: PREVAILING_DEF_IRONLY'>)})
    (C {<check>} {<plugin_test_6.err>} {(DQ <'plugin_common_test_2.o.syms: c1: RESOLVED_IR'>)})
    (C {<check>} {<plugin_test_6.err>} {(DQ <'plugin_common_test_2.o.syms: c2: RESOLVED_IR'>)})
    (C {<check>} {<plugin_test_6.err>} {(DQ <'plugin_common_test_2.o.syms: c3: PREVAILING_DEF_IRONLY'>)})
    (C {<check>} {<plugin_test_6.err>} {(DQ <'plugin_common_test_2.o.syms: c4: PREVAILING_DEF_IRONLY'>)})
    (C {<check>} {<plugin_test_6.err>} {(DQ <'plugin_common_test_2.o.syms: c5: RESOLVED_IR'>)})
    (C {<check>} {<plugin_test_6.err>} {(DQ <'cleanup hook called'>)})
    (command.ControlFlow token:<Id.ControlFlow_Exit exit> arg_word:{<0>})
  ]
)