(command.CommandList
  children: [
    (C {(KW_Set set)} {(-o)} {(nounset)})
    (C {(KW_Set set)} {(-o)} {(pipefail)})
    (C {(KW_Set set)} {(-o)} {(errexit)})
    (C {(source)} {(test/common.sh)})
    (command.ShFunction
      name: _banner
      body: 
        (command.BraceGroup
          children: [(C {(echo)} {(-----)}) (C {(echo)} {(DQ ($ VSub_At '$@'))}) (C {(echo)} {(-----)})]
        )
    )
    (command.ShFunction
      name: prereq
      body: (command.BraceGroup children:[(C {(test/unit.sh)} {(all)}) (C {(test/spec.sh)} {(all)})])
    )
    (command.ShFunction
      name: measure-shells
      body: 
        (command.BraceGroup
          children: [
            (C {(local)} 
              {(Lit_VarLike 'base_dir=') 
                (braced_var_sub
                  token: <VSub_Number 1>
                  suffix_op: 
                    (suffix_op.Unary
                      op_id: VTest_ColonHyphen
                      arg_word: {(..) (Lit_Slash /) (benchmark-data)}
                    )
                )
              }
            )
            (C {(local)} {(provenance)})
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name name:provenance)
                  op: Equal
                  rhs: 
                    {
                      (command_sub
                        left_token: <Left_DollarParen '$('>
                        command_list: 
                          (command.CommandList
                            children: [(C {(benchmarks/id.sh)} {(shell-provenance)})]
                          )
                      )
                    }
                )
              ]
            )
            (C {(benchmarks/vm-baseline.sh)} {(measure)} {($ VSub_DollarName '$provenance')} 
              {($ VSub_DollarName '$base_dir') (/vm-baseline)}
            )
            (C {(benchmarks/osh-runtime.sh)} {(measure)} {($ VSub_DollarName '$provenance')} 
              {($ VSub_DollarName '$base_dir') (/osh-runtime)}
            )
            (C {(benchmarks/osh-parser.sh)} {(measure)} {($ VSub_DollarName '$provenance')} 
              {($ VSub_DollarName '$base_dir') (/osh-parser)}
            )
          ]
        )
    )
    (command.ShFunction
      name: measure-builds
      body: 
        (command.BraceGroup
          children: [
            (C {(local)} 
              {(Lit_VarLike 'base_dir=') 
                (braced_var_sub
                  token: <VSub_Number 1>
                  suffix_op: 
                    (suffix_op.Unary
                      op_id: VTest_ColonHyphen
                      arg_word: {(..) (Lit_Slash /) (benchmark-data)}
                    )
                )
              }
            )
            (C {(local)} {(provenance)})
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name name:provenance)
                  op: Equal
                  rhs: 
                    {
                      (command_sub
                        left_token: <Left_DollarParen '$('>
                        command_list: 
                          (command.CommandList
                            children: [(C {(benchmarks/id.sh)} {(compiler-provenance)})]
                          )
                      )
                    }
                )
              ]
            )
            (C {(benchmarks/ovm-build.sh)} {(measure)} {($ VSub_DollarName '$provenance')} 
              {($ VSub_DollarName '$base_dir') (/ovm-build)}
            )
          ]
        )
    )
    (command.ShFunction
      name: all
      body: (command.BraceGroup children:[(C {(measure-shells)}) (C {(measure-builds)})])
    )
    (command.ShFunction
      name: demo-tasks
      body: 
        (command.BraceGroup
          children: [
            (C {(local)} {(Lit_VarLike 'provenance=') ($ VSub_Number '$1')})
            (C {(local)} 
              {(Lit_VarLike 'name=') 
                (command_sub
                  left_token: <Left_DollarParen '$('>
                  command_list: 
                    (command.CommandList
                      children: [(C {(basename)} {($ VSub_DollarName '$provenance')})]
                    )
                )
              }
            )
            (C {(local)} 
              {(Lit_VarLike 'job_id=') 
                (braced_var_sub
                  token: <VSub_Name name>
                  suffix_op: (suffix_op.Unary op_id:VOp1_Percent arg_word:{(.provenance.txt)})
                )
              }
            )
            (C {(echo)} {(DQ ('JOB ID: ') ($ VSub_DollarName '$job_id'))})
            (command.Pipeline
              children: [
                (C {(cat)} {($ VSub_DollarName '$provenance')})
                (command.WhileUntil
                  keyword: <KW_While while>
                  cond: [
                    (command.Sentence
                      child: (C {(read)} {(_)} {(_)} {(_)} {(sh_path)} {(_)})
                      terminator: <Op_Semi ';'>
                    )
                  ]
                  body: 
                    (command.DoGroup
                      children: [
                        (command.ForEach
                          iter_name: i
                          iter_words: [{(1)} {(2)} {(3)}]
                          do_arg_iter: F
                          body: 
                            (command.DoGroup
                              children: [
                                (C {(echo)} {($ VSub_DollarName '$i')} {($ VSub_DollarName '$sh_path')})
                              ]
                            )
                        )
                      ]
                    )
                )
              ]
              negated: F
            )
          ]
        )
    )
    (C {(DQ ($ VSub_At '$@'))})
  ]
)