(command.CommandList
  children: [
    (command.CommandList
      children: [
        (command.Sentence
          child: 
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'opt_count='> name:opt_count)
                  op: assign_op.Equal
                  rhs: {<0>}
                  spids: [163]
                )
              ]
              redirects: []
            )
          terminator: <Id.Op_Semi _>
        )
        (command.Sentence
          child: 
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'opt_pid='> name:opt_pid)
                  op: assign_op.Equal
                  rhs: {<0>}
                  spids: [167]
                )
              ]
              redirects: []
            )
          terminator: <Id.Op_Semi _>
        )
        (command.Sentence
          child: 
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'opt_verbose='> name:opt_verbose)
                  op: assign_op.Equal
                  rhs: {<0>}
                  spids: [171]
                )
              ]
              redirects: []
            )
          terminator: <Id.Op_Semi _>
        )
        (command.Sentence
          child: 
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'opt_cmd='> name:opt_cmd)
                  op: assign_op.Equal
                  rhs: {<0>}
                  spids: [175]
                )
              ]
              redirects: []
            )
          terminator: <Id.Op_Semi _>
        )
        (command.Sentence
          child: 
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'opt_duration='> name:opt_duration)
                  op: assign_op.Equal
                  rhs: {<0>}
                  spids: [179]
                )
              ]
              redirects: []
            )
          terminator: <Id.Op_Semi _>
        )
        (command.ShAssignment
          pairs: [
            (assign_pair
              lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'opt_tail='> name:opt_tail)
              op: assign_op.Equal
              rhs: {<0>}
              spids: [183]
            )
          ]
          redirects: []
        )
      ]
    )
    (command.CommandList
      children: [
        (command.Sentence
          child: 
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'tnum='> name:tnum)
                  op: assign_op.Equal
                  rhs: (rhs_word.Empty)
                  spids: [186]
                )
              ]
              redirects: []
            )
          terminator: <Id.Op_Semi _>
        )
        (command.Sentence
          child: 
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'pid='> name:pid)
                  op: assign_op.Equal
                  rhs: (rhs_word.Empty)
                  spids: [189]
                )
              ]
              redirects: []
            )
          terminator: <Id.Op_Semi _>
        )
        (command.Sentence
          child: 
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'duration='> name:duration)
                  op: assign_op.Equal
                  rhs: (rhs_word.Empty)
                  spids: [192]
                )
              ]
              redirects: []
            )
          terminator: <Id.Op_Semi _>
        )
        (command.Sentence
          child: 
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'cmd='> name:cmd)
                  op: assign_op.Equal
                  rhs: (rhs_word.Empty)
                  spids: [195]
                )
              ]
              redirects: []
            )
          terminator: <Id.Op_Semi _>
        )
        (command.Sentence
          child: 
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'cpus='> name:cpus)
                  op: assign_op.Equal
                  rhs: {<-a>}
                  spids: [198]
                )
              ]
              redirects: []
            )
          terminator: <Id.Op_Semi _>
        )
        (command.Sentence
          child: 
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'opts='> name:opts)
                  op: assign_op.Equal
                  rhs: (rhs_word.Empty)
                  spids: [202]
                )
              ]
              redirects: []
            )
          terminator: <Id.Op_Semi _>
        )
        (command.Sentence
          child: 
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'tcmd='> name:tcmd)
                  op: assign_op.Equal
                  rhs: {<cat>}
                  spids: [205]
                )
              ]
              redirects: []
            )
          terminator: <Id.Op_Semi _>
        )
        (command.ShAssignment
          pairs: [
            (assign_pair
              lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'ttext='> name:ttext)
              op: assign_op.Equal
              rhs: (rhs_word.Empty)
              spids: [209]
            )
          ]
          redirects: []
        )
      ]
    )
    (C {<trap>} {(SQ )} {<INT>} {<QUIT>} {<TERM>} {<PIPE>} {<HUP>})
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'stdout_workaround='> name:stdout_workaround)
          op: assign_op.Equal
          rhs: {<1>}
          spids: [227]
        )
      ]
      redirects: []
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'write_workaround='> name:write_workaround)
          op: assign_op.Equal
          rhs: {<1>}
          spids: [233]
        )
      ]
      redirects: []
    )
    (command.WhileUntil
      keyword: <Id.KW_While while>
      cond: 
        (condition.Shell
          commands: [
            (C {<getopts>} {<cd> <Id.Lit_Colon ':'> <hp> <Id.Lit_Colon ':'> <t> <Id.Lit_Colon ':'> <v>} 
              {<opt>}
            )
          ]
        )
      body: 
        (command.DoGroup
          children: [
            (command.Case
              to_match: {($ Id.VSub_DollarName opt)}
              arms: [
                (case_arm
                  pat_list: [{<c>}]
                  action: [
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'opt_count='> name:opt_count)
                          op: assign_op.Equal
                          rhs: {<1>}
                          spids: [270]
                        )
                      ]
                      redirects: []
                    )
                  ]
                  spids: [267 268 273 -1]
                )
                (case_arm
                  pat_list: [{<d>}]
                  action: [
                    (command.Sentence
                      child: 
                        (command.ShAssignment
                          pairs: [
                            (assign_pair
                              lhs: 
                                (sh_lhs_expr.Name
                                  left: <Id.Lit_VarLike 'opt_duration='>
                                  name: opt_duration
                                )
                              op: assign_op.Equal
                              rhs: {<1>}
                              spids: [279]
                            )
                          ]
                          redirects: []
                        )
                      terminator: <Id.Op_Semi _>
                    )
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'duration='> name:duration)
                          op: assign_op.Equal
                          rhs: {($ Id.VSub_DollarName OPTARG)}
                          spids: [283]
                        )
                      ]
                      redirects: []
                    )
                  ]
                  spids: [276 277 286 -1]
                )
                (case_arm
                  pat_list: [{<p>}]
                  action: [
                    (command.Sentence
                      child: 
                        (command.ShAssignment
                          pairs: [
                            (assign_pair
                              lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'opt_pid='> name:opt_pid)
                              op: assign_op.Equal
                              rhs: {<1>}
                              spids: [292]
                            )
                          ]
                          redirects: []
                        )
                      terminator: <Id.Op_Semi _>
                    )
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'pid='> name:pid)
                          op: assign_op.Equal
                          rhs: {($ Id.VSub_DollarName OPTARG)}
                          spids: [296]
                        )
                      ]
                      redirects: []
                    )
                  ]
                  spids: [289 290 299 -1]
                )
                (case_arm
                  pat_list: [{<t>}]
                  action: [
                    (command.Sentence
                      child: 
                        (command.ShAssignment
                          pairs: [
                            (assign_pair
                              lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'opt_tail='> name:opt_tail)
                              op: assign_op.Equal
                              rhs: {<1>}
                              spids: [305]
                            )
                          ]
                          redirects: []
                        )
                      terminator: <Id.Op_Semi _>
                    )
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'tnum='> name:tnum)
                          op: assign_op.Equal
                          rhs: {($ Id.VSub_DollarName OPTARG)}
                          spids: [309]
                        )
                      ]
                      redirects: []
                    )
                  ]
                  spids: [302 303 312 -1]
                )
                (case_arm
                  pat_list: [{<v>}]
                  action: [
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: 
                            (sh_lhs_expr.Name
                              left: <Id.Lit_VarLike 'opt_verbose='>
                              name: opt_verbose
                            )
                          op: assign_op.Equal
                          rhs: {<1>}
                          spids: [318]
                        )
                      ]
                      redirects: []
                    )
                  ]
                  spids: [315 316 321 -1]
                )
                (case_arm
                  pat_list: [{<h>} {<Id.Lit_QMark '?'>}]
                  action: [
                    (command.Simple
                      words: [{<cat>}]
                      redirects: [
                        (redir
                          op: <Id.Redir_DLessDash '<<-'>
                          loc: (redir_loc.Fd fd:0)
                          arg: 
                            (redir_param.HereDoc
                              here_begin: {<END>}
                              here_end_span_id: 359
                              stdin_parts: [
                                <'USAGE: syscount [-chv] [-t top] {-p PID|-d seconds|command}\n'>
                                <'       syscount                  # count by process name\n'>
                                <'                -c               # show counts by syscall name\n'>
                                <'                -h               # this usage message\n'>
                                <'                -v               # verbose: shows PID\n'>
                                <'                -p PID           # trace this PID only\n'>
                                <'                -d seconds       # duration of trace\n'>
                                <'                -t num           # show top number only\n'>
                                <'                command          # run and trace this command\n'>
                                <'  eg,\n'>
                                <'        syscount                 # syscalls by process name\n'>
                                <'        syscount -c              # syscalls by syscall name\n'>
                                <'        syscount -d 5            # trace for 5 seconds\n'>
                                <'        syscount -cp 923         # syscall names for PID 923\n'>
                                <'        syscount -c ls           # syscall names for '>
                                <Id.Right_DoubleQuote '"'>
                                <ls>
                                <Id.Right_DoubleQuote '"'>
                                <'\n'>
                                <'\n'>
                                <'See the man page and example file for more info.\n'>
                              ]
                            )
                        )
                        (redir
                          op: <Id.Redir_GreatAnd '>&'>
                          loc: (redir_loc.Fd fd:1)
                          arg: {<2>}
                        )
                      ]
                      more_env: []
                      do_fork: T
                    )
                    (command.ControlFlow
                      token: <Id.ControlFlow_Exit exit>
                      arg_word: {<1>}
                    )
                  ]
                  spids: [324 327 -1 366]
                )
              ]
              redirects: []
            )
          ]
        )
      redirects: []
    )
    (C {<shift>} 
      {
        (word_part.ArithSub
          anode: 
            (arith_expr.Binary
              op_id: Id.Arith_Minus
              left: {($ Id.VSub_DollarName OPTIND)}
              right: {<Id.Lit_Digits 1>}
            )
        )
      }
    )
    (command.If
      arms: [
        (if_arm
          cond: 
            (condition.Shell
              commands: [
                (command.Sentence
                  child: 
                    (command.DParen
                      child: 
                        (arith_expr.Binary
                          op_id: Id.Arith_Great
                          left: {($ Id.VSub_Pound '#')}
                          right: {<Id.Lit_Digits 0>}
                        )
                      redirects: []
                    )
                  terminator: <Id.Op_Semi _>
                )
              ]
            )
          action: [
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'opt_cmd='> name:opt_cmd)
                  op: assign_op.Equal
                  rhs: {<1>}
                  spids: [404]
                )
              ]
              redirects: []
            )
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'cmd='> name:cmd)
                  op: assign_op.Equal
                  rhs: {(DQ ($ Id.VSub_At '@'))}
                  spids: [408]
                )
              ]
              redirects: []
            )
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'cpus='> name:cpus)
                  op: assign_op.Equal
                  rhs: (rhs_word.Empty)
                  spids: [414]
                )
              ]
              redirects: []
            )
          ]
          spids: [387 401]
        )
      ]
      else_action: []
      redirects: []
    )
    (command.If
      arms: [
        (if_arm
          cond: 
            (condition.Shell
              commands: [
                (command.Sentence
                  child: 
                    (command.DParen
                      child: 
                        (arith_expr.Binary
                          op_id: Id.Arith_Great
                          left: 
                            (arith_expr.Binary
                              op_id: Id.Arith_Plus
                              left: 
                                (arith_expr.Binary
                                  op_id: Id.Arith_Plus
                                  left: ($ Id.Lit_ArithVarLike opt_pid)
                                  right: ($ Id.Lit_ArithVarLike opt_duration)
                                )
                              right: ($ Id.Lit_ArithVarLike opt_cmd)
                            )
                          right: {<Id.Lit_Digits 1>}
                        )
                      redirects: []
                    )
                  terminator: <Id.Op_Semi _>
                )
              ]
            )
          action: [
            (command.Simple
              words: [{<echo>} {(DQ <'ERROR: Pick one of {-p PID|-n name|-d seconds|command}'>)}]
              redirects: [(redir op:<Id.Redir_GreatAnd '>&'> loc:(redir_loc.Fd fd:1) arg:{<2>})]
              more_env: []
              do_fork: T
            )
            (command.ControlFlow token:<Id.ControlFlow_Exit exit> arg_word:{<1>})
          ]
          spids: [418 440]
        )
      ]
      else_action: []
      redirects: []
    )
    (command.If
      arms: [
        (if_arm
          cond: 
            (condition.Shell
              commands: [
                (command.Sentence
                  child: (command.DParen child:($ Id.Lit_ArithVarLike opt_tail) redirects:[])
                  terminator: <Id.Op_Semi _>
                )
              ]
            )
          action: [
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'tcmd='> name:tcmd)
                  op: assign_op.Equal
                  rhs: {(DQ <'tail -'> ($ Id.VSub_DollarName tnum))}
                  spids: [472]
                )
              ]
              redirects: []
            )
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'ttext='> name:ttext)
                  op: assign_op.Equal
                  rhs: {(DQ <' Top '> ($ Id.VSub_DollarName tnum) <' only.'>)}
                  spids: [479]
                )
              ]
              redirects: []
            )
          ]
          spids: [459 469]
        )
      ]
      else_action: []
      redirects: []
    )
    (command.If
      arms: [
        (if_arm
          cond: 
            (condition.Shell
              commands: [
                (command.Sentence
                  child: (command.DParen child:($ Id.Lit_ArithVarLike opt_duration) redirects:[])
                  terminator: <Id.Op_Semi _>
                )
              ]
            )
          action: [
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'cmd='> name:cmd)
                  op: assign_op.Equal
                  rhs: {(DQ <'sleep '> ($ Id.VSub_DollarName duration))}
                  spids: [501]
                )
              ]
              redirects: []
            )
            (C {<echo>} 
              {
                (DQ <'Tracing for '> ($ Id.VSub_DollarName duration) <' seconds.'> 
                  ($ Id.VSub_DollarName ttext) <..>
                )
              }
            )
          ]
          spids: [488 498]
        )
      ]
      else_action: []
      redirects: []
    )
    (command.If
      arms: [
        (if_arm
          cond: 
            (condition.Shell
              commands: [
                (command.Sentence
                  child: (command.DParen child:($ Id.Lit_ArithVarLike opt_pid) redirects:[])
                  terminator: <Id.Op_Semi _>
                )
              ]
            )
          action: [
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'cpus='> name:cpus)
                  op: assign_op.Equal
                  rhs: (rhs_word.Empty)
                  spids: [533]
                )
              ]
              redirects: []
            )
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'cmd='> name:cmd)
                  op: assign_op.Equal
                  rhs: {(DQ <'-p '> ($ Id.VSub_DollarName pid))}
                  spids: [536]
                )
              ]
              redirects: []
            )
            (C {<echo>} 
              {
                (DQ <'Tracing PID '> ($ Id.VSub_DollarName pid) <.> ($ Id.VSub_DollarName ttext) 
                  <'.. Ctrl-C to end.'>
                )
              }
            )
          ]
          spids: [520 530]
        )
      ]
      else_action: []
      redirects: []
    )
    (command.AndOr
      ops: [Id.Op_DAmp]
      children: [
        (command.DParen child:($ Id.Lit_ArithVarLike opt_cmd) redirects:[])
        (C {<echo>} 
          {
            (DQ <'Tracing while running: '> 
              (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\"'> ch:'"') ($ Id.VSub_DollarName cmd) (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\"'> ch:'"') <.> 
              ($ Id.VSub_DollarName ttext) <..>
            )
          }
        )
      ]
    )
    (command.AndOr
      ops: [Id.Op_DAmp]
      children: [
        (command.DParen
          child: 
            (arith_expr.Binary
              op_id: Id.Arith_DEqual
              left: 
                (arith_expr.Binary
                  op_id: Id.Arith_Plus
                  left: 
                    (arith_expr.Binary
                      op_id: Id.Arith_Plus
                      left: ($ Id.Lit_ArithVarLike opt_pid)
                      right: ($ Id.Lit_ArithVarLike opt_duration)
                    )
                  right: ($ Id.Lit_ArithVarLike opt_cmd)
                )
              right: {<Id.Lit_Digits 0>}
            )
          redirects: []
        )
        (C {<echo>} {(DQ <Tracing.> ($ Id.VSub_DollarName ttext) <'.. Ctrl-C to end.'>)})
      ]
    )
    (command.AndOr
      ops: [Id.Op_DAmp]
      children: [
        (command.DParen child:($ Id.Lit_ArithVarLike stdout_workaround) redirects:[])
        (command.ShAssignment
          pairs: [
            (assign_pair
              lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'opts='> name:opts)
              op: assign_op.Equal
              rhs: {(DQ <'-o /dev/stdout'>)}
              spids: [616]
            )
          ]
          redirects: []
        )
      ]
    )
    (C {<ulimit>} {<-n>} {<32768>})
    (command.If
      arms: [
        (if_arm
          cond: 
            (condition.Shell
              commands: [
                (command.Sentence
                  child: 
                    (command.DParen
                      child: 
                        (arith_expr.Binary
                          op_id: Id.Arith_DAmp
                          left: ($ Id.Lit_ArithVarLike opt_count)
                          right: 
                            (arith_expr.Unary
                              op_id: Id.Arith_Bang
                              child: ($ Id.Lit_ArithVarLike opt_verbose)
                            )
                        )
                      redirects: []
                    )
                  terminator: <Id.Op_Semi _>
                )
              ]
            )
          action: [
            (C {<Id.Lit_Colon ':'>} 
              {
                (braced_var_sub
                  left: <Id.Left_DollarBrace '${'>
                  token: <Id.VSub_Name cmd>
                  var_name: cmd
                  suffix_op: (suffix_op.Unary op:<Id.VTest_ColonEquals _> arg_word:{<'sleep 999999'>})
                  right: <Id.Right_DollarBrace '}'>
                )
              }
            )
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'out='> name:out)
                  op: assign_op.Equal
                  rhs: 
                    {
                      (command_sub
                        left_token: <Id.Left_DollarParen '$('>
                        child: 
                          (C {<perf>} {<stat>} {($ Id.VSub_DollarName opts)} {<-e>} 
                            {(SQ <'syscalls:sys_enter_*'>)} {($ Id.VSub_DollarName cpus)} {($ Id.VSub_DollarName cmd)}
                          )
                        right: <Id.Eof_RParen _>
                      )
                    }
                  spids: [663]
                )
              ]
              redirects: []
            )
            (C {<printf>} {(DQ <'%-17s %8s'> <Id.Lit_BadBackslash '\\'> <n>)} {(DQ <SYSCALL>)} 
              {(DQ <COUNT>)}
            )
            (command.Pipeline
              children: [
                (C {<echo>} {(DQ ($ Id.VSub_DollarName out))})
                (C {<awk>} 
                  {
                    (SQ <'\n'> <'\t$1 && $2 ~ /syscalls:/ {\n'> 
                      <'\t\tsub("syscalls:sys_enter_", ""); sub(":", "")\n'> <'\t\tgsub(",", "")\n'> <'\t\tprintf "%-17s %8s\\n", $2, $1\n'> <'\t}'>
                    )
                  }
                )
                (C {<sort>} {<-n>} {<-k2>})
                (C {($ Id.VSub_DollarName tcmd)})
              ]
              negated: F
              stderr_indices: []
            )
            (command.ControlFlow token:<Id.ControlFlow_Exit exit>)
          ]
          spids: [635 651]
        )
      ]
      else_action: []
      redirects: []
    )
    (command.If
      arms: [
        (if_arm
          cond: 
            (condition.Shell
              commands: [
                (command.Sentence
                  child: 
                    (command.DParen
                      child: 
                        (arith_expr.Binary
                          op_id: Id.Arith_DAmp
                          left: ($ Id.Lit_ArithVarLike opt_count)
                          right: ($ Id.Lit_ArithVarLike opt_verbose)
                        )
                      redirects: []
                    )
                  terminator: <Id.Op_Semi _>
                )
              ]
            )
          action: [
            (command.If
              arms: [
                (if_arm
                  cond: 
                    (condition.Shell
                      commands: [
                        (command.Sentence
                          child: 
                            (command.DParen
                              child: ($ Id.Lit_ArithVarLike write_workaround)
                              redirects: []
                            )
                          terminator: <Id.Op_Semi _>
                        )
                      ]
                    )
                  action: [
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'tp='> name:tp)
                          op: assign_op.Equal
                          rhs: 
                            {
                              (command_sub
                                left_token: <Id.Left_DollarParen '$('>
                                child: 
                                  (command.Pipeline
                                    children: [
                                      (C {<perf>} {<list>} 
                                        {<syscalls> <Id.Lit_Colon ':'> <sys_enter_> <Id.Lit_Star '*'>}
                                      )
                                      (C {<awk>} 
                                        {
                                          (SQ <'\n'> 
                                            <
'\t\t    $1 != "syscalls:sys_enter_write" &&  $1 ~ /syscalls:/ { printf "-e %s ", $1 }'
                                            >
                                          )
                                        }
                                      )
                                    ]
                                    negated: F
                                    stderr_indices: []
                                  )
                                right: <Id.Eof_RParen _>
                              )
                            }
                          spids: [774]
                        )
                      ]
                      redirects: []
                    )
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'tp='> name:tp)
                          op: assign_op.Equal
                          rhs: {(DQ ($ Id.VSub_DollarName tp) <' -e syscalls:sys_enter_write'>)}
                          spids: [796]
                        )
                      ]
                      redirects: []
                    )
                    (C {<sh>} {<-c>} 
                      {
                        (DQ <'perf record '> ($ Id.VSub_DollarName tp) <' --filter \'common_pid != \''> 
                          (word_part.EscapedLiteral
                            token: <Id.Lit_EscapedChar '\\$'>
                            ch: '$'
                          ) (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\$'> ch:'$') <' '> ($ Id.VSub_DollarName cpus) 
                          <' '> ($ Id.VSub_DollarName cmd)
                        )
                      }
                    )
                  ]
                  spids: [757 767]
                )
              ]
              else_action: [
                (C {<perf>} {<record>} {(SQ <'syscalls:sys_enter_*'>)} {($ Id.VSub_DollarName cpus)} 
                  {($ Id.VSub_DollarName cmd)}
                )
              ]
              redirects: []
            )
            (C {<printf>} {(DQ <'%-6s %-16s %-17s %8s'> <Id.Lit_BadBackslash '\\'> <n>)} {(DQ <PID>)} 
              {(DQ <COMM>)} {(DQ <SYSCALL>)} {(DQ <COUNT>)}
            )
            (command.Pipeline
              children: [
                (C {<perf>} {<script>} {<--fields>} 
                  {<pid> <Id.Lit_Comma ','> <comm> <Id.Lit_Comma ','> <event>}
                )
                (C {<awk>} 
                  {
                    (SQ <'$1 != "#" {\n'> <'\t\tsub("syscalls:sys_enter_", ""); sub(":", "")\n'> 
                      <'\t\ta[$1 ";" $2 ";" $3]++\n'> <'\t}\n'> <'\tEND {\n'> <'\t\tfor (k in a) {\n'> <'\t\t\tsplit(k, b, ";");\n'> 
                      <'\t\t\tprintf "%-6s %-16s %-17s %8d\\n", b[2], b[1], b[3], a[k]\n'> <'\t\t}\n'> <'\t}'>
                    )
                  }
                )
                (C {<sort>} {<-n>} {<-k4>})
                (C {($ Id.VSub_DollarName tcmd)})
              ]
              negated: F
              stderr_indices: []
            )
            (command.ControlFlow token:<Id.ControlFlow_Exit exit>)
          ]
          spids: [740 754]
        )
      ]
      else_action: []
      redirects: []
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'tp='> name:tp)
          op: assign_op.Equal
          rhs: {(DQ <'-e raw_syscalls:sys_enter'>)}
          spids: [919]
        )
      ]
      redirects: []
    )
    (command.If
      arms: [
        (if_arm
          cond: 
            (condition.Shell
              commands: [
                (command.Sentence
                  child: (command.DParen child:($ Id.Lit_ArithVarLike write_workaround) redirects:[])
                  terminator: <Id.Op_Semi _>
                )
              ]
            )
          action: [
            (C {<sh>} {<-c>} 
              {
                (DQ <'perf record '> ($ Id.VSub_DollarName tp) <' --filter \'common_pid != \''> 
                  (word_part.EscapedLiteral
                    token: <Id.Lit_EscapedChar '\\$'>
                    ch: '$'
                  ) (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\$'> ch:'$') <' '> ($ Id.VSub_DollarName cpus) 
                  <' '> ($ Id.VSub_DollarName cmd)
                )
              }
            )
          ]
          spids: [924 934]
        )
      ]
      else_action: [
        (C {<perf>} {<record>} {($ Id.VSub_DollarName tp)} {($ Id.VSub_DollarName cpus)} 
          {($ Id.VSub_DollarName cmd)}
        )
      ]
      redirects: []
    )
    (command.If
      arms: [
        (if_arm
          cond: 
            (condition.Shell
              commands: [
                (command.Sentence
                  child: (command.DParen child:($ Id.Lit_ArithVarLike opt_verbose) redirects:[])
                  terminator: <Id.Op_Semi _>
                )
              ]
            )
          action: [
            (C {<printf>} {(DQ <'%-6s %-16s %8s'> <Id.Lit_BadBackslash '\\'> <n>)} {(DQ <PID>)} 
              {(DQ <COMM>)} {(DQ <COUNT>)}
            )
            (command.Pipeline
              children: [
                (C {<perf>} {<script>} {<--fields>} {<pid> <Id.Lit_Comma ','> <comm>})
                (C {<awk>} 
                  {
                    (SQ <'$1 != "#" { a[$1 ";" $2]++ }\n'> <'\tEND {\n'> <'\t\tfor (k in a) {\n'> 
                      <'\t\t\tsplit(k, b, ";");\n'> <'\t\t\tprintf "%-6s %-16s %8d\\n", b[2], b[1],  a[k]\n'> <'\t\t}\n'> <'\t}'>
                    )
                  }
                )
                (C {<sort>} {<-n>} {<-k3>})
                (C {($ Id.VSub_DollarName tcmd)})
              ]
              negated: F
              stderr_indices: []
            )
          ]
          spids: [969 979]
        )
      ]
      else_action: [
        (C {<printf>} {(DQ <'%-16s %8s'> <Id.Lit_BadBackslash '\\'> <n>)} {(DQ <COMM>)} {(DQ <COUNT>)})
        (command.Pipeline
          children: [
            (C {<perf>} {<script>} {<--fields>} {<comm>})
            (C {<awk>} 
              {
                (SQ <'$1 != "#" { a[$1]++ }\n'> <'\tEND {\n'> <'\t\tfor (k in a) {\n'> 
                  <'\t\t\tprintf "%-16s %8d\\n", k,  a[k]\n'> <'\t\t}\n'> <'\t}'>
                )
              }
            )
            (C {<sort>} {<-n>} {<-k2>})
            (C {($ Id.VSub_DollarName tcmd)})
          ]
          negated: F
          stderr_indices: []
        )
      ]
      redirects: []
    )
  ]
)