1: cdef int a, b
2: cdef int *foo = &a if a else &b
if (__pyx_v_4cond_a) {
__pyx_1 = (&__pyx_v_4cond_a);
} else {
__pyx_1 = (&__pyx_v_4cond_b);
}
__pyx_v_4cond_foo = __pyx_1;

3:
4:
5: #cdef double x = &a + 3.3
6:
7: cdef double x = a if a else 3.3
if (__pyx_v_4cond_a) {
__pyx_2 = __pyx_v_4cond_a;
} else {
__pyx_2 = 3.3;
}
__pyx_v_4cond_x = __pyx_2;

8:
9: cdef object s = [], t, u, v = [1,2,3]
__pyx_3 = PyList_New(0); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 9; goto __pyx_L1;}
__pyx_v_4cond_s = __pyx_3;
__pyx_3 = 0;

__pyx_3 = PyList_New(3); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 9; goto __pyx_L1;}
Py_INCREF(__pyx_num_1);
PyList_SET_ITEM(__pyx_3, 0, __pyx_num_1);
Py_INCREF(__pyx_num_2);
PyList_SET_ITEM(__pyx_3, 1, __pyx_num_2);
Py_INCREF(__pyx_num_3);
PyList_SET_ITEM(__pyx_3, 2, __pyx_num_3);
__pyx_v_4cond_v = __pyx_3;
__pyx_3 = 0;

