|
#ifndef __NUITKA_NO_ASSERT__ |
|
#ifndef __NUITKA_NO_ASSERT__ |
|
NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); |
|
NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); |
|
#endif |
|
#endif |
|
|
|
|
|
// Local variable declarations. |
|
// Local variable declarations. |
n |
PyObject *var_l = NULL; |
n |
|
|
struct Nuitka_FrameObject *frame_2f274bade88a7045338db04f0cc9ad3b; |
|
struct Nuitka_FrameObject *frame_2f274bade88a7045338db04f0cc9ad3b; |
|
NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; |
|
NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; |
|
PyObject *exception_type = NULL; |
|
PyObject *exception_type = NULL; |
|
PyObject *exception_value = NULL; |
|
PyObject *exception_value = NULL; |
|
PyTracebackObject *exception_tb = NULL; |
|
PyTracebackObject *exception_tb = NULL; |
|
NUITKA_MAY_BE_UNUSED int exception_lineno = 0; |
|
NUITKA_MAY_BE_UNUSED int exception_lineno = 0; |
n |
int tmp_res; |
n |
|
|
static struct Nuitka_FrameObject *cache_frame_2f274bade88a7045338db04f0cc9ad3b = NULL; |
|
static struct Nuitka_FrameObject *cache_frame_2f274bade88a7045338db04f0cc9ad3b = NULL; |
|
PyObject *tmp_return_value = NULL; |
|
PyObject *tmp_return_value = NULL; |
n |
PyObject *exception_keeper_type_1; |
n |
|
|
PyObject *exception_keeper_value_1; |
|
|
|
PyTracebackObject *exception_keeper_tb_1; |
|
|
|
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; |
|
|
|
|
|
|
|
// Actual function body. |
|
// Actual function body. |
n |
// Tried code: |
n |
|
|
MAKE_OR_REUSE_FRAME(cache_frame_2f274bade88a7045338db04f0cc9ad3b, codeobj_2f274bade88a7045338db04f0cc9ad3b, module___main__, sizeof(void *)); |
|
MAKE_OR_REUSE_FRAME(cache_frame_2f274bade88a7045338db04f0cc9ad3b, codeobj_2f274bade88a7045338db04f0cc9ad3b, module___main__, sizeof(void *)); |
|
frame_2f274bade88a7045338db04f0cc9ad3b = cache_frame_2f274bade88a7045338db04f0cc9ad3b; |
|
frame_2f274bade88a7045338db04f0cc9ad3b = cache_frame_2f274bade88a7045338db04f0cc9ad3b; |
|
|
|
|
|
// Push the new frame as the currently active one. |
|
// Push the new frame as the currently active one. |
|
pushFrameStack(frame_2f274bade88a7045338db04f0cc9ad3b); |
|
pushFrameStack(frame_2f274bade88a7045338db04f0cc9ad3b); |
|
exception_tb = NULL; |
|
exception_tb = NULL; |
|
NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); |
|
NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); |
|
CHAIN_EXCEPTION(exception_value); |
|
CHAIN_EXCEPTION(exception_value); |
|
|
|
|
|
exception_lineno = 24; |
|
exception_lineno = 24; |
n |
type_description_1 = "o"; |
n |
type_description_1 = "N"; |
|
goto frame_exception_exit_1; |
|
goto frame_exception_exit_1; |
|
} |
|
} |
|
|
|
|
n |
} |
n |
|
|
{ |
|
|
|
PyObject *tmp_assign_source_1; |
|
|
|
PyObject *tmp_set_element_1; |
|
|
|
PyObject *tmp_mvar_value_2; |
|
|
|
PyObject *tmp_mvar_value_3; |
|
|
|
PyObject *tmp_mvar_value_4; |
|
|
|
PyObject *tmp_mvar_value_5; |
|
|
|
PyObject *tmp_mvar_value_6; |
|
|
|
tmp_mvar_value_2 = GET_STRING_DICT_VALUE(moduledict___main__, (Nuitka_StringObject *)const_str_plain_module_value1); |
|
|
|
|
|
|
|
if (unlikely(tmp_mvar_value_2 == NULL)) { |
|
|
|
tmp_mvar_value_2 = GET_STRING_DICT_VALUE(dict_builtin, (Nuitka_StringObject *)const_str_plain_module_value1); |
|
|
|
} |
|
|
|
|
|
|
|
if (tmp_mvar_value_2 == NULL) { |
|
|
|
|
|
|
|
exception_type = PyExc_NameError; |
|
|
|
Py_INCREF(exception_type); |
|
|
|
exception_value = UNSTREAM_STRING(&constant_bin[ 0 ], 35, 0); |
|
|
|
exception_tb = NULL; |
|
|
|
NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); |
|
|
|
CHAIN_EXCEPTION(exception_value); |
|
|
|
|
|
|
|
exception_lineno = 28; |
|
|
|
type_description_1 = "o"; |
|
|
|
goto frame_exception_exit_1; |
|
|
|
} |
|
|
|
|
|
|
|
tmp_set_element_1 = tmp_mvar_value_2; |
|
|
|
tmp_assign_source_1 = PySet_New(NULL); |
|
|
|
assert(tmp_assign_source_1); |
|
|
|
tmp_res = PySet_Add(tmp_assign_source_1, tmp_set_element_1); |
|
|
|
if (tmp_res != 0) { |
|
|
|
assert(ERROR_OCCURRED()); |
|
|
|
|
|
|
|
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); |
|
|
|
Py_DECREF(tmp_assign_source_1); |
|
|
|
|
|
|
|
exception_lineno = 27; |
|
|
|
type_description_1 = "o"; |
|
|
|
goto frame_exception_exit_1; |
|
|
|
} |
|
|
|
tmp_mvar_value_3 = GET_STRING_DICT_VALUE(moduledict___main__, (Nuitka_StringObject *)const_str_plain_module_value1); |
|
|
|
|
|
|
|
if (unlikely(tmp_mvar_value_3 == NULL)) { |
|
|
|
tmp_mvar_value_3 = GET_STRING_DICT_VALUE(dict_builtin, (Nuitka_StringObject *)const_str_plain_module_value1); |
|
|
|
} |
|
|
|
|
|
|
|
if (tmp_mvar_value_3 == NULL) { |
|
|
|
Py_DECREF(tmp_assign_source_1); |
|
|
|
exception_type = PyExc_NameError; |
|
|
|
Py_INCREF(exception_type); |
|
|
|
exception_value = UNSTREAM_STRING(&constant_bin[ 0 ], 35, 0); |
|
|
|
exception_tb = NULL; |
|
|
|
NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); |
|
|
|
CHAIN_EXCEPTION(exception_value); |
|
|
|
|
|
|
|
exception_lineno = 29; |
|
|
|
type_description_1 = "o"; |
|
|
|
goto frame_exception_exit_1; |
|
|
|
} |
|
|
|
|
|
|
|
tmp_set_element_1 = tmp_mvar_value_3; |
|
|
|
tmp_res = PySet_Add(tmp_assign_source_1, tmp_set_element_1); |
|
|
|
if (tmp_res != 0) { |
|
|
|
assert(ERROR_OCCURRED()); |
|
|
|
|
|
|
|
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); |
|
|
|
Py_DECREF(tmp_assign_source_1); |
|
|
|
|
|
|
|
exception_lineno = 27; |
|
|
|
type_description_1 = "o"; |
|
|
|
goto frame_exception_exit_1; |
|
|
|
} |
|
|
|
tmp_mvar_value_4 = GET_STRING_DICT_VALUE(moduledict___main__, (Nuitka_StringObject *)const_str_plain_module_value1); |
|
|
|
|
|
|
|
if (unlikely(tmp_mvar_value_4 == NULL)) { |
|
|
|
tmp_mvar_value_4 = GET_STRING_DICT_VALUE(dict_builtin, (Nuitka_StringObject *)const_str_plain_module_value1); |
|
|
|
} |
|
|
|
|
|
|
|
if (tmp_mvar_value_4 == NULL) { |
|
|
|
Py_DECREF(tmp_assign_source_1); |
|
|
|
exception_type = PyExc_NameError; |
|
|
|
Py_INCREF(exception_type); |
|
|
|
exception_value = UNSTREAM_STRING(&constant_bin[ 0 ], 35, 0); |
|
|
|
exception_tb = NULL; |
|
|
|
NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); |
|
|
|
CHAIN_EXCEPTION(exception_value); |
|
|
|
|
|
|
|
exception_lineno = 30; |
|
|
|
type_description_1 = "o"; |
|
|
|
goto frame_exception_exit_1; |
|
|
|
} |
|
|
|
|
|
|
|
tmp_set_element_1 = tmp_mvar_value_4; |
|
|
|
tmp_res = PySet_Add(tmp_assign_source_1, tmp_set_element_1); |
|
|
|
if (tmp_res != 0) { |
|
|
|
assert(ERROR_OCCURRED()); |
|
|
|
|
|
|
|
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); |
|
|
|
Py_DECREF(tmp_assign_source_1); |
|
|
|
|
|
|
|
exception_lineno = 27; |
|
|
|
type_description_1 = "o"; |
|
|
|
goto frame_exception_exit_1; |
|
|
|
} |
|
|
|
tmp_mvar_value_5 = GET_STRING_DICT_VALUE(moduledict___main__, (Nuitka_StringObject *)const_str_plain_module_value1); |
|
|
|
|
|
|
|
if (unlikely(tmp_mvar_value_5 == NULL)) { |
|
|
|
tmp_mvar_value_5 = GET_STRING_DICT_VALUE(dict_builtin, (Nuitka_StringObject *)const_str_plain_module_value1); |
|
|
|
} |
|
|
|
|
|
|
|
if (tmp_mvar_value_5 == NULL) { |
|
|
|
Py_DECREF(tmp_assign_source_1); |
|
|
|
exception_type = PyExc_NameError; |
|
|
|
Py_INCREF(exception_type); |
|
|
|
exception_value = UNSTREAM_STRING(&constant_bin[ 0 ], 35, 0); |
|
|
|
exception_tb = NULL; |
|
|
|
NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); |
|
|
|
CHAIN_EXCEPTION(exception_value); |
|
|
|
|
|
|
|
exception_lineno = 31; |
|
|
|
type_description_1 = "o"; |
|
|
|
goto frame_exception_exit_1; |
|
|
|
} |
|
|
|
|
|
|
|
tmp_set_element_1 = tmp_mvar_value_5; |
|
|
|
tmp_res = PySet_Add(tmp_assign_source_1, tmp_set_element_1); |
|
|
|
if (tmp_res != 0) { |
|
|
|
assert(ERROR_OCCURRED()); |
|
|
|
|
|
|
|
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); |
|
|
|
Py_DECREF(tmp_assign_source_1); |
|
|
|
|
|
|
|
exception_lineno = 27; |
|
|
|
type_description_1 = "o"; |
|
|
|
goto frame_exception_exit_1; |
|
|
|
} |
|
|
|
tmp_mvar_value_6 = GET_STRING_DICT_VALUE(moduledict___main__, (Nuitka_StringObject *)const_str_plain_module_value1); |
|
|
|
|
|
|
|
if (unlikely(tmp_mvar_value_6 == NULL)) { |
|
|
|
tmp_mvar_value_6 = GET_STRING_DICT_VALUE(dict_builtin, (Nuitka_StringObject *)const_str_plain_module_value1); |
|
|
|
} |
|
|
|
|
|
|
|
if (tmp_mvar_value_6 == NULL) { |
|
|
|
Py_DECREF(tmp_assign_source_1); |
|
|
|
exception_type = PyExc_NameError; |
|
|
|
Py_INCREF(exception_type); |
|
|
|
exception_value = UNSTREAM_STRING(&constant_bin[ 0 ], 35, 0); |
|
|
|
exception_tb = NULL; |
|
|
|
NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); |
|
|
|
CHAIN_EXCEPTION(exception_value); |
|
|
|
|
|
|
|
exception_lineno = 32; |
|
|
|
type_description_1 = "o"; |
|
|
|
goto frame_exception_exit_1; |
|
|
|
} |
|
|
|
|
|
|
|
tmp_set_element_1 = tmp_mvar_value_6; |
|
|
|
tmp_res = PySet_Add(tmp_assign_source_1, tmp_set_element_1); |
|
|
|
if (tmp_res != 0) { |
|
|
|
assert(ERROR_OCCURRED()); |
|
|
|
|
|
|
|
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); |
|
|
|
Py_DECREF(tmp_assign_source_1); |
|
|
|
|
|
|
|
exception_lineno = 27; |
|
|
|
type_description_1 = "o"; |
|
|
|
goto frame_exception_exit_1; |
|
|
|
} |
|
|
|
assert(var_l == NULL); |
|
|
|
var_l = tmp_assign_source_1; |
|
|
|
} |
|
} |
|
|
|
|
|
#if 0 |
|
#if 0 |
|
RESTORE_FRAME_EXCEPTION(frame_2f274bade88a7045338db04f0cc9ad3b); |
|
RESTORE_FRAME_EXCEPTION(frame_2f274bade88a7045338db04f0cc9ad3b); |
|
#endif |
|
#endif |
|
|
|
|
|
// Put the previous frame back on top. |
|
// Put the previous frame back on top. |
|
popFrameStack(); |
|
popFrameStack(); |
|
|
|
|
|
// Return the error. |
|
// Return the error. |
n |
goto try_except_handler_1; |
n |
goto function_exception_exit; |
|
|
|
|
|
frame_no_exception_1:; |
|
frame_no_exception_1:; |
n |
CHECK_OBJECT(var_l); |
n |
tmp_return_value = const_int_pos_1; |
|
tmp_return_value = var_l; |
|
|
|
Py_INCREF(tmp_return_value); |
|
Py_INCREF(tmp_return_value); |
n |
goto try_return_handler_1; |
n |
|
|
// tried codes exits in all cases |
|
|
|
NUITKA_CANNOT_GET_HERE(__main__$$$function_1_calledRepeatedly); |
|
|
|
return NULL; |
|
|
|
// Return handler code: |
|
|
|
try_return_handler_1:; |
|
|
|
CHECK_OBJECT((PyObject *)var_l); |
|
|
|
Py_DECREF(var_l); |
|
|
|
var_l = NULL; |
|
|
|
|
|
|
|
goto function_return_exit; |
|
goto function_return_exit; |
t |
// Exception handler code: |
t |
|
|
try_except_handler_1:; |
|
|
|
exception_keeper_type_1 = exception_type; |
|
|
|
exception_keeper_value_1 = exception_value; |
|
|
|
exception_keeper_tb_1 = exception_tb; |
|
|
|
exception_keeper_lineno_1 = exception_lineno; |
|
|
|
exception_type = NULL; |
|
|
|
exception_value = NULL; |
|
|
|
exception_tb = NULL; |
|
|
|
exception_lineno = 0; |
|
|
|
|
|
|
|
// Re-raise. |
|
|
|
exception_type = exception_keeper_type_1; |
|
|
|
exception_value = exception_keeper_value_1; |
|
|
|
exception_tb = exception_keeper_tb_1; |
|
|
|
exception_lineno = exception_keeper_lineno_1; |
|
|
|
|
|
|
|
goto function_exception_exit; |
|
|
|
// End of try: |
|
|
|
|
|
|
|
// Return statement must have exited already. |
|
// Return statement must have exited already. |
|
NUITKA_CANNOT_GET_HERE(__main__$$$function_1_calledRepeatedly); |
|
NUITKA_CANNOT_GET_HERE(__main__$$$function_1_calledRepeatedly); |
|
return NULL; |
|
return NULL; |
|
|
|
|