(command.CommandList
  children: [
    (command.CommandList
      children: [
        (command.Sentence
          child: 
            (command.ShAssignment
              left: <Id.Lit_VarLike 'opt_count='>
              pairs: [
                (AssignPair
                  left: <Id.Lit_VarLike 'opt_count='>
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'opt_count='> name:opt_count)
                  op: assign_op.Equal
                  rhs: {<0>}
                )
              ]
              redirects: []
            )
          terminator: <Id.Op_Semi _>
        )
        (command.Sentence
          child: 
            (command.ShAssignment
              left: <Id.Lit_VarLike 'opt_pid='>
              pairs: [
                (AssignPair
                  left: <Id.Lit_VarLike 'opt_pid='>
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'opt_pid='> name:opt_pid)
                  op: assign_op.Equal
                  rhs: {<0>}
                )
              ]
              redirects: []
            )
          terminator: <Id.Op_Semi _>
        )
        (command.Sentence
          child: 
            (command.ShAssignment
              left: <Id.Lit_VarLike 'opt_verbose='>
              pairs: [
                (AssignPair
                  left: <Id.Lit_VarLike 'opt_verbose='>
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'opt_verbose='> name:opt_verbose)
                  op: assign_op.Equal
                  rhs: {<0>}
                )
              ]
              redirects: []
            )
          terminator: <Id.Op_Semi _>
        )
        (command.Sentence
          child: 
            (command.ShAssignment
              left: <Id.Lit_VarLike 'opt_cmd='>
              pairs: [
                (AssignPair
                  left: <Id.Lit_VarLike 'opt_cmd='>
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'opt_cmd='> name:opt_cmd)
                  op: assign_op.Equal
                  rhs: {<0>}
                )
              ]
              redirects: []
            )
          terminator: <Id.Op_Semi _>
        )
        (command.Sentence
          child: 
            (command.ShAssignment
              left: <Id.Lit_VarLike 'opt_duration='>
              pairs: [
                (AssignPair
                  left: <Id.Lit_VarLike 'opt_duration='>
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'opt_duration='> name:opt_duration)
                  op: assign_op.Equal
                  rhs: {<0>}
                )
              ]
              redirects: []
            )
          terminator: <Id.Op_Semi _>
        )
        (command.ShAssignment
          left: <Id.Lit_VarLike 'opt_tail='>
          pairs: [
            (AssignPair
              left: <Id.Lit_VarLike 'opt_tail='>
              lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'opt_tail='> name:opt_tail)
              op: assign_op.Equal
              rhs: {<0>}
            )
          ]
          redirects: []
        )
      ]
    )
    (command.CommandList
      children: [
        (command.Sentence
          child: 
            (command.ShAssignment
              left: <Id.Lit_VarLike 'tnum='>
              pairs: [
                (AssignPair
                  left: <Id.Lit_VarLike 'tnum='>
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'tnum='> name:tnum)
                  op: assign_op.Equal
                  rhs: (rhs_word__Empty)
                )
              ]
              redirects: []
            )
          terminator: <Id.Op_Semi _>
        )
        (command.Sentence
          child: 
            (command.ShAssignment
              left: <Id.Lit_VarLike 'pid='>
              pairs: [
                (AssignPair
                  left: <Id.Lit_VarLike 'pid='>
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'pid='> name:pid)
                  op: assign_op.Equal
                  rhs: (rhs_word__Empty)
                )
              ]
              redirects: []
            )
          terminator: <Id.Op_Semi _>
        )
        (command.Sentence
          child: 
            (command.ShAssignment
              left: <Id.Lit_VarLike 'duration='>
              pairs: [
                (AssignPair
                  left: <Id.Lit_VarLike 'duration='>
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'duration='> name:duration)
                  op: assign_op.Equal
                  rhs: (rhs_word__Empty)
                )
              ]
              redirects: []
            )
          terminator: <Id.Op_Semi _>
        )
        (command.Sentence
          child: 
            (command.ShAssignment
              left: <Id.Lit_VarLike 'cmd='>
              pairs: [
                (AssignPair
                  left: <Id.Lit_VarLike 'cmd='>
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'cmd='> name:cmd)
                  op: assign_op.Equal
                  rhs: (rhs_word__Empty)
                )
              ]
              redirects: []
            )
          terminator: <Id.Op_Semi _>
        )
        (command.Sentence
          child: 
            (command.ShAssignment
              left: <Id.Lit_VarLike 'cpus='>
              pairs: [
                (AssignPair
                  left: <Id.Lit_VarLike 'cpus='>
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'cpus='> name:cpus)
                  op: assign_op.Equal
                  rhs: {<-a>}
                )
              ]
              redirects: []
            )
          terminator: <Id.Op_Semi _>
        )
        (command.Sentence
          child: 
            (command.ShAssignment
              left: <Id.Lit_VarLike 'opts='>
              pairs: [
                (AssignPair
                  left: <Id.Lit_VarLike 'opts='>
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'opts='> name:opts)
                  op: assign_op.Equal
                  rhs: (rhs_word__Empty)
                )
              ]
              redirects: []
            )
          terminator: <Id.Op_Semi _>
        )
        (command.Sentence
          child: 
            (command.ShAssignment
              left: <Id.Lit_VarLike 'tcmd='>
              pairs: [
                (AssignPair
                  left: <Id.Lit_VarLike 'tcmd='>
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'tcmd='> name:tcmd)
                  op: assign_op.Equal
                  rhs: {<cat>}
                )
              ]
              redirects: []
            )
          terminator: <Id.Op_Semi _>
        )
        (command.ShAssignment
          left: <Id.Lit_VarLike 'ttext='>
          pairs: [
            (AssignPair
              left: <Id.Lit_VarLike 'ttext='>
              lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'ttext='> name:ttext)
              op: assign_op.Equal
              rhs: (rhs_word__Empty)
            )
          ]
          redirects: []
        )
      ]
    )
    (command.Simple
      blame_tok: <trap>
      more_env: []
      words: [{<trap>} {(SQ )} {<INT>} {<QUIT>} {<TERM>} {<PIPE>} {<HUP>}]
      redirects: []
      do_fork: T
    )
    (command.ShAssignment
      left: <Id.Lit_VarLike 'stdout_workaround='>
      pairs: [
        (AssignPair
          left: <Id.Lit_VarLike 'stdout_workaround='>
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'stdout_workaround='> name:stdout_workaround)
          op: assign_op.Equal
          rhs: {<1>}
        )
      ]
      redirects: []
    )
    (command.ShAssignment
      left: <Id.Lit_VarLike 'write_workaround='>
      pairs: [
        (AssignPair
          left: <Id.Lit_VarLike 'write_workaround='>
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'write_workaround='> name:write_workaround)
          op: assign_op.Equal
          rhs: {<1>}
        )
      ]
      redirects: []
    )
    (command.WhileUntil
      keyword: <Id.KW_While while>
      cond: 
        (condition.Shell
          commands: [
            (command.Simple
              blame_tok: <getopts>
              more_env: []
              words: [
                {<getopts>}
                {<cd> <Id.Lit_Colon ':'> <hp> <Id.Lit_Colon ':'> <t> <Id.Lit_Colon ':'> <v>}
                {<opt>}
              ]
              redirects: []
              do_fork: T
            )
          ]
        )
      body: 
        (command.DoGroup
          left: <Id.KW_Do do>
          children: [
            (command.Case
              case_kw: <Id.KW_Case case>
              to_match: (case_arg.Word w:{($ Id.VSub_DollarName opt)})
              arms_start: <Id.KW_In in>
              arms: [
                (CaseArm
                  left: <c>
                  pattern: (pat.Words words:[{<c>}])
                  middle: <Id.Right_CasePat _>
                  action: [
                    (command.ShAssignment
                      left: <Id.Lit_VarLike 'opt_count='>
                      pairs: [
                        (AssignPair
                          left: <Id.Lit_VarLike 'opt_count='>
                          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'opt_count='> name:opt_count)
                          op: assign_op.Equal
                          rhs: {<1>}
                        )
                      ]
                      redirects: []
                    )
                  ]
                  right: <Id.Op_DSemi _>
                )
                (CaseArm
                  left: <d>
                  pattern: (pat.Words words:[{<d>}])
                  middle: <Id.Right_CasePat _>
                  action: [
                    (command.Sentence
                      child: 
                        (command.ShAssignment
                          left: <Id.Lit_VarLike 'opt_duration='>
                          pairs: [
                            (AssignPair
                              left: <Id.Lit_VarLike 'opt_duration='>
                              lhs: 
                                (sh_lhs_expr.Name
                                  left: <Id.Lit_VarLike 'opt_duration='>
                                  name: opt_duration
                                )
                              op: assign_op.Equal
                              rhs: {<1>}
                            )
                          ]
                          redirects: []
                        )
                      terminator: <Id.Op_Semi _>
                    )
                    (command.ShAssignment
                      left: <Id.Lit_VarLike 'duration='>
                      pairs: [
                        (AssignPair
                          left: <Id.Lit_VarLike 'duration='>
                          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'duration='> name:duration)
                          op: assign_op.Equal
                          rhs: {($ Id.VSub_DollarName OPTARG)}
                        )
                      ]
                      redirects: []
                    )
                  ]
                  right: <Id.Op_DSemi _>
                )
                (CaseArm
                  left: <p>
                  pattern: (pat.Words words:[{<p>}])
                  middle: <Id.Right_CasePat _>
                  action: [
                    (command.Sentence
                      child: 
                        (command.ShAssignment
                          left: <Id.Lit_VarLike 'opt_pid='>
                          pairs: [
                            (AssignPair
                              left: <Id.Lit_VarLike 'opt_pid='>
                              lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'opt_pid='> name:opt_pid)
                              op: assign_op.Equal
                              rhs: {<1>}
                            )
                          ]
                          redirects: []
                        )
                      terminator: <Id.Op_Semi _>
                    )
                    (command.ShAssignment
                      left: <Id.Lit_VarLike 'pid='>
                      pairs: [
                        (AssignPair
                          left: <Id.Lit_VarLike 'pid='>
                          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'pid='> name:pid)
                          op: assign_op.Equal
                          rhs: {($ Id.VSub_DollarName OPTARG)}
                        )
                      ]
                      redirects: []
                    )
                  ]
                  right: <Id.Op_DSemi _>
                )
                (CaseArm
                  left: <t>
                  pattern: (pat.Words words:[{<t>}])
                  middle: <Id.Right_CasePat _>
                  action: [
                    (command.Sentence
                      child: 
                        (command.ShAssignment
                          left: <Id.Lit_VarLike 'opt_tail='>
                          pairs: [
                            (AssignPair
                              left: <Id.Lit_VarLike 'opt_tail='>
                              lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'opt_tail='> name:opt_tail)
                              op: assign_op.Equal
                              rhs: {<1>}
                            )
                          ]
                          redirects: []
                        )
                      terminator: <Id.Op_Semi _>
                    )
                    (command.ShAssignment
                      left: <Id.Lit_VarLike 'tnum='>
                      pairs: [
                        (AssignPair
                          left: <Id.Lit_VarLike 'tnum='>
                          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'tnum='> name:tnum)
                          op: assign_op.Equal
                          rhs: {($ Id.VSub_DollarName OPTARG)}
                        )
                      ]
                      redirects: []
                    )
                  ]
                  right: <Id.Op_DSemi _>
                )
                (CaseArm
                  left: <v>
                  pattern: (pat.Words words:[{<v>}])
                  middle: <Id.Right_CasePat _>
                  action: [
                    (command.ShAssignment
                      left: <Id.Lit_VarLike 'opt_verbose='>
                      pairs: [
                        (AssignPair
                          left: <Id.Lit_VarLike 'opt_verbose='>
                          lhs: 
                            (sh_lhs_expr.Name
                              left: <Id.Lit_VarLike 'opt_verbose='>
                              name: opt_verbose
                            )
                          op: assign_op.Equal
                          rhs: {<1>}
                        )
                      ]
                      redirects: []
                    )
                  ]
                  right: <Id.Op_DSemi _>
                )
                (CaseArm
                  left: <h>
                  pattern: (pat.Words words:[{<h>} {<Id.Lit_QMark '?'>}])
                  middle: <Id.Right_CasePat _>
                  action: [
                    (command.Simple
                      blame_tok: <cat>
                      more_env: []
                      words: [{<cat>}]
                      redirects: [
                        (Redir
                          op: <Id.Redir_DLessDash '<<-'>
                          loc: (redir_loc.Fd fd:0)
                          arg: 
                            (redir_param.HereDoc
                              here_begin: {<END>}
                              here_end_tok: <Id.Undefined_Tok ''>
                              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>}
                        )
                      ]
                      do_fork: T
                    )
                    (command.ControlFlow
                      keyword: <Id.ControlFlow_Exit exit>
                      arg_word: {<1>}
                    )
                  ]
                )
              ]
              arms_end: <Id.KW_Esac esac>
              redirects: []
            )
          ]
          right: <Id.KW_Done done>
        )
      redirects: []
    )
    (command.Simple
      blame_tok: <shift>
      more_env: []
      words: [
        {<shift>}
        {
          (word_part.ArithSub
            left: <Id.Left_DollarDParen '$(('>
            anode: 
              (arith_expr.Binary
                op_id: Id.Arith_Minus
                left: {($ Id.VSub_DollarName OPTIND)}
                right: {<Id.Lit_Digits 1>}
              )
            right: <Id.Right_DollarDParen _>
          )
        }
      ]
      redirects: []
      do_fork: T
    )
    (command.If
      if_kw: <Id.KW_If if>
      arms: [
        (IfArm
          keyword: <Id.KW_If if>
          cond: 
            (condition.Shell
              commands: [
                (command.Sentence
                  child: 
                    (command.DParen
                      left: <Id.Op_DLeftParen _>
                      child: 
                        (arith_expr.Binary
                          op_id: Id.Arith_Great
                          left: {($ Id.VSub_Pound '#')}
                          right: {<Id.Lit_Digits 0>}
                        )
                      right: <Id.Op_DRightParen _>
                      redirects: []
                    )
                  terminator: <Id.Op_Semi _>
                )
              ]
            )
          then_kw: <Id.KW_Then then>
          action: [
            (command.ShAssignment
              left: <Id.Lit_VarLike 'opt_cmd='>
              pairs: [
                (AssignPair
                  left: <Id.Lit_VarLike 'opt_cmd='>
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'opt_cmd='> name:opt_cmd)
                  op: assign_op.Equal
                  rhs: {<1>}
                )
              ]
              redirects: []
            )
            (command.ShAssignment
              left: <Id.Lit_VarLike 'cmd='>
              pairs: [
                (AssignPair
                  left: <Id.Lit_VarLike 'cmd='>
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'cmd='> name:cmd)
                  op: assign_op.Equal
                  rhs: {(DQ ($ Id.VSub_At '@'))}
                )
              ]
              redirects: []
            )
            (command.ShAssignment
              left: <Id.Lit_VarLike 'cpus='>
              pairs: [
                (AssignPair
                  left: <Id.Lit_VarLike 'cpus='>
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'cpus='> name:cpus)
                  op: assign_op.Equal
                  rhs: (rhs_word__Empty)
                )
              ]
              redirects: []
            )
          ]
          spids: [387 401]
        )
      ]
      else_action: []
      fi_kw: <Id.KW_Fi fi>
      redirects: []
    )
    (command.If
      if_kw: <Id.KW_If if>
      arms: [
        (IfArm
          keyword: <Id.KW_If if>
          cond: 
            (condition.Shell
              commands: [
                (command.Sentence
                  child: 
                    (command.DParen
                      left: <Id.Op_DLeftParen _>
                      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>}
                        )
                      right: <Id.Op_DRightParen _>
                      redirects: []
                    )
                  terminator: <Id.Op_Semi _>
                )
              ]
            )
          then_kw: <Id.KW_Then then>
          action: [
            (command.Simple
              blame_tok: <echo>
              more_env: []
              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>})]
              do_fork: T
            )
            (command.ControlFlow keyword:<Id.ControlFlow_Exit exit> arg_word:{<1>})
          ]
          spids: [418 440]
        )
      ]
      else_action: []
      fi_kw: <Id.KW_Fi fi>
      redirects: []
    )
    (command.If
      if_kw: <Id.KW_If if>
      arms: [
        (IfArm
          keyword: <Id.KW_If if>
          cond: 
            (condition.Shell
              commands: [
                (command.Sentence
                  child: 
                    (command.DParen
                      left: <Id.Op_DLeftParen _>
                      child: ($ Id.Lit_ArithVarLike opt_tail)
                      right: <Id.Op_DRightParen _>
                      redirects: []
                    )
                  terminator: <Id.Op_Semi _>
                )
              ]
            )
          then_kw: <Id.KW_Then then>
          action: [
            (command.ShAssignment
              left: <Id.Lit_VarLike 'tcmd='>
              pairs: [
                (AssignPair
                  left: <Id.Lit_VarLike 'tcmd='>
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'tcmd='> name:tcmd)
                  op: assign_op.Equal
                  rhs: {(DQ <'tail -'> ($ Id.VSub_DollarName tnum))}
                )
              ]
              redirects: []
            )
            (command.ShAssignment
              left: <Id.Lit_VarLike 'ttext='>
              pairs: [
                (AssignPair
                  left: <Id.Lit_VarLike 'ttext='>
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'ttext='> name:ttext)
                  op: assign_op.Equal
                  rhs: {(DQ <' Top '> ($ Id.VSub_DollarName tnum) <' only.'>)}
                )
              ]
              redirects: []
            )
          ]
          spids: [459 469]
        )
      ]
      else_action: []
      fi_kw: <Id.KW_Fi fi>
      redirects: []
    )
    (command.If
      if_kw: <Id.KW_If if>
      arms: [
        (IfArm
          keyword: <Id.KW_If if>
          cond: 
            (condition.Shell
              commands: [
                (command.Sentence
                  child: 
                    (command.DParen
                      left: <Id.Op_DLeftParen _>
                      child: ($ Id.Lit_ArithVarLike opt_duration)
                      right: <Id.Op_DRightParen _>
                      redirects: []
                    )
                  terminator: <Id.Op_Semi _>
                )
              ]
            )
          then_kw: <Id.KW_Then then>
          action: [
            (command.ShAssignment
              left: <Id.Lit_VarLike 'cmd='>
              pairs: [
                (AssignPair
                  left: <Id.Lit_VarLike 'cmd='>
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'cmd='> name:cmd)
                  op: assign_op.Equal
                  rhs: {(DQ <'sleep '> ($ Id.VSub_DollarName duration))}
                )
              ]
              redirects: []
            )
            (command.Simple
              blame_tok: <echo>
              more_env: []
              words: [
                {<echo>}
                {
                  (DQ <'Tracing for '> ($ Id.VSub_DollarName duration) <' seconds.'> 
                    ($ Id.VSub_DollarName ttext) <..>
                  )
                }
              ]
              redirects: []
              do_fork: T
            )
          ]
          spids: [488 498]
        )
      ]
      else_action: []
      fi_kw: <Id.KW_Fi fi>
      redirects: []
    )
    (command.If
      if_kw: <Id.KW_If if>
      arms: [
        (IfArm
          keyword: <Id.KW_If if>
          cond: 
            (condition.Shell
              commands: [
                (command.Sentence
                  child: 
                    (command.DParen
                      left: <Id.Op_DLeftParen _>
                      child: ($ Id.Lit_ArithVarLike opt_pid)
                      right: <Id.Op_DRightParen _>
                      redirects: []
                    )
                  terminator: <Id.Op_Semi _>
                )
              ]
            )
          then_kw: <Id.KW_Then then>
          action: [
            (command.ShAssignment
              left: <Id.Lit_VarLike 'cpus='>
              pairs: [
                (AssignPair
                  left: <Id.Lit_VarLike 'cpus='>
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'cpus='> name:cpus)
                  op: assign_op.Equal
                  rhs: (rhs_word__Empty)
                )
              ]
              redirects: []
            )
            (command.ShAssignment
              left: <Id.Lit_VarLike 'cmd='>
              pairs: [
                (AssignPair
                  left: <Id.Lit_VarLike 'cmd='>
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'cmd='> name:cmd)
                  op: assign_op.Equal
                  rhs: {(DQ <'-p '> ($ Id.VSub_DollarName pid))}
                )
              ]
              redirects: []
            )
            (command.Simple
              blame_tok: <echo>
              more_env: []
              words: [
                {<echo>}
                {
                  (DQ <'Tracing PID '> ($ Id.VSub_DollarName pid) <.> ($ Id.VSub_DollarName ttext) 
                    <'.. Ctrl-C to end.'>
                  )
                }
              ]
              redirects: []
              do_fork: T
            )
          ]
          spids: [520 530]
        )
      ]
      else_action: []
      fi_kw: <Id.KW_Fi fi>
      redirects: []
    )
    (command.AndOr
      children: [
        (command.DParen
          left: <Id.Op_DLeftParen _>
          child: ($ Id.Lit_ArithVarLike opt_cmd)
          right: <Id.Op_DRightParen _>
          redirects: []
        )
        (command.Simple
          blame_tok: <echo>
          more_env: []
          words: [
            {<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) <..>
              )
            }
          ]
          redirects: []
          do_fork: T
        )
      ]
      ops: [<Id.Op_DAmp _>]
    )
    (command.AndOr
      children: [
        (command.DParen
          left: <Id.Op_DLeftParen _>
          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>}
            )
          right: <Id.Op_DRightParen _>
          redirects: []
        )
        (command.Simple
          blame_tok: <echo>
          more_env: []
          words: [{<echo>} {(DQ <Tracing.> ($ Id.VSub_DollarName ttext) <'.. Ctrl-C to end.'>)}]
          redirects: []
          do_fork: T
        )
      ]
      ops: [<Id.Op_DAmp _>]
    )
    (command.AndOr
      children: [
        (command.DParen
          left: <Id.Op_DLeftParen _>
          child: ($ Id.Lit_ArithVarLike stdout_workaround)
          right: <Id.Op_DRightParen _>
          redirects: []
        )
        (command.ShAssignment
          left: <Id.Lit_VarLike 'opts='>
          pairs: [
            (AssignPair
              left: <Id.Lit_VarLike 'opts='>
              lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'opts='> name:opts)
              op: assign_op.Equal
              rhs: {(DQ <'-o /dev/stdout'>)}
            )
          ]
          redirects: []
        )
      ]
      ops: [<Id.Op_DAmp _>]
    )
    (command.Simple
      blame_tok: <ulimit>
      more_env: []
      words: [{<ulimit>} {<-n>} {<32768>}]
      redirects: []
      do_fork: T
    )
    (command.If
      if_kw: <Id.KW_If if>
      arms: [
        (IfArm
          keyword: <Id.KW_If if>
          cond: 
            (condition.Shell
              commands: [
                (command.Sentence
                  child: 
                    (command.DParen
                      left: <Id.Op_DLeftParen _>
                      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)
                            )
                        )
                      right: <Id.Op_DRightParen _>
                      redirects: []
                    )
                  terminator: <Id.Op_Semi _>
                )
              ]
            )
          then_kw: <Id.KW_Then then>
          action: [
            (command.Simple
              blame_tok: <Id.Lit_Colon ':'>
              more_env: []
              words: [
                {<Id.Lit_Colon ':'>}
                {
                  (BracedVarSub
                    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 '}'>
                  )
                }
              ]
              redirects: []
              do_fork: T
            )
            (command.ShAssignment
              left: <Id.Lit_VarLike 'out='>
              pairs: [
                (AssignPair
                  left: <Id.Lit_VarLike 'out='>
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'out='> name:out)
                  op: assign_op.Equal
                  rhs: 
                    {
                      (CommandSub
                        left_token: <Id.Left_DollarParen '$('>
                        child: 
                          (command.Simple
                            blame_tok: <perf>
                            more_env: []
                            words: [
                              {<perf>}
                              {<stat>}
                              {($ Id.VSub_DollarName opts)}
                              {<-e>}
                              {(SQ <'syscalls:sys_enter_*'>)}
                              {($ Id.VSub_DollarName cpus)}
                              {($ Id.VSub_DollarName cmd)}
                            ]
                            redirects: []
                            do_fork: T
                          )
                        right: <Id.Eof_RParen _>
                      )
                    }
                )
              ]
              redirects: []
            )
            (command.Simple
              blame_tok: <printf>
              more_env: []
              words: [
                {<printf>}
                {(DQ <'%-17s %8s'> <Id.Lit_BadBackslash '\\'> <n>)}
                {(DQ <SYSCALL>)}
                {(DQ <COUNT>)}
              ]
              redirects: []
              do_fork: T
            )
            (command.Pipeline
              children: [
                (command.Simple
                  blame_tok: <echo>
                  more_env: []
                  words: [{<echo>} {(DQ ($ Id.VSub_DollarName out))}]
                  redirects: []
                  do_fork: T
                )
                (command.Simple
                  blame_tok: <awk>
                  more_env: []
                  words: [
                    {<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}'>
                      )
                    }
                  ]
                  redirects: []
                  do_fork: T
                )
                (command.Simple
                  blame_tok: <sort>
                  more_env: []
                  words: [{<sort>} {<-n>} {<-k2>}]
                  redirects: []
                  do_fork: T
                )
                (command.Simple
                  blame_tok: <Id.VSub_DollarName '$tcmd'>
                  more_env: []
                  words: [{($ Id.VSub_DollarName tcmd)}]
                  redirects: []
                  do_fork: T
                )
              ]
              ops: [<Id.Op_Pipe _> <Id.Op_Pipe _> <Id.Op_Pipe _>]
            )
            (command.ControlFlow keyword:<Id.ControlFlow_Exit exit>)
          ]
          spids: [635 651]
        )
      ]
      else_action: []
      fi_kw: <Id.KW_Fi fi>
      redirects: []
    )
    (command.If
      if_kw: <Id.KW_If if>
      arms: [
        (IfArm
          keyword: <Id.KW_If if>
          cond: 
            (condition.Shell
              commands: [
                (command.Sentence
                  child: 
                    (command.DParen
                      left: <Id.Op_DLeftParen _>
                      child: 
                        (arith_expr.Binary
                          op_id: Id.Arith_DAmp
                          left: ($ Id.Lit_ArithVarLike opt_count)
                          right: ($ Id.Lit_ArithVarLike opt_verbose)
                        )
                      right: <Id.Op_DRightParen _>
                      redirects: []
                    )
                  terminator: <Id.Op_Semi _>
                )
              ]
            )
          then_kw: <Id.KW_Then then>
          action: [
            (command.If
              if_kw: <Id.KW_If if>
              arms: [
                (IfArm
                  keyword: <Id.KW_If if>
                  cond: 
                    (condition.Shell
                      commands: [
                        (command.Sentence
                          child: 
                            (command.DParen
                              left: <Id.Op_DLeftParen _>
                              child: ($ Id.Lit_ArithVarLike write_workaround)
                              right: <Id.Op_DRightParen _>
                              redirects: []
                            )
                          terminator: <Id.Op_Semi _>
                        )
                      ]
                    )
                  then_kw: <Id.KW_Then then>
                  action: [
                    (command.ShAssignment
                      left: <Id.Lit_VarLike 'tp='>
                      pairs: [
                        (AssignPair
                          left: <Id.Lit_VarLike 'tp='>
                          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'tp='> name:tp)
                          op: assign_op.Equal
                          rhs: 
                            {
                              (CommandSub
                                left_token: <Id.Left_DollarParen '$('>
                                child: 
                                  (command.Pipeline
                                    children: [
                                      (command.Simple
                                        blame_tok: <perf>
                                        more_env: []
                                        words: [
                                          {<perf>}
                                          {<list>}
                                          {<syscalls> <Id.Lit_Colon ':'> <sys_enter_> <Id.Lit_Star '*'>}
                                        ]
                                        redirects: []
                                        do_fork: T
                                      )
                                      (command.Simple
                                        blame_tok: <awk>
                                        more_env: []
                                        words: [
                                          {<awk>}
                                          {
                                            (SQ <'\n'> 
                                              <
'\t\t    $1 != "syscalls:sys_enter_write" &&  $1 ~ /syscalls:/ { printf "-e %s ", $1 }'
                                              >
                                            )
                                          }
                                        ]
                                        redirects: []
                                        do_fork: T
                                      )
                                    ]
                                    ops: [<Id.Op_Pipe _>]
                                  )
                                right: <Id.Eof_RParen _>
                              )
                            }
                        )
                      ]
                      redirects: []
                    )
                    (command.ShAssignment
                      left: <Id.Lit_VarLike 'tp='>
                      pairs: [
                        (AssignPair
                          left: <Id.Lit_VarLike 'tp='>
                          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'>)}
                        )
                      ]
                      redirects: []
                    )
                    (command.Simple
                      blame_tok: <sh>
                      more_env: []
                      words: [
                        {<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)
                          )
                        }
                      ]
                      redirects: []
                      do_fork: T
                    )
                  ]
                  spids: [757 767]
                )
              ]
              else_kw: <Id.KW_Else else>
              else_action: [
                (command.Simple
                  blame_tok: <perf>
                  more_env: []
                  words: [
                    {<perf>}
                    {<record>}
                    {(SQ <'syscalls:sys_enter_*'>)}
                    {($ Id.VSub_DollarName cpus)}
                    {($ Id.VSub_DollarName cmd)}
                  ]
                  redirects: []
                  do_fork: T
                )
              ]
              fi_kw: <Id.KW_Fi fi>
              redirects: []
            )
            (command.Simple
              blame_tok: <printf>
              more_env: []
              words: [
                {<printf>}
                {(DQ <'%-6s %-16s %-17s %8s'> <Id.Lit_BadBackslash '\\'> <n>)}
                {(DQ <PID>)}
                {(DQ <COMM>)}
                {(DQ <SYSCALL>)}
                {(DQ <COUNT>)}
              ]
              redirects: []
              do_fork: T
            )
            (command.Pipeline
              children: [
                (command.Simple
                  blame_tok: <perf>
                  more_env: []
                  words: [
                    {<perf>}
                    {<script>}
                    {<--fields>}
                    {<pid> <Id.Lit_Comma ','> <comm> <Id.Lit_Comma ','> <event>}
                  ]
                  redirects: []
                  do_fork: T
                )
                (command.Simple
                  blame_tok: <awk>
                  more_env: []
                  words: [
                    {<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}'>
                      )
                    }
                  ]
                  redirects: []
                  do_fork: T
                )
                (command.Simple
                  blame_tok: <sort>
                  more_env: []
                  words: [{<sort>} {<-n>} {<-k4>}]
                  redirects: []
                  do_fork: T
                )
                (command.Simple
                  blame_tok: <Id.VSub_DollarName '$tcmd'>
                  more_env: []
                  words: [{($ Id.VSub_DollarName tcmd)}]
                  redirects: []
                  do_fork: T
                )
              ]
              ops: [<Id.Op_Pipe _> <Id.Op_Pipe _> <Id.Op_Pipe _>]
            )
            (command.ControlFlow keyword:<Id.ControlFlow_Exit exit>)
          ]
          spids: [740 754]
        )
      ]
      else_action: []
      fi_kw: <Id.KW_Fi fi>
      redirects: []
    )
    (command.ShAssignment
      left: <Id.Lit_VarLike 'tp='>
      pairs: [
        (AssignPair
          left: <Id.Lit_VarLike 'tp='>
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'tp='> name:tp)
          op: assign_op.Equal
          rhs: {(DQ <'-e raw_syscalls:sys_enter'>)}
        )
      ]
      redirects: []
    )
    (command.If
      if_kw: <Id.KW_If if>
      arms: [
        (IfArm
          keyword: <Id.KW_If if>
          cond: 
            (condition.Shell
              commands: [
                (command.Sentence
                  child: 
                    (command.DParen
                      left: <Id.Op_DLeftParen _>
                      child: ($ Id.Lit_ArithVarLike write_workaround)
                      right: <Id.Op_DRightParen _>
                      redirects: []
                    )
                  terminator: <Id.Op_Semi _>
                )
              ]
            )
          then_kw: <Id.KW_Then then>
          action: [
            (command.Simple
              blame_tok: <sh>
              more_env: []
              words: [
                {<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)
                  )
                }
              ]
              redirects: []
              do_fork: T
            )
          ]
          spids: [924 934]
        )
      ]
      else_kw: <Id.KW_Else else>
      else_action: [
        (command.Simple
          blame_tok: <perf>
          more_env: []
          words: [
            {<perf>}
            {<record>}
            {($ Id.VSub_DollarName tp)}
            {($ Id.VSub_DollarName cpus)}
            {($ Id.VSub_DollarName cmd)}
          ]
          redirects: []
          do_fork: T
        )
      ]
      fi_kw: <Id.KW_Fi fi>
      redirects: []
    )
    (command.If
      if_kw: <Id.KW_If if>
      arms: [
        (IfArm
          keyword: <Id.KW_If if>
          cond: 
            (condition.Shell
              commands: [
                (command.Sentence
                  child: 
                    (command.DParen
                      left: <Id.Op_DLeftParen _>
                      child: ($ Id.Lit_ArithVarLike opt_verbose)
                      right: <Id.Op_DRightParen _>
                      redirects: []
                    )
                  terminator: <Id.Op_Semi _>
                )
              ]
            )
          then_kw: <Id.KW_Then then>
          action: [
            (command.Simple
              blame_tok: <printf>
              more_env: []
              words: [
                {<printf>}
                {(DQ <'%-6s %-16s %8s'> <Id.Lit_BadBackslash '\\'> <n>)}
                {(DQ <PID>)}
                {(DQ <COMM>)}
                {(DQ <COUNT>)}
              ]
              redirects: []
              do_fork: T
            )
            (command.Pipeline
              children: [
                (command.Simple
                  blame_tok: <perf>
                  more_env: []
                  words: [{<perf>} {<script>} {<--fields>} {<pid> <Id.Lit_Comma ','> <comm>}]
                  redirects: []
                  do_fork: T
                )
                (command.Simple
                  blame_tok: <awk>
                  more_env: []
                  words: [
                    {<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}'>
                      )
                    }
                  ]
                  redirects: []
                  do_fork: T
                )
                (command.Simple
                  blame_tok: <sort>
                  more_env: []
                  words: [{<sort>} {<-n>} {<-k3>}]
                  redirects: []
                  do_fork: T
                )
                (command.Simple
                  blame_tok: <Id.VSub_DollarName '$tcmd'>
                  more_env: []
                  words: [{($ Id.VSub_DollarName tcmd)}]
                  redirects: []
                  do_fork: T
                )
              ]
              ops: [<Id.Op_Pipe _> <Id.Op_Pipe _> <Id.Op_Pipe _>]
            )
          ]
          spids: [969 979]
        )
      ]
      else_kw: <Id.KW_Else else>
      else_action: [
        (command.Simple
          blame_tok: <printf>
          more_env: []
          words: [
            {<printf>}
            {(DQ <'%-16s %8s'> <Id.Lit_BadBackslash '\\'> <n>)}
            {(DQ <COMM>)}
            {(DQ <COUNT>)}
          ]
          redirects: []
          do_fork: T
        )
        (command.Pipeline
          children: [
            (command.Simple
              blame_tok: <perf>
              more_env: []
              words: [{<perf>} {<script>} {<--fields>} {<comm>}]
              redirects: []
              do_fork: T
            )
            (command.Simple
              blame_tok: <awk>
              more_env: []
              words: [
                {<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}'>
                  )
                }
              ]
              redirects: []
              do_fork: T
            )
            (command.Simple
              blame_tok: <sort>
              more_env: []
              words: [{<sort>} {<-n>} {<-k2>}]
              redirects: []
              do_fork: T
            )
            (command.Simple
              blame_tok: <Id.VSub_DollarName '$tcmd'>
              more_env: []
              words: [{($ Id.VSub_DollarName tcmd)}]
              redirects: []
              do_fork: T
            )
          ]
          ops: [<Id.Op_Pipe _> <Id.Op_Pipe _> <Id.Op_Pipe _>]
        )
      ]
      fi_kw: <Id.KW_Fi fi>
      redirects: []
    )
  ]
)