10: z = 1 coerce~ 2
__pyx_3 = __Pyx_PyBool_FromLong((1 < 2)); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 10; goto __pyx_L1;}
if (PyObject_SetAttr(__pyx_m, __pyx_n_z, __pyx_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 10; goto __pyx_L1;}
Py_DECREF(__pyx_3); __pyx_3 = 0;
11: z = t is s == u is v
__pyx_3 = __Pyx_PyBool_FromLong(__pyx_v_4cond_t == __pyx_v_4cond_s);
if (__Pyx_PyObject_IsTrue(__pyx_3)) {
__pyx_3 = PyObject_RichCompare(__pyx_v_4cond_s, __pyx_v_4cond_u, Py_EQ); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 11; goto __pyx_L1;}
if (__Pyx_PyObject_IsTrue(__pyx_3)) {
__pyx_3 = __Pyx_PyBool_FromLong(__pyx_v_4cond_u == __pyx_v_4cond_v);
}
}
if (PyObject_SetAttr(__pyx_m, __pyx_n_z, __pyx_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 11; goto __pyx_L1;}
Py_DECREF(__pyx_3); __pyx_3 = 0;
12: z = t coerceis s is u is v
__pyx_4 = (__pyx_v_4cond_t == __pyx_v_4cond_s);
if (__pyx_4) {
__pyx_4 = (__pyx_v_4cond_s == __pyx_v_4cond_u);
if (__pyx_4) {
__pyx_4 = (__pyx_v_4cond_u == __pyx_v_4cond_v);
}
}
__pyx_3 = __Pyx_PyBool_FromLong(__pyx_4); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 12; goto __pyx_L1;}
if (PyObject_SetAttr(__pyx_m, __pyx_n_z, __pyx_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 12; goto __pyx_L1;}
Py_DECREF(__pyx_3); __pyx_3 = 0;
13: z = t == s in v
__pyx_3 = PyObject_RichCompare(__pyx_v_4cond_t, __pyx_v_4cond_s, Py_EQ); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 13; goto __pyx_L1;}
if (__Pyx_PyObject_IsTrue(__pyx_3)) {
__pyx_3 = __Pyx_PyBool_FromLong(PySequence_Contains(__pyx_v_4cond_v, __pyx_v_4cond_s)); if (unlikely(__pyx_3 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 13; goto __pyx_L1;}
}
if (PyObject_SetAttr(__pyx_m, __pyx_n_z, __pyx_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 13; goto __pyx_L1;}
Py_DECREF(__pyx_3); __pyx_3 = 0;
14: z = t coercenot in s
__pyx_4 = (!PySequence_Contains(__pyx_v_4cond_s, __pyx_v_4cond_t)); if (unlikely(__pyx_4 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 14; goto __pyx_L1;}
__pyx_3 = __Pyx_PyBool_FromLong(__pyx_4); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 14; goto __pyx_L1;}
if (PyObject_SetAttr(__pyx_m, __pyx_n_z, __pyx_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 14; goto __pyx_L1;}
Py_DECREF(__pyx_3); __pyx_3 = 0;
15:
16: #import re
17: #re.compile('/* */') # the '*/' here is bad
18:
19: a
__pyx_v_4cond_a;
20: b
__pyx_v_4cond_b;
21:
22: cdef class A:
23:     cdef int foo(A aa, int a) except -2:

/* Implementation of cond */


static PyObject *__pyx_num_1;
static PyObject *__pyx_num_2;
static PyObject *__pyx_num_3;

static PyObject *__pyx_n_bar;
static PyObject *__pyx_n_test;
static PyObject *__pyx_n_test2;
static PyObject *__pyx_n_z;

static int __pyx_f_4cond_1A_foo(struct __pyx_obj_4cond_A *__pyx_v_aa,int __pyx_v_a) {
int __pyx_r;
Py_INCREF(__pyx_v_aa);
24:         return a
__pyx_r = __pyx_v_a;
goto __pyx_L0;

__pyx_r = 0;
__pyx_L0:;
Py_DECREF(__pyx_v_aa);
return __pyx_r;
}
25:        
26:     cdef int foo2(A aa, int a) except -2:

static int __pyx_f_4cond_1A_foo2(struct __pyx_obj_4cond_A *__pyx_v_aa,int __pyx_v_a) {
int __pyx_r;
int __pyx_1;
Py_INCREF(__pyx_v_aa);
27:         return aacoerce
__pyx_1 = PyInt_AsLong(((PyObject *)__pyx_v_aa)); if (unlikely((__pyx_1 == -1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 27; goto __pyx_L1;}
__pyx_r = __pyx_1;
goto __pyx_L0;

__pyx_r = 0;
goto __pyx_L0;
__pyx_L1:;
__Pyx_AddTraceback("cond.A.foo2");
__pyx_r = -2;
__pyx_L0:;
Py_DECREF(__pyx_v_aa);
return __pyx_r;
}
28:        
29:     cpdef int bar(A aa, int a) except -2:

static PyObject *__pyx_pf_4cond_1A_bar(PyObject *__pyx_v_aa, PyObject *__pyx_arg_a); /*proto*/
static int __pyx_f_4cond_1A_bar(struct __pyx_obj_4cond_A *__pyx_v_aa,int __pyx_v_a) {
int __pyx_r;
PyObject *__pyx_1 = 0;
PyObject *__pyx_2 = 0;
PyObject *__pyx_3 = 0;
int __pyx_4;
Py_INCREF(__pyx_v_aa);
/* Check if called by wrapper */
if (unlikely(__pyx_skip_dispatch)) __pyx_skip_dispatch = 0;
/* Check if overriden in Python */
else if (unlikely(((PyObject *)__pyx_v_aa)->ob_type->tp_dictoffset != 0)) {
__pyx_1 = PyObject_GetAttr(((PyObject *)__pyx_v_aa), __pyx_n_bar); if (unlikely(!((PyObject *)__pyx_v_aa))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 29; goto __pyx_L1;}
if (!(strcmp(__pyx_1->ob_type->tp_name, "builtin_function_or_method") == 0) || (PyCFunction_GET_FUNCTION(__pyx_1) != &__pyx_pf_4cond_1A_bar)) {
__pyx_2 = PyInt_FromLong(__pyx_v_a); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 29; goto __pyx_L1;}
__pyx_3 = PyTuple_New(1); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 29; goto __pyx_L1;}
PyTuple_SET_ITEM(__pyx_3, 0, __pyx_2);
__pyx_2 = 0;
__pyx_2 = PyObject_CallObject(__pyx_1, __pyx_3); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 29; goto __pyx_L1;}
Py_DECREF(__pyx_1); __pyx_1 = 0;
Py_DECREF(__pyx_3); __pyx_3 = 0;
__pyx_4 = PyInt_AsLong(__pyx_2); if (unlikely((__pyx_4 == -1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 29; goto __pyx_L1;}
Py_DECREF(__pyx_2); __pyx_2 = 0;
__pyx_r = __pyx_4;
goto __pyx_L0;
}
}

static PyObject *__pyx_pf_4cond_1A_bar(PyObject *__pyx_v_aa, PyObject *__pyx_arg_a); /*proto*/
static PyObject *__pyx_pf_4cond_1A_bar(PyObject *__pyx_v_aa, PyObject *__pyx_arg_a) {
int __pyx_v_a;
PyObject *__pyx_r;
int __pyx_1;
PyObject *__pyx_2 = 0;
Py_INCREF(__pyx_v_aa);
assert(__pyx_arg_a); {
__pyx_v_a = PyInt_AsLong(__pyx_arg_a); if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 29; goto __pyx_L1;}
}
__pyx_1 = (__pyx_skip_dispatch = 1, ((struct __pyx_vtabstruct_4cond_A *)((struct __pyx_obj_4cond_A *)__pyx_v_aa)->__pyx_vtab)->bar(((struct __pyx_obj_4cond_A *)__pyx_v_aa),__pyx_v_a)); if (unlikely(__pyx_1 == -2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 29; goto __pyx_L1;}
__pyx_2 = PyInt_FromLong(__pyx_1); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 29; goto __pyx_L1;}
__pyx_r = __pyx_2;
__pyx_2 = 0;
goto __pyx_L0;

__pyx_r = Py_None; Py_INCREF(Py_None);
goto __pyx_L0;
__pyx_L1:;
Py_XDECREF(__pyx_2);
__Pyx_AddTraceback("cond.A.bar");
__pyx_r = NULL;
__pyx_L0:;
Py_DECREF(__pyx_v_aa);
return __pyx_r;
}
30:         return a
__pyx_r = __pyx_v_a;
goto __pyx_L0;

__pyx_r = 0;
goto __pyx_L0;
__pyx_L1:;
Py_XDECREF(__pyx_1);
Py_XDECREF(__pyx_2);
Py_XDECREF(__pyx_3);
__Pyx_AddTraceback("cond.A.bar");
__pyx_r = -2;
__pyx_L0:;
Py_DECREF(__pyx_v_aa);
return __pyx_r;
}
31:        
32:     def test(self):

static PyObject *__pyx_num_neg_1;
static PyObject *__pyx_num_0;
static PyObject *__pyx_num_2345;

static PyObject *__pyx_n_py_func;

static PyObject *__pyx_pf_4cond_1A_test(PyObject *__pyx_v_self, PyObject *unused); /*proto*/
static PyObject *__pyx_pf_4cond_1A_test(PyObject *__pyx_v_self, PyObject *unused) {
PyObject *__pyx_v_L;
PyObject *__pyx_r;
int __pyx_1;
int __pyx_2;
PyObject *__pyx_3 = 0;
PyObject *__pyx_4 = 0;
PyObject *__pyx_5 = 0;
Py_INCREF(__pyx_v_self);
__pyx_v_L = Py_None; Py_INCREF(Py_None);
33:         if self is None:
__pyx_1 = (__pyx_v_self == Py_None);
if (__pyx_1) {
34:             return self.foocoerce(3)
__pyx_2 = ((struct __pyx_vtabstruct_4cond_A *)((struct __pyx_obj_4cond_A *)__pyx_v_self)->__pyx_vtab)->foo(((struct __pyx_obj_4cond_A *)__pyx_v_self),3); if (unlikely(__pyx_2 == -2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 34; goto __pyx_L1;}
__pyx_3 = PyInt_FromLong(__pyx_2); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 34; goto __pyx_L1;}
__pyx_r = __pyx_3;
__pyx_3 = 0;
goto __pyx_L0;
goto __pyx_L2;
}
/*else*/ {
35:         else:
36:             py_func(1)
__pyx_3 = __Pyx_GetName(__pyx_m, __pyx_n_py_func); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 36; goto __pyx_L1;}
__pyx_4 = PyTuple_New(1); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 36; goto __pyx_L1;}
Py_INCREF(__pyx_num_1);
PyTuple_SET_ITEM(__pyx_4, 0, __pyx_num_1);
__pyx_5 = PyObject_CallObject(__pyx_3, __pyx_4); if (unlikely(!__pyx_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 36; goto __pyx_L1;}
Py_DECREF(__pyx_3); __pyx_3 = 0;
Py_DECREF(__pyx_4); __pyx_4 = 0;
Py_DECREF(__pyx_5); __pyx_5 = 0;
37:             L = -1, 0, 1, 1, 2345
__pyx_3 = PyTuple_New(5); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 37; goto __pyx_L1;}
Py_INCREF(__pyx_num_neg_1);
PyTuple_SET_ITEM(__pyx_3, 0, __pyx_num_neg_1);
Py_INCREF(__pyx_num_0);
PyTuple_SET_ITEM(__pyx_3, 1, __pyx_num_0);
Py_INCREF(__pyx_num_1);
PyTuple_SET_ITEM(__pyx_3, 2, __pyx_num_1);
Py_INCREF(__pyx_num_1);
PyTuple_SET_ITEM(__pyx_3, 3, __pyx_num_1);
Py_INCREF(__pyx_num_2345);
PyTuple_SET_ITEM(__pyx_3, 4, __pyx_num_2345);
Py_DECREF(__pyx_v_L);
__pyx_v_L = __pyx_3;
__pyx_3 = 0;
38:             return L
Py_INCREF(__pyx_v_L);
__pyx_r = __pyx_v_L;
goto __pyx_L0;
}
__pyx_L2:;

__pyx_r = Py_None; Py_INCREF(Py_None);
goto __pyx_L0;
__pyx_L1:;
Py_XDECREF(__pyx_3);
Py_XDECREF(__pyx_4);
Py_XDECREF(__pyx_5);
__Pyx_AddTraceback("cond.A.test");
__pyx_r = NULL;
__pyx_L0:;
Py_DECREF(__pyx_v_L);
Py_DECREF(__pyx_v_self);
return __pyx_r;
}
39:        
40:     def test2(self):

static PyObject *__pyx_pf_4cond_1A_test2(PyObject *__pyx_v_self, PyObject *unused); /*proto*/
static PyObject *__pyx_pf_4cond_1A_test2(PyObject *__pyx_v_self, PyObject *unused) {
PyObject *__pyx_r;
PyObject *__pyx_1 = 0;
PyObject *__pyx_2 = 0;
Py_INCREF(__pyx_v_self);
41:         return self.test()
__pyx_1 = PyObject_GetAttr(__pyx_v_self, __pyx_n_test); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 41; goto __pyx_L1;}
__pyx_2 = PyObject_CallObject(__pyx_1, 0); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 41; goto __pyx_L1;}
Py_DECREF(__pyx_1); __pyx_1 = 0;
__pyx_r = __pyx_2;
__pyx_2 = 0;
goto __pyx_L0;

