(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.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:OPYC)
          op: Equal
          rhs: 
            {
              (braced_var_sub
                token: <VSub_Name OPYC>
                suffix_op: 
                  (suffix_op.Unary
                    op_id: VTest_ColonHyphen
                    arg_word: {(bin) (Lit_Slash /) (opyc)}
                  )
              )
            }
        )
      ]
    )
    (C {(readonly)} {(Lit_VarLike 'TMP_DIR=') (_tmp/opy-test)})
    (C {(mkdir)} {(-p)} {($ VSub_DollarName '$TMP_DIR')})
    (command.ShFunction
      name: usage
      body: 
        (command.BraceGroup
          children: [
            (C {(KW_Set set)} {(Lit_Other '+') (o)} {(errexit)})
            (C {(bin/opy_.py)})
            (command.AndOr
              ops: [Op_DPipe]
              children: [(C {(test)} {($ VSub_QMark '$?')} {(-eq)} {(2)}) (C {(fail)})]
            )
            (C {(bin/opy_.py)} {(--version)})
            (command.AndOr
              ops: [Op_DPipe]
              children: [(C {(test)} {($ VSub_QMark '$?')} {(-eq)} {(0)}) (C {(fail)})]
            )
            (C {(bin/opyc)})
            (command.AndOr
              ops: [Op_DPipe]
              children: [(C {(test)} {($ VSub_QMark '$?')} {(-eq)} {(2)}) (C {(fail)})]
            )
            (C {(bin/opyc)} {(invalid)})
            (command.AndOr
              ops: [Op_DPipe]
              children: [(C {(test)} {($ VSub_QMark '$?')} {(-eq)} {(2)}) (C {(fail)})]
            )
            (C {(bin/opyc)} {(--help)})
            (command.AndOr
              ops: [Op_DPipe]
              children: [(C {(test)} {($ VSub_QMark '$?')} {(-eq)} {(0)}) (C {(fail)})]
            )
          ]
        )
    )
    (command.ShFunction
      name: parse
      body: 
        (command.BraceGroup
          children: [
            (command.Simple
              words: [{(cat)}]
              redirects: [
                (redir.Redir
                  op: <Redir_Great '>'>
                  fd: 16777215
                  arg_word: {($ VSub_DollarName '$TMP_DIR') (/hello.py)}
                )
                (redir.HereDoc
                  op: <Redir_DLess '<<'>
                  fd: 16777215
                  here_begin: {(EOF)}
                  here_end_span_id: 242
                  stdin_parts: [('print(1+2)\n')]
                )
              ]
            )
            (C {($ VSub_DollarName '$OPYC')} {(parse)} {($ VSub_DollarName '$TMP_DIR') (/hello.py)})
          ]
        )
    )
    (command.ShFunction
      name: compile
      body: 
        (command.BraceGroup
          children: [
            (command.Simple
              words: [{(cat)}]
              redirects: [
                (redir.Redir
                  op: <Redir_Great '>'>
                  fd: 16777215
                  arg_word: {($ VSub_DollarName '$TMP_DIR') (/loop.py)}
                )
                (redir.HereDoc
                  op: <Redir_DLess '<<'>
                  fd: 16777215
                  here_begin: {(EOF)}
                  here_end_span_id: 273
                  stdin_parts: [('for i in xrange(4):\n') ('  print(i*i)\n')]
                )
              ]
            )
            (C {($ VSub_DollarName '$OPYC')} {(compile)} {($ VSub_DollarName '$TMP_DIR') (/loop.py)} 
              {($ VSub_DollarName '$TMP_DIR') (/loop.opyc)}
            )
            (command.Simple
              words: [{(python)} {($ VSub_DollarName '$TMP_DIR') (/loop.opyc)}]
              redirects: [(redir.Redir op:<Redir_Great '>'> fd:16777215 arg_word:{(out.txt)})]
            )
            (command.AndOr
              ops: [Op_DPipe]
              children: [
                (command.Simple
                  words: [{(diff)} {(out.txt)} {(-)}]
                  redirects: [
                    (redir.HereDoc
                      op: <Redir_DLess '<<'>
                      fd: 16777215
                      here_begin: {(EOF)}
                      here_end_span_id: 320
                      stdin_parts: [('0\n') ('1\n') ('4\n') ('9\n')]
                    )
                  ]
                )
                (C {(fail)})
              ]
            )
          ]
        )
    )
    (C {(readonly)} {(-a)} 
      {(Lit_VarLike 'PASSING=') 
        (sh_array_literal left:<Op_LParen '('> words:[{(usage)} {(parse)} {(compile)}])
      }
    )
    (command.ShFunction
      name: all-passing
      body: 
        (command.BraceGroup
          children: [
            (C {(run-all)} 
              {
                (DQ 
                  (braced_var_sub
                    token: <VSub_Name PASSING>
                    bracket_op: (bracket_op.WholeArray op_id:Lit_At)
                  )
                )
              }
            )
          ]
        )
    )
    (command.ShFunction
      name: run-for-release
      body: 
        (command.BraceGroup
          children: [
            (command.Simple
              words: [
                {($ VSub_Number '$0')}
                {(run-all)}
                {
                  (DQ 
                    (braced_var_sub
                      token: <VSub_Name PASSING>
                      bracket_op: (bracket_op.WholeArray op_id:Lit_At)
                    )
                  )
                }
              ]
              more_env: [(env_pair name:OPYC val:{(_bin/opyc)})]
            )
          ]
        )
    )
    (C {(DQ ($ VSub_At '$@'))})
  ]
)