Generated by Cython 0.13 on Fri Apr 15 13:16:36 2011

Raw output: _sagenb_flask_sage_notebook_sagenb_home_openidSfmMv1OuVE_31_code_sage78_spyx_0.c

 1: 
 2: include "interrupt.pxi"  # ctrl-c interrupt block support
  /* "/tmp/sagenbflask/temp/boxen/25597/spyx/_sagenb_flask_sage_notebook_sagenb_home_openidSfmMv1OuVE_31_code_sage78_spyx/_sagenb_flask_sage_notebook_sagenb_home_openidSfmMv1OuVE_31_code_sage78_spyx_0.pyx":2
 * 
 * include "interrupt.pxi"  # ctrl-c interrupt block support             # <<<<<<<<<<<<<<
 * include "stdsage.pxi"  # ctrl-c interrupt block support
 * 
 */
  __pyx_t_1 = PyDict_New(); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(((PyObject *)__pyx_t_1));
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s____test__, ((PyObject *)__pyx_t_1)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
 3: include "stdsage.pxi"  # ctrl-c interrupt block support
 4: 
 5: include "cdefs.pxi"
 6: cpdef int add_cython2(int a, int b):
/* "/tmp/sagenbflask/temp/boxen/25597/spyx/_sagenb_flask_sage_notebook_sagenb_home_openidSfmMv1OuVE_31_code_sage78_spyx/_sagenb_flask_sage_notebook_sagenb_home_openidSfmMv1OuVE_31_code_sage78_spyx_0.pyx":6
 * 
 * include "cdefs.pxi"
 * cpdef int add_cython2(int a, int b):             # <<<<<<<<<<<<<<
 *     return a + b
 * 
 */