__pyx_r = Py_None; Py_INCREF(Py_None);
goto __pyx_L0;
__pyx_L1:;
Py_XDECREF(__pyx_1);
Py_XDECREF(__pyx_2);
__Pyx_AddTraceback("cond.A.test2");
__pyx_r = NULL;
__pyx_L0:;
Py_DECREF(__pyx_v_self);
return __pyx_r;
}
42:        
43: cdef A aa
44: print aa coerceis None
__pyx_4 = (((PyObject *)__pyx_v_4cond_aa) == Py_None);
__pyx_3 = __Pyx_PyBool_FromLong(__pyx_4); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 44; goto __pyx_L1;}
if (__Pyx_PrintItem(__pyx_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 44; goto __pyx_L1;}
Py_DECREF(__pyx_3); __pyx_3 = 0;
if (__Pyx_PrintNewline() < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 44; goto __pyx_L1;}
45:
46: cdef A aaa
47: print aaa == aa
__pyx_3 = PyObject_RichCompare(((PyObject *)__pyx_v_4cond_aaa), ((PyObject *)__pyx_v_4cond_aa), Py_EQ); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 47; goto __pyx_L1;}
if (__Pyx_PrintItem(__pyx_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 47; goto __pyx_L1;}
Py_DECREF(__pyx_3); __pyx_3 = 0;
if (__Pyx_PrintNewline() < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 47; goto __pyx_L1;}
48:
49: def py_func(x):

static PyObject *__pyx_pf_4cond_py_func(PyObject *__pyx_self, PyObject *__pyx_v_x); /*proto*/
static PyObject *__pyx_pf_4cond_py_func(PyObject *__pyx_self, PyObject *__pyx_v_x) {
PyObject *__pyx_r;
Py_INCREF(__pyx_v_x);

__pyx_r = Py_None; Py_INCREF(Py_None);
Py_DECREF(__pyx_v_x);
return __pyx_r;
}

static __Pyx_InternTabEntry __pyx_intern_tab[] = {
{&__pyx_n_bar, "bar"},
{&__pyx_n_py_func, "py_func"},
{&__pyx_n_test, "test"},
{&__pyx_n_test2, "test2"},
{&__pyx_n_z, "z"},
{0, 0}
};
static struct __pyx_vtabstruct_4cond_A __pyx_vtable_4cond_A;

static PyObject *__pyx_tp_new_4cond_A(PyTypeObject *t, PyObject *a, PyObject *k) {
struct __pyx_obj_4cond_A *p;
PyObject *o = (*t->tp_alloc)(t, 0);
if (!o) return 0;
p = ((struct __pyx_obj_4cond_A *)o);
*(struct __pyx_vtabstruct_4cond_A **)&p->__pyx_vtab = __pyx_vtabptr_4cond_A;
return o;
}

static void __pyx_tp_dealloc_4cond_A(PyObject *o) {
(*o->ob_type->tp_free)(o);
}

static int __pyx_tp_traverse_4cond_A(PyObject *o, visitproc v, void *a) {
return 0;
}

static int __pyx_tp_clear_4cond_A(PyObject *o) {
return 0;
}

static struct PyMethodDef __pyx_methods_4cond_A[] = {
{"bar", (PyCFunction)__pyx_pf_4cond_1A_bar, METH_O, 0},
{"test", (PyCFunction)__pyx_pf_4cond_1A_test, METH_NOARGS, 0},
{"test2", (PyCFunction)__pyx_pf_4cond_1A_test2, METH_NOARGS, 0},
{0, 0, 0, 0}
};

static PyNumberMethods __pyx_tp_as_number_A = {
0, /*nb_add*/
0, /*nb_subtract*/
0, /*nb_multiply*/
0, /*nb_divide*/
0, /*nb_remainder*/
0, /*nb_divmod*/
0, /*nb_power*/
0, /*nb_negative*/
0, /*nb_positive*/
0, /*nb_absolute*/
0, /*nb_nonzero*/
0, /*nb_invert*/
0, /*nb_lshift*/
0, /*nb_rshift*/
0, /*nb_and*/
0, /*nb_xor*/
0, /*nb_or*/
0, /*nb_coerce*/
0, /*nb_int*/
0, /*nb_long*/
0, /*nb_float*/
0, /*nb_oct*/
0, /*nb_hex*/
0, /*nb_inplace_add*/
0, /*nb_inplace_subtract*/
0, /*nb_inplace_multiply*/
0, /*nb_inplace_divide*/
0, /*nb_inplace_remainder*/
0, /*nb_inplace_power*/
0, /*nb_inplace_lshift*/
0, /*nb_inplace_rshift*/
0, /*nb_inplace_and*/
0, /*nb_inplace_xor*/
0, /*nb_inplace_or*/
0, /*nb_floor_divide*/
0, /*nb_true_divide*/
0, /*nb_inplace_floor_divide*/
0, /*nb_inplace_true_divide*/
#if Py_TPFLAGS_DEFAULT & Py_TPFLAGS_HAVE_INDEX
0, /*nb_index*/
#endif
};

static PySequenceMethods __pyx_tp_as_sequence_A = {
0, /*sq_length*/
0, /*sq_concat*/
0, /*sq_repeat*/
0, /*sq_item*/
0, /*sq_slice*/
0, /*sq_ass_item*/
0, /*sq_ass_slice*/
0, /*sq_contains*/
0, /*sq_inplace_concat*/
0, /*sq_inplace_repeat*/
};

static PyMappingMethods __pyx_tp_as_mapping_A = {
0, /*mp_length*/
0, /*mp_subscript*/
0, /*mp_ass_subscript*/
};

static PyBufferProcs __pyx_tp_as_buffer_A = {
0, /*bf_getreadbuffer*/
0, /*bf_getwritebuffer*/
0, /*bf_getsegcount*/
0, /*bf_getcharbuffer*/
};

PyTypeObject __pyx_type_4cond_A = {
PyObject_HEAD_INIT(0)
0, /*ob_size*/
"cond.A", /*tp_name*/
sizeof(struct __pyx_obj_4cond_A), /*tp_basicsize*/
0, /*tp_itemsize*/
__pyx_tp_dealloc_4cond_A, /*tp_dealloc*/
0, /*tp_print*/
0, /*tp_getattr*/
0, /*tp_setattr*/
0, /*tp_compare*/
0, /*tp_repr*/
&__pyx_tp_as_number_A, /*tp_as_number*/
&__pyx_tp_as_sequence_A, /*tp_as_sequence*/
&__pyx_tp_as_mapping_A, /*tp_as_mapping*/
0, /*tp_hash*/
0, /*tp_call*/
0, /*tp_str*/
0, /*tp_getattro*/
0, /*tp_setattro*/
&__pyx_tp_as_buffer_A, /*tp_as_buffer*/
Py_TPFLAGS_DEFAULT|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
0, /*tp_doc*/
__pyx_tp_traverse_4cond_A, /*tp_traverse*/
__pyx_tp_clear_4cond_A, /*tp_clear*/
0, /*tp_richcompare*/
0, /*tp_weaklistoffset*/
0, /*tp_iter*/
0, /*tp_iternext*/
__pyx_methods_4cond_A, /*tp_methods*/
0, /*tp_members*/
0, /*tp_getset*/
0, /*tp_base*/
0, /*tp_dict*/
0, /*tp_descr_get*/
0, /*tp_descr_set*/
0, /*tp_dictoffset*/
0, /*tp_init*/
0, /*tp_alloc*/
__pyx_tp_new_4cond_A, /*tp_new*/
0, /*tp_free*/
0, /*tp_is_gc*/
0, /*tp_bases*/
0, /*tp_mro*/
0, /*tp_cache*/
0, /*tp_subclasses*/
0, /*tp_weaklist*/
};

static struct PyMethodDef __pyx_methods[] = {
{"py_func", (PyCFunction)__pyx_pf_4cond_py_func, METH_O, 0},
{0, 0, 0, 0}
};

static void __pyx_init_filenames(void); /*proto*/

PyMODINIT_FUNC initcond(void); /*proto*/
PyMODINIT_FUNC initcond(void) {
int *__pyx_1;
double __pyx_2;
PyObject *__pyx_3 = 0;
int __pyx_4;
/*--- Libary function declarations ---*/
__pyx_init_filenames();
/*--- Module creation code ---*/
__pyx_m = Py_InitModule4("cond", __pyx_methods, 0, 0, PYTHON_API_VERSION);
if (!__pyx_m) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;};
__pyx_b = PyImport_AddModule("__builtin__");
if (!__pyx_b) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;};
if (PyObject_SetAttrString(__pyx_m, "__builtins__", __pyx_b) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;};
/*--- Intern code ---*/
__pyx_num_1 = PyInt_FromLong(1); if (unlikely(!__pyx_num_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;};
__pyx_num_2 = PyInt_FromLong(2); if (unlikely(!__pyx_num_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;};
__pyx_num_3 = PyInt_FromLong(3); if (unlikely(!__pyx_num_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;};
__pyx_num_neg_1 = PyInt_FromLong(-1); if (unlikely(!__pyx_num_neg_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;};
__pyx_num_0 = PyInt_FromLong(0); if (unlikely(!__pyx_num_0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;};
__pyx_num_2345 = PyInt_FromLong(2345); if (unlikely(!__pyx_num_2345)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;};
if (__Pyx_InternStrings(__pyx_intern_tab) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;};
/*--- String init code ---*/
/*--- Builtin init code ---*/
/*--- Global init code ---*/
__pyx_v_4cond_s = Py_None; Py_INCREF(Py_None);
__pyx_v_4cond_t = Py_None; Py_INCREF(Py_None);
__pyx_v_4cond_u = Py_None; Py_INCREF(Py_None);
__pyx_v_4cond_v = Py_None; Py_INCREF(Py_None);
__pyx_v_4cond_aa = ((struct __pyx_obj_4cond_A *)Py_None); Py_INCREF(Py_None);
__pyx_v_4cond_aaa = ((struct __pyx_obj_4cond_A *)Py_None); Py_INCREF(Py_None);
/*--- Function export code ---*/
/*--- Function import code ---*/
/*--- Type init code ---*/
__pyx_vtabptr_4cond_A = &__pyx_vtable_4cond_A;
*(void(**)(void))&__pyx_vtable_4cond_A.foo = (void(*)(void))__pyx_f_4cond_1A_foo;
*(void(**)(void))&__pyx_vtable_4cond_A.foo2 = (void(*)(void))__pyx_f_4cond_1A_foo2;
*(void(**)(void))&__pyx_vtable_4cond_A.bar = (void(*)(void))__pyx_f_4cond_1A_bar;
if (PyType_Ready(&__pyx_type_4cond_A) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 22; goto __pyx_L1;}
if (__Pyx_SetVtable(__pyx_type_4cond_A.tp_dict, __pyx_vtabptr_4cond_A) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 22; goto __pyx_L1;}
if (PyObject_SetAttrString(__pyx_m, "A", (PyObject *)&__pyx_type_4cond_A) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 22; goto __pyx_L1;}
__pyx_ptype_4cond_A = &__pyx_type_4cond_A;
/*--- Type import code ---*/
/*--- Execution code ---*/
if (__Pyx_RegisterCleanup()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;};
return;
__pyx_L1:;
Py_XDECREF(__pyx_3);
__Pyx_AddTraceback("cond");
}

static PyObject* cleanup(PyObject *self, PyObject *unused) {
/*--- Builtin cleanup code ---*/
/*--- Intern cleanup code ---*/
Py_DECREF(__pyx_num_1); __pyx_num_1 = 0;
Py_DECREF(__pyx_num_2); __pyx_num_2 = 0;
Py_DECREF(__pyx_num_3); __pyx_num_3 = 0;
Py_DECREF(__pyx_num_neg_1); __pyx_num_neg_1 = 0;
Py_DECREF(__pyx_num_0); __pyx_num_0 = 0;
Py_DECREF(__pyx_num_2345); __pyx_num_2345 = 0;
Py_DECREF(__pyx_n_test); __pyx_n_test = 0;
Py_DECREF(__pyx_n_py_func); __pyx_n_py_func = 0;
Py_DECREF(__pyx_n_test2); __pyx_n_test2 = 0;
Py_DECREF(__pyx_n_bar); __pyx_n_bar = 0;
Py_DECREF(__pyx_n_z); __pyx_n_z = 0;
Py_INCREF(Py_None); return Py_None;
}

static char *__pyx_filenames[] = {
"cond.pyx",
};

/* Runtime support code */

static void __pyx_init_filenames(void) {
__pyx_f = __pyx_filenames;
}

static PyObject *__Pyx_GetStdout(void) {
PyObject *f = PySys_GetObject("stdout");
if (!f) {
PyErr_SetString(PyExc_RuntimeError, "lost sys.stdout");
}
return f;
}

static int __Pyx_PrintItem(PyObject *v) {
PyObject *f;

if (!(f = __Pyx_GetStdout()))
return -1;
if (PyFile_SoftSpace(f, 1)) {
if (PyFile_WriteString(" ", f) < 0)
return -1;
}
if (PyFile_WriteObject(v, f, Py_PRINT_RAW) < 0)
return -1;
if (PyString_Check(v)) {
char *s = PyString_AsString(v);
Py_ssize_t len = PyString_Size(v);
if (len > 0 &&
isspace(Py_CHARMASK(s[len-1])) &&
s[len-1] != ' ')
PyFile_SoftSpace(f, 0);
}
return 0;
}

static int __Pyx_PrintNewline(void) {
PyObject *f;

if (!(f = __Pyx_GetStdout()))
return -1;
if (PyFile_WriteString("\n", f) < 0)
return -1;
PyFile_SoftSpace(f, 0);
return 0;
}

static PyObject *__Pyx_GetName(PyObject *dict, PyObject *name) {
PyObject *result;
result = PyObject_GetAttr(dict, name);
if (!result)
PyErr_SetObject(PyExc_NameError, name);
return result;
}

static int __Pyx_InternStrings(__Pyx_InternTabEntry *t) {
while (t->p) {
*t->p = PyString_InternFromString(t->s);
if (!*t->p)
return -1;
++t;
}
return 0;
}

static int __Pyx_SetVtable(PyObject *dict, void *vtable) {
PyObject *pycobj = 0;
int result;

pycobj = PyCObject_FromVoidPtr(vtable, 0);
if (!pycobj)
goto bad;
if (PyDict_SetItemString(dict, "__pyx_vtable__", pycobj) < 0)
goto bad;
result = 0;
goto done;

bad:
result = -1;
done:
Py_XDECREF(pycobj);
return result;
}

#include "compile.h"
#include "frameobject.h"
#include "traceback.h"

static void __Pyx_AddTraceback(char *funcname) {
PyObject *py_srcfile = 0;
PyObject *py_funcname = 0;
PyObject *py_globals = 0;
PyObject *empty_tuple = 0;
PyObject *empty_string = 0;
PyCodeObject *py_code = 0;
PyFrameObject *py_frame = 0;

py_srcfile = PyString_FromString(__pyx_filename);
if (!py_srcfile) goto bad;
py_funcname = PyString_FromString(funcname);
if (!py_funcname) goto bad;
py_globals = PyModule_GetDict(__pyx_m);
if (!py_globals) goto bad;
empty_tuple = PyTuple_New(0);
if (!empty_tuple) goto bad;
empty_string = PyString_FromString("");
if (!empty_string) goto bad;
py_code = PyCode_New(
0, /*int argcount,*/
0, /*int nlocals,*/
0, /*int stacksize,*/
0, /*int flags,*/
empty_string, /*PyObject *code,*/
empty_tuple, /*PyObject *consts,*/
empty_tuple, /*PyObject *names,*/
empty_tuple, /*PyObject *varnames,*/
empty_tuple, /*PyObject *freevars,*/
empty_tuple, /*PyObject *cellvars,*/
py_srcfile, /*PyObject *filename,*/
py_funcname, /*PyObject *name,*/
__pyx_lineno, /*int firstlineno,*/
empty_string /*PyObject *lnotab*/
);
if (!py_code) goto bad;
py_frame = PyFrame_New(
PyThreadState_Get(), /*PyThreadState *tstate,*/
py_code, /*PyCodeObject *code,*/
py_globals, /*PyObject *globals,*/
0 /*PyObject *locals*/
);
if (!py_frame) goto bad;
py_frame->f_lineno = __pyx_lineno;
PyTraceBack_Here(py_frame);
bad:
Py_XDECREF(py_srcfile);
Py_XDECREF(py_funcname);
Py_XDECREF(empty_tuple);
Py_XDECREF(empty_string);
Py_XDECREF(py_code);
Py_XDECREF(py_frame);
}

#ifndef __PYX_HAVE_RT_ImportModule
#define __PYX_HAVE_RT_ImportModule
static PyObject *__Pyx_ImportModule(char *name) {
PyObject *py_name = 0;
PyObject *py_module = 0;

py_name = PyString_FromString(name);
if (!py_name)
goto bad;
py_module = PyImport_Import(py_name);
Py_DECREF(py_name);
return py_module;
bad:
Py_XDECREF(py_name);
return 0;
}
#endif

static int __Pyx_RegisterCleanup() {
/* Don't use Py_AtExit because that has a 32-call limit
* and is called after python finalization.
*/

PyObject *cleanup_func = 0;
PyObject *atexit = 0;
PyObject *reg = 0;
PyObject *args = 0;
PyObject *res = 0;
int ret = -1;

cleanup_func = PyCFunction_New(&cleanup_def, 0);
args = PyTuple_New(1);
if (!cleanup_func || !args)
goto bad;
PyTuple_SET_ITEM(args, 0, cleanup_func);
cleanup_func = 0;

atexit = __Pyx_ImportModule("atexit");
if (!atexit)
goto bad;
reg = PyObject_GetAttrString(atexit, "register");
if (!reg)
goto bad;
res = PyObject_CallObject(reg, args);
if (!res)
goto bad;
ret = 0;
bad:
Py_XDECREF(cleanup_func);
Py_XDECREF(atexit);
Py_XDECREF(reg);
Py_XDECREF(args);
Py_XDECREF(res);
return ret;
}
50:     pass