(CommandList
  children: [
    (Assignment
      keyword: Assign_None
      pairs: [
        (assign_pair
          lhs: (LhsName name:file)
          op: Equal
          rhs: {(DQ ($ VSub_Number "$1"))}
          spids: [76]
        )
      ]
      spids: [76]
    )
    (Assignment
      keyword: Assign_None
      pairs: [
        (assign_pair
          lhs: (LhsName name:title)
          op: Equal
          rhs: {(DQ ($ VSub_Number "$2"))}
          spids: [81]
        )
      ]
      spids: [81]
    )
    (C {(.)} {(functions.sh)})
    (If
      arms: [
        (if_arm
          cond: [
            (SimpleCommand
              words: [{(grep)} {(-Pq)} {(SQ <"\\x00">)}]
              redirects: [(Redir op_id:Redir_Less fd:-1 arg_word:{($ VSub_Name "$file")} spids:[102])]
            )
          ]
          action: [
            (C {(print_warning)} {(Console)} {(output)} {(contains)} {(nul)} {(bytes) (Lit_Comma ",")} 
              {(old)} {(qemu)} {(still)} {(running) (Lit_Other "?")}
            )
          ]
          spids: [-1 106]
        )
      ]
      spids: [-1 131]
    )
    (Pipeline
      children: [
        (SimpleCommand
          words: [
            {(egrep)}
            {
              (SQ 
                <
"Badness|WARNING:|Warn|BUG|===========|Call Trace:|Oops:|detected stalls on CPUs/tasks:|self-detected stall on CPU|Stall ended before state dump start|\\?\\?\\? Writer stall state|rcu_.*kthread starved for"
                >
              )
            }
          ]
          redirects: [(Redir op_id:Redir_Less fd:-1 arg_word:{($ VSub_Name "$file")} spids:[139])]
        )
        (C {(grep)} {(-v)} {(SQ <"ODEBUG: ">)})
        (SimpleCommand
          words: [{(grep)} {(-v)} {(SQ <"Warning: unable to open an initial console">)}]
          redirects: [
            (Redir
              op_id: Redir_Great
              fd: -1
              arg_word: {($ VSub_Number "$1") (.diags)}
              spids: [163]
            )
          ]
        )
      ]
      negated: False
    )
    (If
      arms: [
        (if_arm
          cond: [(C {(test)} {(-s)} {($ VSub_Number "$1") (.diags)})]
          action: [
            (C {(print_warning)} {(Assertion)} {(failure)} {(KW_In in)} {($ VSub_Name "$file")} 
              {($ VSub_Name "$title")}
            )
            (Assignment
              keyword: Assign_None
              pairs: [(assign_pair lhs:(LhsName name:summary) op:Equal rhs:{(DQ )} spids:[197])]
              spids: [197]
            )
            (Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (LhsName name:n_badness)
                  op: Equal
                  rhs: 
                    {
                      (CommandSubPart
                        command_list: 
                          (CommandList
                            children: [(C {(grep)} {(-c)} {(Badness)} {($ VSub_Number "$1")})]
                          )
                        left_token: <Left_Backtick "`">
                        spids: [203 211]
                      )
                    }
                  spids: [202]
                )
              ]
              spids: [202]
            )
            (If
              arms: [
                (if_arm
                  cond: [(C {(test)} {(DQ ($ VSub_Name "$n_badness"))} {(-ne)} {(0)})]
                  action: [
                    (Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (LhsName name:summary)
                          op: Equal
                          rhs: 
                            {
                              (DQ ($ VSub_Name "$summary") ("  Badness: ") ($ VSub_Name "$n_badness"))
                            }
                          spids: [230]
                        )
                      ]
                      spids: [230]
                    )
                  ]
                  spids: [-1 227]
                )
              ]
              spids: [-1 238]
            )
            (Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (LhsName name:n_warn)
                  op: Equal
                  rhs: 
                    {
                      (CommandSubPart
                        command_list: 
                          (CommandList
                            children: [
                              (Pipeline
                                children: [
                                  (C {(grep)} {(-v)} 
                                    {(SQ <"Warning: unable to open an initial console">)} {($ VSub_Number "$1")}
                                  )
                                  (C {(egrep)} {(-c)} {(SQ <"WARNING:|Warn">)})
                                ]
                                negated: False
                              )
                            ]
                          )
                        left_token: <Left_Backtick "`">
                        spids: [242 262]
                      )
                    }
                  spids: [241]
                )
              ]
              spids: [241]
            )
            (If
              arms: [
                (if_arm
                  cond: [(C {(test)} {(DQ ($ VSub_Name "$n_warn"))} {(-ne)} {(0)})]
                  action: [
                    (Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (LhsName name:summary)
                          op: Equal
                          rhs: {(DQ ($ VSub_Name "$summary") ("  Warnings: ") ($ VSub_Name "$n_warn"))}
                          spids: [281]
                        )
                      ]
                      spids: [281]
                    )
                  ]
                  spids: [-1 278]
                )
              ]
              spids: [-1 289]
            )
            (Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (LhsName name:n_bugs)
                  op: Equal
                  rhs: 
                    {
                      (CommandSubPart
                        command_list: 
                          (CommandList
                            children: [(C {(egrep)} {(-c)} {(SQ <"BUG|Oops:">)} {($ VSub_Number "$1")})]
                          )
                        left_token: <Left_Backtick "`">
                        spids: [293 303]
                      )
                    }
                  spids: [292]
                )
              ]
              spids: [292]
            )
            (If
              arms: [
                (if_arm
                  cond: [(C {(test)} {(DQ ($ VSub_Name "$n_bugs"))} {(-ne)} {(0)})]
                  action: [
                    (Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (LhsName name:summary)
                          op: Equal
                          rhs: {(DQ ($ VSub_Name "$summary") ("  Bugs: ") ($ VSub_Name "$n_bugs"))}
                          spids: [322]
                        )
                      ]
                      spids: [322]
                    )
                  ]
                  spids: [-1 319]
                )
              ]
              spids: [-1 330]
            )
            (Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (LhsName name:n_calltrace)
                  op: Equal
                  rhs: 
                    {
                      (CommandSubPart
                        command_list: 
                          (CommandList
                            children: [
                              (C {(grep)} {(-c)} {(SQ <"Call Trace:">)} {($ VSub_Number "$1")})
                            ]
                          )
                        left_token: <Left_Backtick "`">
                        spids: [334 344]
                      )
                    }
                  spids: [333]
                )
              ]
              spids: [333]
            )
            (If
              arms: [
                (if_arm
                  cond: [(C {(test)} {(DQ ($ VSub_Name "$n_calltrace"))} {(-ne)} {(0)})]
                  action: [
                    (Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (LhsName name:summary)
                          op: Equal
                          rhs: 
                            {
                              (DQ ($ VSub_Name "$summary") ("  Call Traces: ") 
                                ($ VSub_Name "$n_calltrace")
                              )
                            }
                          spids: [363]
                        )
                      ]
                      spids: [363]
                    )
                  ]
                  spids: [-1 360]
                )
              ]
              spids: [-1 371]
            )
            (Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (LhsName name:n_lockdep)
                  op: Equal
                  rhs: 
                    {
                      (CommandSubPart
                        command_list: 
                          (CommandList
                            children: [
                              (C {(grep)} {(-c)} 
                                {(Lit_Other "=") (Lit_Other "=") (Lit_Other "=") (Lit_Other "=") 
                                  (Lit_Other "=") (Lit_Other "=") (Lit_Other "=") (Lit_Other "=") (Lit_Other "=") (Lit_Other "=") (Lit_Other "=")
                                } {($ VSub_Number "$1")}
                              )
                            ]
                          )
                        left_token: <Left_Backtick "`">
                        spids: [375 393]
                      )
                    }
                  spids: [374]
                )
              ]
              spids: [374]
            )
            (If
              arms: [
                (if_arm
                  cond: [(C {(test)} {(DQ ($ VSub_Name "$n_badness"))} {(-ne)} {(0)})]
                  action: [
                    (Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (LhsName name:summary)
                          op: Equal
                          rhs: 
                            {
                              (DQ ($ VSub_Name "$summary") ("  lockdep: ") ($ VSub_Name "$n_badness"))
                            }
                          spids: [412]
                        )
                      ]
                      spids: [412]
                    )
                  ]
                  spids: [-1 409]
                )
              ]
              spids: [-1 420]
            )
            (Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (LhsName name:n_stalls)
                  op: Equal
                  rhs: 
                    {
                      (CommandSubPart
                        command_list: 
                          (CommandList
                            children: [
                              (C {(egrep)} {(-c)} 
                                {
                                  (SQ 
                                    <
"detected stalls on CPUs/tasks:|self-detected stall on CPU|Stall ended before state dump start|\\?\\?\\? Writer stall state"
                                    >
                                  )
                                } {($ VSub_Number "$1")}
                              )
                            ]
                          )
                        left_token: <Left_Backtick "`">
                        spids: [424 434]
                      )
                    }
                  spids: [423]
                )
              ]
              spids: [423]
            )
            (If
              arms: [
                (if_arm
                  cond: [(C {(test)} {(DQ ($ VSub_Name "$n_stalls"))} {(-ne)} {(0)})]
                  action: [
                    (Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (LhsName name:summary)
                          op: Equal
                          rhs: {(DQ ($ VSub_Name "$summary") ("  Stalls: ") ($ VSub_Name "$n_stalls"))}
                          spids: [453]
                        )
                      ]
                      spids: [453]
                    )
                  ]
                  spids: [-1 450]
                )
              ]
              spids: [-1 461]
            )
            (Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (LhsName name:n_starves)
                  op: Equal
                  rhs: 
                    {
                      (CommandSubPart
                        command_list: 
                          (CommandList
                            children: [
                              (C {(grep)} {(-c)} {(SQ <"rcu_.*kthread starved for">)} 
                                {($ VSub_Number "$1")}
                              )
                            ]
                          )
                        left_token: <Left_Backtick "`">
                        spids: [465 475]
                      )
                    }
                  spids: [464]
                )
              ]
              spids: [464]
            )
            (If
              arms: [
                (if_arm
                  cond: [(C {(test)} {(DQ ($ VSub_Name "$n_starves"))} {(-ne)} {(0)})]
                  action: [
                    (Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (LhsName name:summary)
                          op: Equal
                          rhs: 
                            {
                              (DQ ($ VSub_Name "$summary") ("  Starves: ") ($ VSub_Name "$n_starves"))
                            }
                          spids: [494]
                        )
                      ]
                      spids: [494]
                    )
                  ]
                  spids: [-1 491]
                )
              ]
              spids: [-1 502]
            )
            (C {(print_warning)} {(Summary) (Lit_Other ":")} {($ VSub_Name "$summary")})
          ]
          spids: [-1 177]
        )
      ]
      else_action: [(C {(rm)} {($ VSub_Number "$1") (.diags)})]
      spids: [512 520]
    )
  ]
)