static PyObject *__pyx_pf_78_sagenb_flask_sage_notebook_sagenb_home_openidSfmMv1OuVE_31_code_sage78_spyx_0_add_cython2(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static  int __pyx_f_78_sagenb_flask_sage_notebook_sagenb_home_openidSfmMv1OuVE_31_code_sage78_spyx_0_add_cython2(int __pyx_v_a, int __pyx_v_b, int __pyx_skip_dispatch) {
  int __pyx_r;
  __Pyx_RefNannySetupContext("add_cython2");

/* "/tmp/sagenbflask/temp/boxen/25597/spyx/_sagenb_flask_sage_notebook_sagenb_home_openidSfmMv1OuVE_31_code_sage78_spyx/_sagenb_flask_sage_notebook_sagenb_home_openidSfmMv1OuVE_31_code_sage78_spyx_0.pyx":6
 * 
 * include "cdefs.pxi"
 * cpdef int add_cython2(int a, int b):             # <<<<<<<<<<<<<<
 *     return a + b
 * 
 */

static PyObject *__pyx_pf_78_sagenb_flask_sage_notebook_sagenb_home_openidSfmMv1OuVE_31_code_sage78_spyx_0_add_cython2(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_78_sagenb_flask_sage_notebook_sagenb_home_openidSfmMv1OuVE_31_code_sage78_spyx_0_add_cython2[] = "File: _sagenb_flask_sage_notebook_sagenb_home_openidSfmMv1OuVE_31_code_sage78_spyx_0.pyx (starting at line 6)";
static PyObject *__pyx_pf_78_sagenb_flask_sage_notebook_sagenb_home_openidSfmMv1OuVE_31_code_sage78_spyx_0_add_cython2(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  int __pyx_v_a;
  int __pyx_v_b;
  PyObject *__pyx_r = NULL;
  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s__a,&__pyx_n_s__b,0};
  __Pyx_RefNannySetupContext("add_cython2");
  __pyx_self = __pyx_self;
  if (unlikely(__pyx_kwds)) {
    Py_ssize_t kw_args = PyDict_Size(__pyx_kwds);
    PyObject* values[2] = {0,0};
    switch (PyTuple_GET_SIZE(__pyx_args)) {
      case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      case  0: break;
      default: goto __pyx_L5_argtuple_error;
    }
    switch (PyTuple_GET_SIZE(__pyx_args)) {
      case  0:
      values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__a);
      if (likely(values[0])) kw_args--;
      else goto __pyx_L5_argtuple_error;
      case  1:
      values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__b);
      if (likely(values[1])) kw_args--;
      else {
        __Pyx_RaiseArgtupleInvalid("add_cython2", 1, 2, 2, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 6; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
      }
    }
    if (unlikely(kw_args > 0)) {
      if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "add_cython2") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 6; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
    }
    __pyx_v_a = __Pyx_PyInt_AsInt(values[0]); if (unlikely((__pyx_v_a == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 6; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
    __pyx_v_b = __Pyx_PyInt_AsInt(values[1]); if (unlikely((__pyx_v_b == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 6; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
  } else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
    goto __pyx_L5_argtuple_error;
  } else {
    __pyx_v_a = __Pyx_PyInt_AsInt(PyTuple_GET_ITEM(__pyx_args, 0)); if (unlikely((__pyx_v_a == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 6; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
    __pyx_v_b = __Pyx_PyInt_AsInt(PyTuple_GET_ITEM(__pyx_args, 1)); if (unlikely((__pyx_v_b == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 6; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("add_cython2", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 6; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
  __pyx_L3_error:;
  __Pyx_AddTraceback("_sagenb_flask_sage_notebook_sagenb_home_openidSfmMv1OuVE_31_code_sage78_spyx_0.add_cython2");
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyInt_FromLong(__pyx_f_78_sagenb_flask_sage_notebook_sagenb_home_openidSfmMv1OuVE_31_code_sage78_spyx_0_add_cython2(__pyx_v_a, __pyx_v_b, 0)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 6; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("_sagenb_flask_sage_notebook_sagenb_home_openidSfmMv1OuVE_31_code_sage78_spyx_0.add_cython2");
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
 7:     return a + b
  /* "/tmp/sagenbflask/temp/boxen/25597/spyx/_sagenb_flask_sage_notebook_sagenb_home_openidSfmMv1OuVE_31_code_sage78_spyx/_sagenb_flask_sage_notebook_sagenb_home_openidSfmMv1OuVE_31_code_sage78_spyx_0.pyx":7
 * include "cdefs.pxi"
 * cpdef int add_cython2(int a, int b):
 *     return a + b             # <<<<<<<<<<<<<<
 * 
 * def f2(int n):
 */
  __pyx_r = (__pyx_v_a + __pyx_v_b);
  goto __pyx_L0;

  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
 8: 
 9: def f2(int n):
/* "/tmp/sagenbflask/temp/boxen/25597/spyx/_sagenb_flask_sage_notebook_sagenb_home_openidSfmMv1OuVE_31_code_sage78_spyx/_sagenb_flask_sage_notebook_sagenb_home_openidSfmMv1OuVE_31_code_sage78_spyx_0.pyx":9
 *     return a + b
 * 
 * def f2(int n):             # <<<<<<<<<<<<<<
 *     cdef int i, s=0
 *     for i in range(n):
 */

static PyObject *__pyx_pf_78_sagenb_flask_sage_notebook_sagenb_home_openidSfmMv1OuVE_31_code_sage78_spyx_0_f2(PyObject *__pyx_self, PyObject *__pyx_arg_n); /*proto*/
static char __pyx_doc_78_sagenb_flask_sage_notebook_sagenb_home_openidSfmMv1OuVE_31_code_sage78_spyx_0_f2[] = "File: _sagenb_flask_sage_notebook_sagenb_home_openidSfmMv1OuVE_31_code_sage78_spyx_0.pyx (starting at line 9)";
static PyObject *__pyx_pf_78_sagenb_flask_sage_notebook_sagenb_home_openidSfmMv1OuVE_31_code_sage78_spyx_0_f2(PyObject *__pyx_self, PyObject *__pyx_arg_n) {
  int __pyx_v_n;
  int __pyx_v_i;
  int __pyx_v_s;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannySetupContext("f2");
  __pyx_self = __pyx_self;
  assert(__pyx_arg_n); {
    __pyx_v_n = __Pyx_PyInt_AsInt(__pyx_arg_n); if (unlikely((__pyx_v_n == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 9; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("_sagenb_flask_sage_notebook_sagenb_home_openidSfmMv1OuVE_31_code_sage78_spyx_0.f2");
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
 10:     cdef int i, s=0
  /* "/tmp/sagenbflask/temp/boxen/25597/spyx/_sagenb_flask_sage_notebook_sagenb_home_openidSfmMv1OuVE_31_code_sage78_spyx/_sagenb_flask_sage_notebook_sagenb_home_openidSfmMv1OuVE_31_code_sage78_spyx_0.pyx":10
 * 
 * def f2(int n):
 *     cdef int i, s=0             # <<<<<<<<<<<<<<
 *     for i in range(n):
 *         s += add_cython2(s, i)
 */
  __pyx_v_s = 0;
 11:     for i in range(n):
  /* "/tmp/sagenbflask/temp/boxen/25597/spyx/_sagenb_flask_sage_notebook_sagenb_home_openidSfmMv1OuVE_31_code_sage78_spyx/_sagenb_flask_sage_notebook_sagenb_home_openidSfmMv1OuVE_31_code_sage78_spyx_0.pyx":11
 * def f2(int n):
 *     cdef int i, s=0
 *     for i in range(n):             # <<<<<<<<<<<<<<
 *         s += add_cython2(s, i)
 *     return s
 */
  __pyx_t_1 = __pyx_v_n;
  for (__pyx_t_2 = 0; __pyx_t_2 < __pyx_t_1; __pyx_t_2+=1) {
    __pyx_v_i = __pyx_t_2;
 12:         s += add_cython2(s, i)
    /* "/tmp/sagenbflask/temp/boxen/25597/spyx/_sagenb_flask_sage_notebook_sagenb_home_openidSfmMv1OuVE_31_code_sage78_spyx/_sagenb_flask_sage_notebook_sagenb_home_openidSfmMv1OuVE_31_code_sage78_spyx_0.pyx":12
 *     cdef int i, s=0
 *     for i in range(n):
 *         s += add_cython2(s, i)             # <<<<<<<<<<<<<<
 *     return s
 */
    __pyx_v_s += __pyx_f_78_sagenb_flask_sage_notebook_sagenb_home_openidSfmMv1OuVE_31_code_sage78_spyx_0_add_cython2(__pyx_v_s, __pyx_v_i, 0);
  }
 13:     return s
  /* "/tmp/sagenbflask/temp/boxen/25597/spyx/_sagenb_flask_sage_notebook_sagenb_home_openidSfmMv1OuVE_31_code_sage78_spyx/_sagenb_flask_sage_notebook_sagenb_home_openidSfmMv1OuVE_31_code_sage78_spyx_0.pyx":13
 *     for i in range(n):
 *         s += add_cython2(s, i)
 *     return s             # <<<<<<<<<<<<<<
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_3 = PyInt_FromLong(__pyx_v_s); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 13; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("_sagenb_flask_sage_notebook_sagenb_home_openidSfmMv1OuVE_31_code_sage78_spyx_0.f2");
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}