|
#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_x = NULL; |
n |
|
|
PyObject *var_local_value = NULL; |
|
PyObject *var_local_value = NULL; |
n |
PyObject *tmp_for_loop_1__for_iterator = NULL; |
n |
|
|
PyObject *tmp_for_loop_1__iter_value = NULL; |
|
|
|
struct Nuitka_FrameObject *frame_3088d2cfd7330c87e3271924f46886e2; |
|
struct Nuitka_FrameObject *frame_3088d2cfd7330c87e3271924f46886e2; |
|
NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; |
|
NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; |
|
NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; |
|
NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; |
|
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 |
|
n |
static struct Nuitka_FrameObject *cache_frame_3088d2cfd7330c87e3271924f46886e2 = NULL; |
|
|
|
PyObject *tmp_return_value = NULL; |
|
PyObject *exception_keeper_type_1; |
|
PyObject *exception_keeper_type_1; |
|
PyObject *exception_keeper_value_1; |
|
PyObject *exception_keeper_value_1; |
|
PyTracebackObject *exception_keeper_tb_1; |
|
PyTracebackObject *exception_keeper_tb_1; |
|
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; |
|
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; |
n |
static struct Nuitka_FrameObject *cache_frame_3088d2cfd7330c87e3271924f46886e2 = NULL; |
n |
|
|
PyObject *tmp_return_value = NULL; |
|
|
|
PyObject *exception_keeper_type_2; |
|
|
|
PyObject *exception_keeper_value_2; |
|
|
|
PyTracebackObject *exception_keeper_tb_2; |
|
|
|
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; |
|
|
|
|
|
|
|
// Actual function body. |
|
// Actual function body. |
|
// Tried code: |
|
// Tried code: |
|
if (isFrameUnusable(cache_frame_3088d2cfd7330c87e3271924f46886e2)) { |
|
if (isFrameUnusable(cache_frame_3088d2cfd7330c87e3271924f46886e2)) { |
|
Py_XDECREF(cache_frame_3088d2cfd7330c87e3271924f46886e2); |
|
Py_XDECREF(cache_frame_3088d2cfd7330c87e3271924f46886e2); |
|
|
|
|
|
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); |
|
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); |
|
|
|
|
|
|
|
|
|
exception_lineno = 31; |
|
exception_lineno = 31; |
n |
type_description_1 = "oo"; |
n |
type_description_1 = "No"; |
|
goto frame_exception_exit_1; |
|
goto frame_exception_exit_1; |
|
} |
|
} |
|
assert(var_local_value == NULL); |
|
assert(var_local_value == NULL); |
|
Py_INCREF(tmp_assign_source_1); |
|
Py_INCREF(tmp_assign_source_1); |
|
var_local_value = tmp_assign_source_1; |
|
var_local_value = tmp_assign_source_1; |
|
} |
|
} |
n |
|
n |
|
|
|
|
#if 0 |
|
|
|
RESTORE_FRAME_EXCEPTION(frame_3088d2cfd7330c87e3271924f46886e2); |
|
|
|
#endif |
|
|
|
|
|
|
|
// Put the previous frame back on top. |
|
|
|
popFrameStack(); |
|
|
|
|
|
|
|
goto frame_no_exception_1; |
|
|
|
|
|
|
|
frame_exception_exit_1:; |
|
|
|
|
|
|
|
#if 0 |
|
|
|
RESTORE_FRAME_EXCEPTION(frame_3088d2cfd7330c87e3271924f46886e2); |
|
|
|
#endif |
|
|
|
|
|
|
|
if (exception_tb == NULL) { |
|
|
|
exception_tb = MAKE_TRACEBACK(frame_3088d2cfd7330c87e3271924f46886e2, exception_lineno); |
|
|
|
} else if (exception_tb->tb_frame != &frame_3088d2cfd7330c87e3271924f46886e2->m_frame) { |
|
|
|
exception_tb = ADD_TRACEBACK(exception_tb, frame_3088d2cfd7330c87e3271924f46886e2, exception_lineno); |
|
{
|
|
}
|
|
PyObject *tmp_assign_source_2; |
|
|
|
PyObject *tmp_iter_arg_1; |
|
// Attaches locals to frame if any. |
|
PyObject *tmp_xrange_low_1; |
|
Nuitka_Frame_AttachLocals( |
|
PyObject *tmp_xrange_high_1; |
|
frame_3088d2cfd7330c87e3271924f46886e2, |
|
PyObject *tmp_left_value_1; |
|
type_description_1, |
|
PyObject *tmp_right_value_1; |
|
NULL, |
|
|
|
var_local_value |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
// Release cached frame if used for exception. |
|
|
|
if (frame_3088d2cfd7330c87e3271924f46886e2 == cache_frame_3088d2cfd7330c87e3271924f46886e2) { |
|
|
|
#if _DEBUG_REFCOUNTS |
|
|
|
count_active_frame_cache_instances -= 1; |
|
|
|
count_released_frame_cache_instances += 1; |
|
|
|
#endif |
|
|
|
|
|
|
|
Py_DECREF(cache_frame_3088d2cfd7330c87e3271924f46886e2); |
|
|
|
cache_frame_3088d2cfd7330c87e3271924f46886e2 = NULL; |
|
|
|
} |
|
|
|
|
|
|
|
assertFrameObject(frame_3088d2cfd7330c87e3271924f46886e2); |
|
|
|
|
|
|
|
// Put the previous frame back on top. |
|
|
|
popFrameStack(); |
|
|
|
|
|
|
|
// Return the error. |
|
|
|
goto try_except_handler_1; |
|
|
|
|
|
|
|
frame_no_exception_1:; |
|
|
|
tmp_return_value = Py_None; |
|
|
|
Py_INCREF(tmp_return_value); |
|
|
|
goto try_return_handler_1; |
|
|
|
NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); |
|
|
|
return NULL; |
|
|
|
// Return handler code: |
|
|
|
try_return_handler_1:; |
|
CHECK_OBJECT(var_local_value); |
|
CHECK_OBJECT(var_local_value); |
|
tmp_xrange_low_1 = var_local_value; |
|
Py_DECREF(var_local_value); |
|
CHECK_OBJECT(var_local_value); |
|
var_local_value = NULL; |
|
tmp_left_value_1 = var_local_value; |
|
goto function_return_exit; |
|
tmp_right_value_1 = mod_consts[1]; |
|
|
|
tmp_xrange_high_1 = BINARY_OPERATION_ADD_OBJECT_OBJECT_LONG(tmp_left_value_1, tmp_right_value_1); |
|
|
|
if (tmp_xrange_high_1 == NULL) { |
|
|
|
assert(ERROR_OCCURRED()); |
|
|
|
|
|
|
|
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); |
|
|
|
|
|
|
|
|
|
|
|
exception_lineno = 34; |
|
|
|
type_description_1 = "oo"; |
|
|
|
goto frame_exception_exit_1; |
|
|
|
} |
|
|
|
tmp_iter_arg_1 = BUILTIN_XRANGE2(tmp_xrange_low_1, tmp_xrange_high_1); |
|
|
|
Py_DECREF(tmp_xrange_high_1); |
|
|
|
if (tmp_iter_arg_1 == NULL) { |
|
|
|
assert(ERROR_OCCURRED()); |
|
|
|
|
|
|
|
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); |
|
|
|
|
|
|
|
|
|
|
|
exception_lineno = 34; |
|
|
|
type_description_1 = "oo"; |
|
|
|
goto frame_exception_exit_1; |
|
|
|
} |
|
|
|
tmp_assign_source_2 = MAKE_ITERATOR(tmp_iter_arg_1); |
|
|
|
Py_DECREF(tmp_iter_arg_1); |
|
|
|
if (tmp_assign_source_2 == NULL) { |
|
|
|
assert(ERROR_OCCURRED()); |
|
|
|
|
|
|
|
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); |
|
|
|
|
|
|
|
|
|
|
|
exception_lineno = 34; |
|
|
|
type_description_1 = "oo"; |
|
|
|
goto frame_exception_exit_1; |
|
|
|
} |
|
|
|
assert(tmp_for_loop_1__for_iterator == NULL); |
|
|
|
tmp_for_loop_1__for_iterator = tmp_assign_source_2; |
|
|
|
} |
|
|
|
// Tried code: |
|
|
|
loop_start_1:; |
|
|
|
{ |
|
|
|
PyObject *tmp_next_source_1; |
|
|
|
PyObject *tmp_assign_source_3; |
|
|
|
CHECK_OBJECT(tmp_for_loop_1__for_iterator); |
|
|
|
tmp_next_source_1 = tmp_for_loop_1__for_iterator; |
|
|
|
tmp_assign_source_3 = ITERATOR_NEXT(tmp_next_source_1); |
|
|
|
if (tmp_assign_source_3 == NULL) { |
|
|
|
if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { |
|
|
|
|
|
|
|
goto loop_end_1; |
|
|
|
} else { |
|
|
|
|
|
|
|
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); |
|
|
|
type_description_1 = "oo"; |
|
|
|
exception_lineno = 34; |
|
|
|
goto try_except_handler_2; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
{ |
|
|
|
PyObject *old = tmp_for_loop_1__iter_value; |
|
|
|
tmp_for_loop_1__iter_value = tmp_assign_source_3; |
|
|
|
Py_XDECREF(old); |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
{ |
|
|
|
PyObject *tmp_assign_source_4; |
|
|
|
CHECK_OBJECT(tmp_for_loop_1__iter_value); |
|
|
|
tmp_assign_source_4 = tmp_for_loop_1__iter_value; |
|
|
|
{ |
|
|
|
PyObject *old = var_x; |
|
|
|
var_x = tmp_assign_source_4; |
|
|
|
Py_INCREF(var_x); |
|
|
|
Py_XDECREF(old); |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
if (CONSIDER_THREADING() == false) { |
|
|
|
assert(ERROR_OCCURRED()); |
|
|
|
|
|
|
|
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); |
|
|
|
|
|
|
|
|
|
|
|
exception_lineno = 34; |
|
|
|
type_description_1 = "oo"; |
|
|
|
goto try_except_handler_2; |
|
|
|
} |
|
|
|
goto loop_start_1; |
|
|
|
loop_end_1:; |
|
|
|
goto try_end_1; |
|
|
|
// Exception handler code: |
|
// Exception handler code: |
n |
try_except_handler_2:; |
n |
try_except_handler_1:; |
|
exception_keeper_type_1 = exception_type; |
|
exception_keeper_type_1 = exception_type; |
|
exception_keeper_value_1 = exception_value; |
|
exception_keeper_value_1 = exception_value; |
|
exception_keeper_tb_1 = exception_tb; |
|
exception_keeper_tb_1 = exception_tb; |
|
exception_keeper_lineno_1 = exception_lineno; |
|
exception_keeper_lineno_1 = exception_lineno; |
|
exception_type = NULL; |
|
exception_type = NULL; |
|
exception_value = NULL; |
|
exception_value = NULL; |
|
exception_tb = NULL; |
|
exception_tb = NULL; |
|
exception_lineno = 0; |
|
exception_lineno = 0; |
|
|
|
|
n |
Py_XDECREF(tmp_for_loop_1__iter_value); |
n |
|
|
tmp_for_loop_1__iter_value = NULL; |
|
|
|
CHECK_OBJECT(tmp_for_loop_1__for_iterator); |
|
|
|
Py_DECREF(tmp_for_loop_1__for_iterator); |
|
|
|
tmp_for_loop_1__for_iterator = NULL; |
|
|
|
// Re-raise. |
|
// Re-raise. |
|
exception_type = exception_keeper_type_1; |
|
exception_type = exception_keeper_type_1; |
|
exception_value = exception_keeper_value_1; |
|
exception_value = exception_keeper_value_1; |
|
exception_tb = exception_keeper_tb_1; |
|
exception_tb = exception_keeper_tb_1; |
|
exception_lineno = exception_keeper_lineno_1; |
|
exception_lineno = exception_keeper_lineno_1; |
n |
|
n |
|
|
goto frame_exception_exit_1; |
|
|
|
// End of try: |
|
|
|
try_end_1:; |
|
|
|
|
|
|
|
#if 0 |
|
|
|
RESTORE_FRAME_EXCEPTION(frame_3088d2cfd7330c87e3271924f46886e2); |
|
|
|
#endif |
|
|
|
|
|
|
|
// Put the previous frame back on top. |
|
|
|
popFrameStack(); |
|
|
|
|
|
|
|
goto frame_no_exception_1; |
|
|
|
|
|
|
|
frame_exception_exit_1:; |
|
|
|
|
|
|
|
#if 0 |
|
|
|
RESTORE_FRAME_EXCEPTION(frame_3088d2cfd7330c87e3271924f46886e2); |
|
|
|
#endif |
|
|
|
|
|
|
|
if (exception_tb == NULL) { |
|
|
|
exception_tb = MAKE_TRACEBACK(frame_3088d2cfd7330c87e3271924f46886e2, exception_lineno); |
|
|
|
} else if (exception_tb->tb_frame != &frame_3088d2cfd7330c87e3271924f46886e2->m_frame) { |
|
|
|
exception_tb = ADD_TRACEBACK(exception_tb, frame_3088d2cfd7330c87e3271924f46886e2, exception_lineno); |
|
|
|
} |
|
|
|
|
|
|
|
// Attaches locals to frame if any. |
|
|
|
Nuitka_Frame_AttachLocals( |
|
|
|
frame_3088d2cfd7330c87e3271924f46886e2, |
|
|
|
type_description_1, |
|
|
|
var_x, |
|
|
|
var_local_value |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
// Release cached frame if used for exception. |
|
|
|
if (frame_3088d2cfd7330c87e3271924f46886e2 == cache_frame_3088d2cfd7330c87e3271924f46886e2) { |
|
|
|
#if _DEBUG_REFCOUNTS |
|
|
|
count_active_frame_cache_instances -= 1; |
|
|
|
count_released_frame_cache_instances += 1; |
|
|
|
#endif |
|
|
|
|
|
|
|
Py_DECREF(cache_frame_3088d2cfd7330c87e3271924f46886e2); |
|
|
|
cache_frame_3088d2cfd7330c87e3271924f46886e2 = NULL; |
|
|
|
} |
|
|
|
|
|
|
|
assertFrameObject(frame_3088d2cfd7330c87e3271924f46886e2); |
|
|
|
|
|
|
|
// Put the previous frame back on top. |
|
|
|
popFrameStack(); |
|
|
|
|
|
|
|
// Return the error. |
|
|
|
goto try_except_handler_1; |
|
|
|
|
|
|
|
frame_no_exception_1:; |
|
|
|
Py_XDECREF(tmp_for_loop_1__iter_value); |
|
|
|
tmp_for_loop_1__iter_value = NULL; |
|
|
|
CHECK_OBJECT(tmp_for_loop_1__for_iterator); |
|
|
|
Py_DECREF(tmp_for_loop_1__for_iterator); |
|
|
|
tmp_for_loop_1__for_iterator = NULL; |
|
|
|
tmp_return_value = Py_None; |
|
|
|
Py_INCREF(tmp_return_value); |
|
|
|
goto try_return_handler_1; |
|
|
|
NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); |
|
|
|
return NULL; |
|
|
|
// Return handler code: |
|
|
|
try_return_handler_1:; |
|
|
|
Py_XDECREF(var_x); |
|
|
|
var_x = NULL; |
|
|
|
CHECK_OBJECT(var_local_value); |
|
|
|
Py_DECREF(var_local_value); |
|
|
|
var_local_value = NULL; |
|
|
|
goto function_return_exit; |
|
|
|
// Exception handler code: |
|
|
|
try_except_handler_1:; |
|
|
|
exception_keeper_type_2 = exception_type; |
|
|
|
exception_keeper_value_2 = exception_value; |
|
|
|
exception_keeper_tb_2 = exception_tb; |
|
|
|
exception_keeper_lineno_2 = exception_lineno; |
|
|
|
exception_type = NULL; |
|
|
|
exception_value = NULL; |
|
|
|
exception_tb = NULL; |
|
|
|
exception_lineno = 0; |
|
|
|
|
|
|
|
Py_XDECREF(var_x); |
|
|
|
var_x = NULL; |
|
|
|
Py_XDECREF(var_local_value); |
|
|
|
var_local_value = NULL; |
|
|
|
// Re-raise. |
|
|
|
exception_type = exception_keeper_type_2; |
|
|
|
exception_value = exception_keeper_value_2; |
|
|
|
exception_tb = exception_keeper_tb_2; |
|
|
|
exception_lineno = exception_keeper_lineno_2; |
|
|
|
|
|
|
|
goto function_exception_exit; |
|
goto function_exception_exit; |
|
// End of try: |
|
// End of try: |
|
|
|
|
|
NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); |
|
NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); |
|
|
|
|
|
// Module code. |
|
// Module code. |
|
{ |
|
{ |
|
PyObject *tmp_assign_source_1; |
|
PyObject *tmp_assign_source_1; |
|
tmp_assign_source_1 = Py_None; |
|
tmp_assign_source_1 = Py_None; |
n |
UPDATE_STRING_DICT0(moduledict___main__, (Nuitka_StringObject *)mod_consts[2], tmp_assign_source_1); |
n |
UPDATE_STRING_DICT0(moduledict___main__, (Nuitka_StringObject *)mod_consts[1], tmp_assign_source_1); |
|
} |
|
} |
|
{ |
|
{ |
|
PyObject *tmp_assign_source_2; |
|
PyObject *tmp_assign_source_2; |
n |
tmp_assign_source_2 = mod_consts[3]; |
n |
tmp_assign_source_2 = mod_consts[2]; |
|
UPDATE_STRING_DICT0(moduledict___main__, (Nuitka_StringObject *)mod_consts[4], tmp_assign_source_2); |
|
UPDATE_STRING_DICT0(moduledict___main__, (Nuitka_StringObject *)mod_consts[3], tmp_assign_source_2); |
|
} |
|
} |
|
{ |
|
{ |
|
PyObject *tmp_assign_source_3; |
|
PyObject *tmp_assign_source_3; |
|
tmp_assign_source_3 = Py_None; |
|
tmp_assign_source_3 = Py_None; |
n |
UPDATE_STRING_DICT0(moduledict___main__, (Nuitka_StringObject *)mod_consts[5], tmp_assign_source_3); |
n |
UPDATE_STRING_DICT0(moduledict___main__, (Nuitka_StringObject *)mod_consts[4], tmp_assign_source_3); |
|
} |
|
} |
|
{ |
|
{ |
|
PyObject *tmp_assign_source_4; |
|
PyObject *tmp_assign_source_4; |
|
tmp_assign_source_4 = PyDict_New(); |
|
tmp_assign_source_4 = PyDict_New(); |
n |
UPDATE_STRING_DICT1(moduledict___main__, (Nuitka_StringObject *)mod_consts[6], tmp_assign_source_4); |
n |
UPDATE_STRING_DICT1(moduledict___main__, (Nuitka_StringObject *)mod_consts[5], tmp_assign_source_4); |
|
} |
|
} |
|
{ |
|
{ |
|
PyObject *tmp_assign_source_5; |
|
PyObject *tmp_assign_source_5; |
n |
tmp_assign_source_5 = mod_consts[7]; |
n |
tmp_assign_source_5 = mod_consts[6]; |
|
UPDATE_STRING_DICT0(moduledict___main__, (Nuitka_StringObject *)mod_consts[0], tmp_assign_source_5); |
|
UPDATE_STRING_DICT0(moduledict___main__, (Nuitka_StringObject *)mod_consts[0], tmp_assign_source_5); |
|
} |
|
} |
|
{ |
|
{ |
|
PyObject *tmp_assign_source_6; |
|
PyObject *tmp_assign_source_6; |
t |
tmp_assign_source_6 = mod_consts[1]; |
t |
tmp_assign_source_6 = mod_consts[7]; |
|
UPDATE_STRING_DICT0(moduledict___main__, (Nuitka_StringObject *)mod_consts[8], tmp_assign_source_6); |
|
UPDATE_STRING_DICT0(moduledict___main__, (Nuitka_StringObject *)mod_consts[8], tmp_assign_source_6); |
|
} |
|
} |
|
{ |
|
{ |
|
PyObject *tmp_assign_source_7; |
|
PyObject *tmp_assign_source_7; |
|
|
|
|