|
#ifndef __NUITKA_NO_ASSERT__ |
|
#ifndef __NUITKA_NO_ASSERT__ |
|
void checkModuleConstants___main__(void) { |
|
void checkModuleConstants___main__(void) { |
|
// The module may not have been used at all, then ignore this. |
|
// The module may not have been used at all, then ignore this. |
|
if (constants_created == false) return; |
|
if (constants_created == false) return; |
|
|
|
|
n |
for(int i = 0; i < 20; i++) { |
n |
for(int i = 0; i < 19; i++) { |
|
assert(mod_consts_hash[i] == DEEP_HASH(mod_consts[i])); |
|
assert(mod_consts_hash[i] == DEEP_HASH(mod_consts[i])); |
|
CHECK_OBJECT_DEEP(mod_consts[i]); |
|
CHECK_OBJECT_DEEP(mod_consts[i]); |
|
} |
|
} |
|
} |
|
} |
|
#endif |
|
#endif |
|
|
|
|
|
// The module code objects. |
|
// The module code objects. |
|
static PyCodeObject *codeobj_4b4a5de3a547b0f1df5dc44eca05b0ac; |
|
static PyCodeObject *codeobj_4b4a5de3a547b0f1df5dc44eca05b0ac; |
n |
static PyCodeObject *codeobj_8379b1a6c5c2682551a500537f44ffa5; |
n |
static PyCodeObject *codeobj_1ee78d62b8aaa4e0e7235681823384d2; |
|
/* For use in "MainProgram.c". */ |
|
/* For use in "MainProgram.c". */ |
|
PyCodeObject *codeobj_main = NULL; |
|
PyCodeObject *codeobj_main = NULL; |
|
|
|
|
|
static void createModuleCodeObjects(void) { |
|
static void createModuleCodeObjects(void) { |
n |
module_filename_obj = mod_consts[3]; CHECK_OBJECT(module_filename_obj); |
n |
module_filename_obj = mod_consts[2]; CHECK_OBJECT(module_filename_obj); |
|
codeobj_4b4a5de3a547b0f1df5dc44eca05b0ac = MAKE_CODEOBJECT(module_filename_obj, 1, CO_NOFREE, mod_consts[18], NULL, NULL, 0, 0, 0); |
|
codeobj_4b4a5de3a547b0f1df5dc44eca05b0ac = MAKE_CODEOBJECT(module_filename_obj, 1, CO_NOFREE, mod_consts[17], NULL, NULL, 0, 0, 0); |
|
codeobj_8379b1a6c5c2682551a500537f44ffa5 = MAKE_CODEOBJECT(module_filename_obj, 25, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[10], mod_consts[19], NULL, 0, 0, 0); |
|
codeobj_1ee78d62b8aaa4e0e7235681823384d2 = MAKE_CODEOBJECT(module_filename_obj, 24, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[9], mod_consts[18], NULL, 0, 0, 0); |
|
} |
|
} |
|
|
|
|
|
// The module function declarations. |
|
// The module function declarations. |
|
static PyObject *MAKE_FUNCTION___main__$$$function__1_calledRepeatedly(); |
|
static PyObject *MAKE_FUNCTION___main__$$$function__1_calledRepeatedly(); |
|
|
|
|
|
#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 |
struct Nuitka_FrameObject *frame_1ee78d62b8aaa4e0e7235681823384d2; |
|
PyObject *tmp_for_loop_1__iter_value = NULL; |
|
|
|
struct Nuitka_FrameObject *frame_8379b1a6c5c2682551a500537f44ffa5; |
|
|
|
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_1ee78d62b8aaa4e0e7235681823384d2 = 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_8379b1a6c5c2682551a500537f44ffa5 = 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: |
n |
if (isFrameUnusable(cache_frame_8379b1a6c5c2682551a500537f44ffa5)) { |
n |
if (isFrameUnusable(cache_frame_1ee78d62b8aaa4e0e7235681823384d2)) { |
|
Py_XDECREF(cache_frame_8379b1a6c5c2682551a500537f44ffa5); |
|
Py_XDECREF(cache_frame_1ee78d62b8aaa4e0e7235681823384d2); |
|
|
|
|
|
#if _DEBUG_REFCOUNTS |
|
#if _DEBUG_REFCOUNTS |
n |
if (cache_frame_8379b1a6c5c2682551a500537f44ffa5 == NULL) { |
n |
if (cache_frame_1ee78d62b8aaa4e0e7235681823384d2 == NULL) { |
|
count_active_frame_cache_instances += 1; |
|
count_active_frame_cache_instances += 1; |
|
} else { |
|
} else { |
|
count_released_frame_cache_instances += 1; |
|
count_released_frame_cache_instances += 1; |
|
} |
|
} |
|
count_allocated_frame_cache_instances += 1; |
|
count_allocated_frame_cache_instances += 1; |
|
#endif |
|
#endif |
n |
cache_frame_8379b1a6c5c2682551a500537f44ffa5 = MAKE_FUNCTION_FRAME(codeobj_8379b1a6c5c2682551a500537f44ffa5, module___main__, sizeof(void *)+sizeof(void *)); |
n |
cache_frame_1ee78d62b8aaa4e0e7235681823384d2 = MAKE_FUNCTION_FRAME(codeobj_1ee78d62b8aaa4e0e7235681823384d2, module___main__, sizeof(void *)+sizeof(void *)); |
|
#if _DEBUG_REFCOUNTS |
|
#if _DEBUG_REFCOUNTS |
|
} else { |
|
} else { |
|
count_hit_frame_cache_instances += 1; |
|
count_hit_frame_cache_instances += 1; |
|
#endif |
|
#endif |
|
} |
|
} |
n |
assert(cache_frame_8379b1a6c5c2682551a500537f44ffa5->m_type_description == NULL); |
n |
assert(cache_frame_1ee78d62b8aaa4e0e7235681823384d2->m_type_description == NULL); |
|
frame_8379b1a6c5c2682551a500537f44ffa5 = cache_frame_8379b1a6c5c2682551a500537f44ffa5; |
|
frame_1ee78d62b8aaa4e0e7235681823384d2 = cache_frame_1ee78d62b8aaa4e0e7235681823384d2; |
|
|
|
|
|
// Push the new frame as the currently active one. |
|
// Push the new frame as the currently active one. |
n |
pushFrameStack(frame_8379b1a6c5c2682551a500537f44ffa5); |
n |
pushFrameStack(frame_1ee78d62b8aaa4e0e7235681823384d2); |
|
|
|
|
|
// Mark the frame object as in use, ref count 1 will be up for reuse. |
|
// Mark the frame object as in use, ref count 1 will be up for reuse. |
n |
assert(Py_REFCNT(frame_8379b1a6c5c2682551a500537f44ffa5) == 2); // Frame stack |
n |
assert(Py_REFCNT(frame_1ee78d62b8aaa4e0e7235681823384d2) == 2); // Frame stack |
|
|
|
|
|
// Framed code: |
|
// Framed code: |
|
{ |
|
{ |
|
PyObject *tmp_mvar_value_1; |
|
PyObject *tmp_mvar_value_1; |
|
tmp_mvar_value_1 = GET_STRING_DICT_VALUE(moduledict___main__, (Nuitka_StringObject *)mod_consts[0]); |
|
tmp_mvar_value_1 = GET_STRING_DICT_VALUE(moduledict___main__, (Nuitka_StringObject *)mod_consts[0]); |
|
assert(ERROR_OCCURRED()); |
|
assert(ERROR_OCCURRED()); |
|
|
|
|
|
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); |
|
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); |
|
|
|
|
|
|
|
|
n |
exception_lineno = 32; |
n |
exception_lineno = 31; |
|
type_description_1 = "oo"; |
|
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_1ee78d62b8aaa4e0e7235681823384d2); |
|
|
|
#endif |
|
|
|
|
|
|
|
// Put the previous frame back on top. |
|
|
|
popFrameStack(); |
|
|
|
|
|
|
|
goto frame_no_exception_1; |
|
|
|
|
|
|
|
frame_exception_exit_1:; |
|
|
|
|
|
|
|
#if 0 |
|
|
|
RESTORE_FRAME_EXCEPTION(frame_1ee78d62b8aaa4e0e7235681823384d2); |
|
|
|
#endif |
|
|
|
|
|
|
|
if (exception_tb == NULL) { |
|
|
|
exception_tb = MAKE_TRACEBACK(frame_1ee78d62b8aaa4e0e7235681823384d2, exception_lineno); |
|
|
|
} else if (exception_tb->tb_frame != &frame_1ee78d62b8aaa4e0e7235681823384d2->m_frame) { |
|
|
|
exception_tb = ADD_TRACEBACK(exception_tb, frame_1ee78d62b8aaa4e0e7235681823384d2, 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_1ee78d62b8aaa4e0e7235681823384d2, |
|
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_1ee78d62b8aaa4e0e7235681823384d2 == cache_frame_1ee78d62b8aaa4e0e7235681823384d2) { |
|
|
|
#if _DEBUG_REFCOUNTS |
|
|
|
count_active_frame_cache_instances -= 1; |
|
|
|
count_released_frame_cache_instances += 1; |
|
|
|
#endif |
|
|
|
|
|
|
|
Py_DECREF(cache_frame_1ee78d62b8aaa4e0e7235681823384d2); |
|
|
|
cache_frame_1ee78d62b8aaa4e0e7235681823384d2 = NULL; |
|
|
|
} |
|
|
|
|
|
|
|
assertFrameObject(frame_1ee78d62b8aaa4e0e7235681823384d2); |
|
|
|
|
|
|
|
// 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 = 35; |
|
|
|
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 = 35; |
|
|
|
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 = 35; |
|
|
|
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 = 35; |
|
|
|
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 = 35; |
|
|
|
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_8379b1a6c5c2682551a500537f44ffa5); |
|
|
|
#endif |
|
|
|
|
|
|
|
// Put the previous frame back on top. |
|
|
|
popFrameStack(); |
|
|
|
|
|
|
|
goto frame_no_exception_1; |
|
|
|
|
|
|
|
frame_exception_exit_1:; |
|
|
|
|
|
|
|
#if 0 |
|
|
|
RESTORE_FRAME_EXCEPTION(frame_8379b1a6c5c2682551a500537f44ffa5); |
|
|
|
#endif |
|
|
|
|
|
|
|
if (exception_tb == NULL) { |
|
|
|
exception_tb = MAKE_TRACEBACK(frame_8379b1a6c5c2682551a500537f44ffa5, exception_lineno); |
|
|
|
} else if (exception_tb->tb_frame != &frame_8379b1a6c5c2682551a500537f44ffa5->m_frame) { |
|
|
|
exception_tb = ADD_TRACEBACK(exception_tb, frame_8379b1a6c5c2682551a500537f44ffa5, exception_lineno); |
|
|
|
} |
|
|
|
|
|
|
|
// Attaches locals to frame if any. |
|
|
|
Nuitka_Frame_AttachLocals( |
|
|
|
frame_8379b1a6c5c2682551a500537f44ffa5, |
|
|
|
type_description_1, |
|
|
|
var_x, |
|
|
|
var_local_value |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
// Release cached frame if used for exception. |
|
|
|
if (frame_8379b1a6c5c2682551a500537f44ffa5 == cache_frame_8379b1a6c5c2682551a500537f44ffa5) { |
|
|
|
#if _DEBUG_REFCOUNTS |
|
|
|
count_active_frame_cache_instances -= 1; |
|
|
|
count_released_frame_cache_instances += 1; |
|
|
|
#endif |
|
|
|
|
|
|
|
Py_DECREF(cache_frame_8379b1a6c5c2682551a500537f44ffa5); |
|
|
|
cache_frame_8379b1a6c5c2682551a500537f44ffa5 = NULL; |
|
|
|
} |
|
|
|
|
|
|
|
assertFrameObject(frame_8379b1a6c5c2682551a500537f44ffa5); |
|
|
|
|
|
|
|
// 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[4], 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; |
n |
tmp_assign_source_6 = mod_consts[8]; |
n |
tmp_assign_source_6 = mod_consts[7]; |
|
UPDATE_STRING_DICT0(moduledict___main__, (Nuitka_StringObject *)mod_consts[0], 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; |
n |
tmp_assign_source_7 = mod_consts[1]; |
n |
|
|
|
|
|
|
|
|
tmp_assign_source_7 = MAKE_FUNCTION___main__$$$function__1_calledRepeatedly(); |
|
|
|
|
|
UPDATE_STRING_DICT0(moduledict___main__, (Nuitka_StringObject *)mod_consts[9], tmp_assign_source_7); |
|
UPDATE_STRING_DICT1(moduledict___main__, (Nuitka_StringObject *)mod_consts[9], tmp_assign_source_7); |
|
} |
|
} |
|
{ |
|
{ |
|
PyObject *tmp_assign_source_8; |
|
PyObject *tmp_assign_source_8; |
n |
|
n |
|
|
|
|
|
|
tmp_assign_source_8 = MAKE_FUNCTION___main__$$$function__1_calledRepeatedly(); |
|
|
|
|
|
|
|
UPDATE_STRING_DICT1(moduledict___main__, (Nuitka_StringObject *)mod_consts[10], tmp_assign_source_8); |
|
|
|
} |
|
|
|
{ |
|
|
|
PyObject *tmp_assign_source_9; |
|
|
|
PyObject *tmp_name_value_1; |
|
PyObject *tmp_name_value_1; |
|
PyObject *tmp_globals_arg_value_1; |
|
PyObject *tmp_globals_arg_value_1; |
|
PyObject *tmp_locals_arg_value_1; |
|
PyObject *tmp_locals_arg_value_1; |
|
PyObject *tmp_fromlist_value_1; |
|
PyObject *tmp_fromlist_value_1; |
|
PyObject *tmp_level_value_1; |
|
PyObject *tmp_level_value_1; |
n |
tmp_name_value_1 = mod_consts[11]; |
n |
tmp_name_value_1 = mod_consts[10]; |
|
tmp_globals_arg_value_1 = (PyObject *)moduledict___main__; |
|
tmp_globals_arg_value_1 = (PyObject *)moduledict___main__; |
|
tmp_locals_arg_value_1 = Py_None; |
|
tmp_locals_arg_value_1 = Py_None; |
|
tmp_fromlist_value_1 = Py_None; |
|
tmp_fromlist_value_1 = Py_None; |
n |
tmp_level_value_1 = mod_consts[12]; |
n |
tmp_level_value_1 = mod_consts[11]; |
|
tmp_assign_source_9 = IMPORT_MODULE5(tmp_name_value_1, tmp_globals_arg_value_1, tmp_locals_arg_value_1, tmp_fromlist_value_1, tmp_level_value_1); |
|
tmp_assign_source_8 = IMPORT_MODULE5(tmp_name_value_1, tmp_globals_arg_value_1, tmp_locals_arg_value_1, tmp_fromlist_value_1, tmp_level_value_1); |
|
assert(!(tmp_assign_source_9 == NULL)); |
|
assert(!(tmp_assign_source_8 == NULL)); |
|
UPDATE_STRING_DICT1(moduledict___main__, (Nuitka_StringObject *)mod_consts[11], tmp_assign_source_9); |
|
UPDATE_STRING_DICT1(moduledict___main__, (Nuitka_StringObject *)mod_consts[10], tmp_assign_source_8); |
|
} |
|
} |
|
// Frame without reuse. |
|
// Frame without reuse. |
|
frame_4b4a5de3a547b0f1df5dc44eca05b0ac = MAKE_MODULE_FRAME(codeobj_4b4a5de3a547b0f1df5dc44eca05b0ac, module___main__); |
|
frame_4b4a5de3a547b0f1df5dc44eca05b0ac = MAKE_MODULE_FRAME(codeobj_4b4a5de3a547b0f1df5dc44eca05b0ac, module___main__); |
|
|
|
|
|
// Push the new frame as the currently active one, and we should be exclusively |
|
// Push the new frame as the currently active one, and we should be exclusively |
|
pushFrameStack(frame_4b4a5de3a547b0f1df5dc44eca05b0ac); |
|
pushFrameStack(frame_4b4a5de3a547b0f1df5dc44eca05b0ac); |
|
assert(Py_REFCNT(frame_4b4a5de3a547b0f1df5dc44eca05b0ac) == 2); |
|
assert(Py_REFCNT(frame_4b4a5de3a547b0f1df5dc44eca05b0ac) == 2); |
|
|
|
|
|
// Framed code: |
|
// Framed code: |
|
{ |
|
{ |
n |
PyObject *tmp_assign_source_10; |
n |
PyObject *tmp_assign_source_9; |
|
PyObject *tmp_iter_arg_1; |
|
PyObject *tmp_iter_arg_1; |
|
PyObject *tmp_called_instance_1; |
|
PyObject *tmp_called_instance_1; |
n |
tmp_called_instance_1 = GET_STRING_DICT_VALUE(moduledict___main__, (Nuitka_StringObject *)mod_consts[11]); |
n |
tmp_called_instance_1 = GET_STRING_DICT_VALUE(moduledict___main__, (Nuitka_StringObject *)mod_consts[10]); |
|
|
|
|
|
if (unlikely(tmp_called_instance_1 == NULL)) { |
|
if (unlikely(tmp_called_instance_1 == NULL)) { |
n |
tmp_called_instance_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[11]); |
n |
tmp_called_instance_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[10]); |
|
} |
|
} |
|
|
|
|
|
assert(!(tmp_called_instance_1 == NULL)); |
|
assert(!(tmp_called_instance_1 == NULL)); |
n |
frame_4b4a5de3a547b0f1df5dc44eca05b0ac->m_frame.f_lineno = 40; |
n |
frame_4b4a5de3a547b0f1df5dc44eca05b0ac->m_frame.f_lineno = 39; |
|
tmp_iter_arg_1 = CALL_METHOD_WITH_ARGS2( |
|
tmp_iter_arg_1 = CALL_METHOD_WITH_ARGS2( |
|
tmp_called_instance_1, |
|
tmp_called_instance_1, |
n |
mod_consts[13], |
n |
mod_consts[12], |
|
&PyTuple_GET_ITEM(mod_consts[14], 0) |
|
&PyTuple_GET_ITEM(mod_consts[13], 0) |
|
); |
|
); |
|
|
|
|
|
if (tmp_iter_arg_1 == NULL) { |
|
if (tmp_iter_arg_1 == NULL) { |
|
assert(ERROR_OCCURRED()); |
|
assert(ERROR_OCCURRED()); |
|
|
|
|
|
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); |
|
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); |
|
|
|
|
|
|
|
|
n |
exception_lineno = 40; |
n |
exception_lineno = 39; |
|
|
|
|
|
goto frame_exception_exit_1; |
|
goto frame_exception_exit_1; |
|
} |
|
} |
n |
tmp_assign_source_10 = MAKE_ITERATOR(tmp_iter_arg_1); |
n |
tmp_assign_source_9 = MAKE_ITERATOR(tmp_iter_arg_1); |
|
Py_DECREF(tmp_iter_arg_1); |
|
Py_DECREF(tmp_iter_arg_1); |
n |
if (tmp_assign_source_10 == NULL) { |
n |
if (tmp_assign_source_9 == NULL) { |
|
assert(ERROR_OCCURRED()); |
|
assert(ERROR_OCCURRED()); |
|
|
|
|
|
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); |
|
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); |
|
|
|
|
|
|
|
|
n |
exception_lineno = 40; |
n |
exception_lineno = 39; |
|
|
|
|
|
goto frame_exception_exit_1; |
|
goto frame_exception_exit_1; |
|
} |
|
} |
|
assert(tmp_for_loop_1__for_iterator == NULL); |
|
assert(tmp_for_loop_1__for_iterator == NULL); |
n |
tmp_for_loop_1__for_iterator = tmp_assign_source_10; |
n |
tmp_for_loop_1__for_iterator = tmp_assign_source_9; |
|
} |
|
} |
|
// Tried code: |
|
// Tried code: |
|
loop_start_1:; |
|
loop_start_1:; |
|
{ |
|
{ |
|
PyObject *tmp_next_source_1; |
|
PyObject *tmp_next_source_1; |
n |
PyObject *tmp_assign_source_11; |
n |
PyObject *tmp_assign_source_10; |
|
CHECK_OBJECT(tmp_for_loop_1__for_iterator); |
|
CHECK_OBJECT(tmp_for_loop_1__for_iterator); |
|
tmp_next_source_1 = tmp_for_loop_1__for_iterator; |
|
tmp_next_source_1 = tmp_for_loop_1__for_iterator; |
n |
tmp_assign_source_11 = ITERATOR_NEXT(tmp_next_source_1); |
n |
tmp_assign_source_10 = ITERATOR_NEXT(tmp_next_source_1); |
|
if (tmp_assign_source_11 == NULL) { |
|
if (tmp_assign_source_10 == NULL) { |
|
if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { |
|
if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { |
|
|
|
|
|
goto loop_end_1; |
|
goto loop_end_1; |
|
} else { |
|
} else { |
|
|
|
|
|
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); |
|
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); |
|
|
|
|
n |
exception_lineno = 40; |
n |
exception_lineno = 39; |
|
goto try_except_handler_1; |
|
goto try_except_handler_1; |
|
} |
|
} |
|
} |
|
} |
|
|
|
|
|
{ |
|
{ |
|
PyObject *old = tmp_for_loop_1__iter_value; |
|
PyObject *old = tmp_for_loop_1__iter_value; |
n |
tmp_for_loop_1__iter_value = tmp_assign_source_11; |
n |
tmp_for_loop_1__iter_value = tmp_assign_source_10; |
|
Py_XDECREF(old); |
|
Py_XDECREF(old); |
|
} |
|
} |
|
|
|
|
|
} |
|
} |
|
{ |
|
{ |
n |
PyObject *tmp_assign_source_12; |
n |
PyObject *tmp_assign_source_11; |
|
CHECK_OBJECT(tmp_for_loop_1__iter_value); |
|
CHECK_OBJECT(tmp_for_loop_1__iter_value); |
n |
tmp_assign_source_12 = tmp_for_loop_1__iter_value; |
n |
tmp_assign_source_11 = tmp_for_loop_1__iter_value; |
|
UPDATE_STRING_DICT0(moduledict___main__, (Nuitka_StringObject *)mod_consts[15], tmp_assign_source_12); |
|
UPDATE_STRING_DICT0(moduledict___main__, (Nuitka_StringObject *)mod_consts[14], tmp_assign_source_11); |
|
} |
|
} |
|
{ |
|
{ |
|
PyObject *tmp_called_value_1; |
|
PyObject *tmp_called_value_1; |
|
PyObject *tmp_call_result_1; |
|
PyObject *tmp_call_result_1; |
n |
tmp_called_value_1 = GET_STRING_DICT_VALUE(moduledict___main__, (Nuitka_StringObject *)mod_consts[10]); |
n |
tmp_called_value_1 = GET_STRING_DICT_VALUE(moduledict___main__, (Nuitka_StringObject *)mod_consts[9]); |
|
|
|
|
|
if (unlikely(tmp_called_value_1 == NULL)) { |
|
if (unlikely(tmp_called_value_1 == NULL)) { |
n |
tmp_called_value_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[10]); |
n |
tmp_called_value_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[9]); |
|
} |
|
} |
|
|
|
|
|
if (tmp_called_value_1 == NULL) { |
|
if (tmp_called_value_1 == NULL) { |
|
assert(ERROR_OCCURRED()); |
|
assert(ERROR_OCCURRED()); |
|
|
|
|
|
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); |
|
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); |
|
|
|
|
|
|
|
|
n |
exception_lineno = 41; |
n |
exception_lineno = 40; |
|
|
|
|
|
goto try_except_handler_1; |
|
goto try_except_handler_1; |
|
} |
|
} |
n |
frame_4b4a5de3a547b0f1df5dc44eca05b0ac->m_frame.f_lineno = 41; |
n |
frame_4b4a5de3a547b0f1df5dc44eca05b0ac->m_frame.f_lineno = 40; |
|
tmp_call_result_1 = CALL_FUNCTION_NO_ARGS(tmp_called_value_1); |
|
tmp_call_result_1 = CALL_FUNCTION_NO_ARGS(tmp_called_value_1); |
|
if (tmp_call_result_1 == NULL) { |
|
if (tmp_call_result_1 == NULL) { |
|
assert(ERROR_OCCURRED()); |
|
assert(ERROR_OCCURRED()); |
|
|
|
|
|
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); |
|
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); |
|
|
|
|
|
|
|
|
n |
exception_lineno = 41; |
n |
exception_lineno = 40; |
|
|
|
|
|
goto try_except_handler_1; |
|
goto try_except_handler_1; |
|
} |
|
} |
|
Py_DECREF(tmp_call_result_1); |
|
Py_DECREF(tmp_call_result_1); |
|
} |
|
} |