|
|
|
|
|
PyObject *module___main__; |
|
PyObject *module___main__; |
|
PyDictObject *moduledict___main__; |
|
PyDictObject *moduledict___main__; |
|
|
|
|
|
/* The declarations of module constants used, if any. */ |
|
/* The declarations of module constants used, if any. */ |
n |
static PyObject *mod_consts[13]; |
n |
static PyObject *mod_consts[14]; |
|
#ifndef __NUITKA_NO_ASSERT__ |
|
#ifndef __NUITKA_NO_ASSERT__ |
n |
static Py_hash_t mod_consts_hash[13]; |
n |
static Py_hash_t mod_consts_hash[14]; |
|
#endif |
|
#endif |
|
|
|
|
|
static PyObject *module_filename_obj = NULL; |
|
static PyObject *module_filename_obj = NULL; |
|
|
|
|
|
/* Indicator if this modules private constants were created yet. */ |
|
/* Indicator if this modules private constants were created yet. */ |
|
if (constants_created == false) { |
|
if (constants_created == false) { |
|
loadConstantsBlob(tstate, &mod_consts[0], UNTRANSLATE("__main__")); |
|
loadConstantsBlob(tstate, &mod_consts[0], UNTRANSLATE("__main__")); |
|
constants_created = true; |
|
constants_created = true; |
|
|
|
|
|
#ifndef __NUITKA_NO_ASSERT__ |
|
#ifndef __NUITKA_NO_ASSERT__ |
n |
for (int i = 0; i < 13; i++) { |
n |
for (int i = 0; i < 14; i++) { |
|
mod_consts_hash[i] = DEEP_HASH(tstate, mod_consts[i]); |
|
mod_consts_hash[i] = DEEP_HASH(tstate, mod_consts[i]); |
|
} |
|
} |
|
#endif |
|
#endif |
|
} |
|
} |
|
} |
|
} |
|
#ifndef __NUITKA_NO_ASSERT__ |
|
#ifndef __NUITKA_NO_ASSERT__ |
|
void checkModuleConstants___main__(PyThreadState *tstate) { |
|
void checkModuleConstants___main__(PyThreadState *tstate) { |
|
// 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 < 13; i++) { |
n |
for (int i = 0; i < 14; i++) { |
|
assert(mod_consts_hash[i] == DEEP_HASH(tstate, mod_consts[i])); |
|
assert(mod_consts_hash[i] == DEEP_HASH(tstate, mod_consts[i])); |
|
CHECK_OBJECT_DEEP(mod_consts[i]); |
|
CHECK_OBJECT_DEEP(mod_consts[i]); |
|
} |
|
} |
|
} |
|
} |
|
#endif |
|
#endif |
|
static PyCodeObject *codeobj_41df2e5b19fe1ed384ed0a19b8f9c707; |
|
static PyCodeObject *codeobj_41df2e5b19fe1ed384ed0a19b8f9c707; |
|
/* 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[2]; CHECK_OBJECT(module_filename_obj); |
n |
module_filename_obj = mod_consts[3]; CHECK_OBJECT(module_filename_obj); |
|
codeobj_d30b0bf4425a0c4f774bd3f236f95d17 = MAKE_CODE_OBJECT(module_filename_obj, 1, CO_NOFREE, mod_consts[11], mod_consts[11], NULL, NULL, 0, 0, 0); |
|
codeobj_d30b0bf4425a0c4f774bd3f236f95d17 = MAKE_CODE_OBJECT(module_filename_obj, 1, CO_NOFREE, mod_consts[12], mod_consts[12], NULL, NULL, 0, 0, 0); |
|
codeobj_main = codeobj_d30b0bf4425a0c4f774bd3f236f95d17; |
|
codeobj_main = codeobj_d30b0bf4425a0c4f774bd3f236f95d17; |
n |
codeobj_41df2e5b19fe1ed384ed0a19b8f9c707 = MAKE_CODE_OBJECT(module_filename_obj, 9, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[6], mod_consts[6], mod_consts[12], NULL, 1, 0, 0); |
n |
codeobj_41df2e5b19fe1ed384ed0a19b8f9c707 = MAKE_CODE_OBJECT(module_filename_obj, 9, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[7], mod_consts[7], mod_consts[13], NULL, 1, 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(); |
|
|
|
|
|
NUITKA_MAY_BE_UNUSED bool had_error = HAS_ERROR_OCCURRED(tstate); |
|
NUITKA_MAY_BE_UNUSED bool had_error = HAS_ERROR_OCCURRED(tstate); |
|
#endif |
|
#endif |
|
|
|
|
|
// Local variable declarations. |
|
// Local variable declarations. |
|
PyObject *par_tuple_value1 = python_pars[0]; |
|
PyObject *par_tuple_value1 = python_pars[0]; |
n |
PyObject *var_l = NULL; |
n |
|
|
struct Nuitka_FrameObject *frame_41df2e5b19fe1ed384ed0a19b8f9c707; |
|
struct Nuitka_FrameObject *frame_41df2e5b19fe1ed384ed0a19b8f9c707; |
|
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; |
|
static struct Nuitka_FrameObject *cache_frame_41df2e5b19fe1ed384ed0a19b8f9c707 = NULL; |
|
static struct Nuitka_FrameObject *cache_frame_41df2e5b19fe1ed384ed0a19b8f9c707 = 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 |
|
|
if (isFrameUnusable(cache_frame_41df2e5b19fe1ed384ed0a19b8f9c707)) { |
|
if (isFrameUnusable(cache_frame_41df2e5b19fe1ed384ed0a19b8f9c707)) { |
|
Py_XDECREF(cache_frame_41df2e5b19fe1ed384ed0a19b8f9c707); |
|
Py_XDECREF(cache_frame_41df2e5b19fe1ed384ed0a19b8f9c707); |
|
|
|
|
|
#if _DEBUG_REFCOUNTS |
|
#if _DEBUG_REFCOUNTS |
|
if (cache_frame_41df2e5b19fe1ed384ed0a19b8f9c707 == NULL) { |
|
if (cache_frame_41df2e5b19fe1ed384ed0a19b8f9c707 == NULL) { |
|
|
|
|
|
// Put the previous frame back on top. |
|
// Put the previous frame back on top. |
|
popFrameStack(tstate); |
|
popFrameStack(tstate); |
|
|
|
|
|
// 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 |
PyObject *tmp_assign_source_1; |
n |
|
|
PyObject *tmp_tuple_element_1; |
|
PyObject *tmp_tuple_element_1; |
n |
|
n |
tmp_tuple_element_1 = mod_consts[1]; |
|
|
|
tmp_return_value = MAKE_TUPLE_EMPTY(2); |
|
|
|
PyTuple_SET_ITEM0(tmp_return_value, 0, tmp_tuple_element_1); |
|
CHECK_OBJECT(par_tuple_value1); |
|
CHECK_OBJECT(par_tuple_value1); |
|
tmp_tuple_element_1 = par_tuple_value1; |
|
tmp_tuple_element_1 = par_tuple_value1; |
n |
tmp_assign_source_1 = MAKE_TUPLE_EMPTY(5); |
n |
|
|
PyTuple_SET_ITEM0(tmp_assign_source_1, 0, tmp_tuple_element_1); |
|
|
|
CHECK_OBJECT(par_tuple_value1); |
|
|
|
tmp_tuple_element_1 = par_tuple_value1; |
|
|
|
PyTuple_SET_ITEM0(tmp_assign_source_1, 1, tmp_tuple_element_1); |
|
|
|
CHECK_OBJECT(par_tuple_value1); |
|
|
|
tmp_tuple_element_1 = par_tuple_value1; |
|
|
|
PyTuple_SET_ITEM0(tmp_assign_source_1, 2, tmp_tuple_element_1); |
|
|
|
CHECK_OBJECT(par_tuple_value1); |
|
|
|
tmp_tuple_element_1 = par_tuple_value1; |
|
|
|
PyTuple_SET_ITEM0(tmp_assign_source_1, 3, tmp_tuple_element_1); |
|
|
|
CHECK_OBJECT(par_tuple_value1); |
|
|
|
tmp_tuple_element_1 = par_tuple_value1; |
|
|
|
PyTuple_SET_ITEM0(tmp_assign_source_1, 4, tmp_tuple_element_1); |
|
|
|
assert(var_l == NULL); |
|
|
|
var_l = tmp_assign_source_1; |
|
|
|
} |
|
|
|
{ |
|
|
|
PyObject *tmp_tuple_element_2; |
|
|
|
CHECK_OBJECT(var_l); |
|
|
|
tmp_tuple_element_2 = var_l; |
|
|
|
tmp_return_value = MAKE_TUPLE_EMPTY(2); |
|
|
|
PyTuple_SET_ITEM0(tmp_return_value, 0, tmp_tuple_element_2); |
|
|
|
CHECK_OBJECT(par_tuple_value1); |
|
|
|
tmp_tuple_element_2 = par_tuple_value1; |
|
|
|
PyTuple_SET_ITEM0(tmp_return_value, 1, tmp_tuple_element_2); |
|
PyTuple_SET_ITEM0(tmp_return_value, 1, tmp_tuple_element_1); |
|
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_l); |
|
|
|
Py_DECREF(var_l); |
|
|
|
var_l = NULL; |
|
|
|
goto function_return_exit; |
|
goto function_return_exit; |
|
// Exception handler code: |
|
} |
|
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: |
|
|
|
|
|
|
|
NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); |
|
NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); |
|
return NULL; |
|
return NULL; |
|
|
|
|
|
function_exception_exit: |
|
function_exception_exit: |
|
|
|
|
|
// 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[1], tmp_assign_source_1); |
n |
UPDATE_STRING_DICT0(moduledict___main__, (Nuitka_StringObject *)mod_consts[2], tmp_assign_source_1); |
|
} |
|
} |
|
{ |
|
{ |
|
PyObject *tmp_assign_source_2; |
|
PyObject *tmp_assign_source_2; |
n |
tmp_assign_source_2 = mod_consts[2]; |
n |
tmp_assign_source_2 = mod_consts[3]; |
|
UPDATE_STRING_DICT0(moduledict___main__, (Nuitka_StringObject *)mod_consts[3], tmp_assign_source_2); |
|
UPDATE_STRING_DICT0(moduledict___main__, (Nuitka_StringObject *)mod_consts[4], tmp_assign_source_2); |
|
} |
|
} |
|
frame_d30b0bf4425a0c4f774bd3f236f95d17 = MAKE_MODULE_FRAME(codeobj_d30b0bf4425a0c4f774bd3f236f95d17, module___main__); |
|
frame_d30b0bf4425a0c4f774bd3f236f95d17 = MAKE_MODULE_FRAME(codeobj_d30b0bf4425a0c4f774bd3f236f95d17, 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 |
|
// owning it. |
|
// owning it. |
|
PyObject *tmp_assign_source_3; |
|
PyObject *tmp_assign_source_3; |
|
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; |
n |
tmp_name_value_1 = mod_consts[4]; |
n |
tmp_name_value_1 = mod_consts[5]; |
|
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; |
|
frame_d30b0bf4425a0c4f774bd3f236f95d17->m_frame.f_lineno = 4; |
|
frame_d30b0bf4425a0c4f774bd3f236f95d17->m_frame.f_lineno = 4; |
|
tmp_assign_source_3 = IMPORT_MODULE4(tstate, tmp_name_value_1, tmp_globals_arg_value_1, tmp_locals_arg_value_1, tmp_fromlist_value_1); |
|
tmp_assign_source_3 = IMPORT_MODULE4(tstate, tmp_name_value_1, tmp_globals_arg_value_1, tmp_locals_arg_value_1, tmp_fromlist_value_1); |
|
|
|
|
|
exception_lineno = 4; |
|
exception_lineno = 4; |
|
|
|
|
|
goto frame_exception_exit_1; |
|
goto frame_exception_exit_1; |
|
} |
|
} |
n |
UPDATE_STRING_DICT1(moduledict___main__, (Nuitka_StringObject *)mod_consts[4], tmp_assign_source_3); |
n |
UPDATE_STRING_DICT1(moduledict___main__, (Nuitka_StringObject *)mod_consts[5], tmp_assign_source_3); |
|
} |
|
} |
|
{ |
|
{ |
|
PyObject *tmp_assign_source_4; |
|
PyObject *tmp_assign_source_4; |
n |
tmp_assign_source_4 = mod_consts[5]; |
n |
tmp_assign_source_4 = mod_consts[6]; |
|
UPDATE_STRING_DICT0(moduledict___main__, (Nuitka_StringObject *)mod_consts[0], tmp_assign_source_4); |
|
UPDATE_STRING_DICT0(moduledict___main__, (Nuitka_StringObject *)mod_consts[0], tmp_assign_source_4); |
|
} |
|
} |
|
{ |
|
{ |
|
PyObject *tmp_assign_source_5; |
|
PyObject *tmp_assign_source_5; |
|
|
|
|
|
|
|
|
|
tmp_assign_source_5 = MAKE_FUNCTION___main__$$$function__1_calledRepeatedly(); |
|
tmp_assign_source_5 = MAKE_FUNCTION___main__$$$function__1_calledRepeatedly(); |
|
|
|
|
n |
UPDATE_STRING_DICT1(moduledict___main__, (Nuitka_StringObject *)mod_consts[6], tmp_assign_source_5); |
n |
UPDATE_STRING_DICT1(moduledict___main__, (Nuitka_StringObject *)mod_consts[7], tmp_assign_source_5); |
|
} |
|
} |
|
{ |
|
{ |
|
PyObject *tmp_assign_source_6; |
|
PyObject *tmp_assign_source_6; |
|
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[4]); |
n |
tmp_called_instance_1 = GET_STRING_DICT_VALUE(moduledict___main__, (Nuitka_StringObject *)mod_consts[5]); |
|
|
|
|
|
if (unlikely(tmp_called_instance_1 == NULL)) { |
|
if (unlikely(tmp_called_instance_1 == NULL)) { |
n |
tmp_called_instance_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(tstate, mod_consts[4]); |
n |
tmp_called_instance_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(tstate, mod_consts[5]); |
|
} |
|
} |
|
|
|
|
|
assert(!(tmp_called_instance_1 == NULL)); |
|
assert(!(tmp_called_instance_1 == NULL)); |
|
frame_d30b0bf4425a0c4f774bd3f236f95d17->m_frame.f_lineno = 22; |
|
frame_d30b0bf4425a0c4f774bd3f236f95d17->m_frame.f_lineno = 22; |
|
tmp_iter_arg_1 = CALL_METHOD_WITH_ARGS2( |
|
tmp_iter_arg_1 = CALL_METHOD_WITH_ARGS2( |
|
tstate, |
|
tstate, |
|
tmp_called_instance_1, |
|
tmp_called_instance_1, |
n |
mod_consts[7], |
n |
mod_consts[8], |
|
&PyTuple_GET_ITEM(mod_consts[8], 0) |
|
&PyTuple_GET_ITEM(mod_consts[9], 0) |
|
); |
|
); |
|
|
|
|
|
if (tmp_iter_arg_1 == NULL) { |
|
if (tmp_iter_arg_1 == NULL) { |
|
assert(HAS_ERROR_OCCURRED(tstate)); |
|
assert(HAS_ERROR_OCCURRED(tstate)); |
|
|
|
|
|
} |
|
} |
|
{ |
|
{ |
|
PyObject *tmp_assign_source_8; |
|
PyObject *tmp_assign_source_8; |
|
CHECK_OBJECT(tmp_for_loop_1__iter_value); |
|
CHECK_OBJECT(tmp_for_loop_1__iter_value); |
|
tmp_assign_source_8 = tmp_for_loop_1__iter_value; |
|
tmp_assign_source_8 = tmp_for_loop_1__iter_value; |
n |
UPDATE_STRING_DICT0(moduledict___main__, (Nuitka_StringObject *)mod_consts[9], tmp_assign_source_8); |
n |
UPDATE_STRING_DICT0(moduledict___main__, (Nuitka_StringObject *)mod_consts[10], tmp_assign_source_8); |
|
} |
|
} |
|
{ |
|
{ |
|
PyObject *tmp_called_value_1; |
|
PyObject *tmp_called_value_1; |
|
PyObject *tmp_call_result_1; |
|
PyObject *tmp_call_result_1; |
|
PyObject *tmp_args_element_value_1; |
|
PyObject *tmp_args_element_value_1; |
n |
tmp_called_value_1 = GET_STRING_DICT_VALUE(moduledict___main__, (Nuitka_StringObject *)mod_consts[6]); |
n |
tmp_called_value_1 = GET_STRING_DICT_VALUE(moduledict___main__, (Nuitka_StringObject *)mod_consts[7]); |
|
|
|
|
|
if (unlikely(tmp_called_value_1 == NULL)) { |
|
if (unlikely(tmp_called_value_1 == NULL)) { |
n |
tmp_called_value_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(tstate, mod_consts[6]); |
n |
tmp_called_value_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(tstate, mod_consts[7]); |
|
} |
|
} |
|
|
|
|
|
if (tmp_called_value_1 == NULL) { |
|
if (tmp_called_value_1 == NULL) { |
|
assert(HAS_ERROR_OCCURRED(tstate)); |
|
assert(HAS_ERROR_OCCURRED(tstate)); |
|
|
|
|
|
Py_XDECREF(tmp_for_loop_1__iter_value); |
|
Py_XDECREF(tmp_for_loop_1__iter_value); |
|
tmp_for_loop_1__iter_value = NULL; |
|
tmp_for_loop_1__iter_value = NULL; |
|
CHECK_OBJECT(tmp_for_loop_1__for_iterator); |
|
CHECK_OBJECT(tmp_for_loop_1__for_iterator); |
|
Py_DECREF(tmp_for_loop_1__for_iterator); |
|
Py_DECREF(tmp_for_loop_1__for_iterator); |
|
tmp_for_loop_1__for_iterator = NULL; |
|
tmp_for_loop_1__for_iterator = NULL; |
t |
tmp_print_value = mod_consts[10]; |
t |
tmp_print_value = mod_consts[11]; |
|
tmp_result = PRINT_ITEM(tmp_print_value); |
|
tmp_result = PRINT_ITEM(tmp_print_value); |
|
if (tmp_result == false) { |
|
if (tmp_result == false) { |
|
assert(HAS_ERROR_OCCURRED(tstate)); |
|
assert(HAS_ERROR_OCCURRED(tstate)); |
|
|
|
|
|
FETCH_ERROR_OCCURRED(tstate, &exception_type, &exception_value, &exception_tb); |
|
FETCH_ERROR_OCCURRED(tstate, &exception_type, &exception_value, &exception_tb); |