|
|
|
|
|
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[21]; |
n |
static PyObject *mod_consts[18]; |
|
#ifndef __NUITKA_NO_ASSERT__ |
|
#ifndef __NUITKA_NO_ASSERT__ |
n |
static Py_hash_t mod_consts_hash[21]; |
n |
static Py_hash_t mod_consts_hash[18]; |
|
#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(&mod_consts[0], UNTRANSLATE("__main__")); |
|
loadConstantsBlob(&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 < 21; i++) { |
n |
for(int i = 0; i < 18; i++) { |
|
mod_consts_hash[i] = DEEP_HASH(mod_consts[i]); |
|
mod_consts_hash[i] = DEEP_HASH(mod_consts[i]); |
|
} |
|
} |
|
#endif |
|
#endif |
|
} |
|
} |
|
} |
|
} |
|
#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 < 21; i++) { |
n |
for(int i = 0; i < 18; 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 |
|
static PyCodeObject *codeobj_2c9f35daeb1cd72ecf99d4edfae8412a; |
|
static PyCodeObject *codeobj_2c9f35daeb1cd72ecf99d4edfae8412a; |
|
/* 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[6]; CHECK_OBJECT(module_filename_obj); |
n |
module_filename_obj = mod_consts[2]; CHECK_OBJECT(module_filename_obj); |
|
codeobj_737d6926d9a0ffbe458ac85792cc7ad2 = MAKE_CODEOBJECT(module_filename_obj, 1, CO_NOFREE, mod_consts[19], NULL, NULL, 0, 0, 0); |
|
codeobj_737d6926d9a0ffbe458ac85792cc7ad2 = MAKE_CODEOBJECT(module_filename_obj, 1, CO_NOFREE, mod_consts[15], NULL, NULL, 0, 0, 0); |
|
codeobj_44207e0f8c252daa71c240b47458e799 = MAKE_CODEOBJECT(module_filename_obj, 25, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[11], mod_consts[20], NULL, 0, 0, 0); |
|
codeobj_44207e0f8c252daa71c240b47458e799 = MAKE_CODEOBJECT(module_filename_obj, 25, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[7], mod_consts[16], NULL, 0, 0, 0); |
|
codeobj_2c9f35daeb1cd72ecf99d4edfae8412a = MAKE_CODEOBJECT(module_filename_obj, 22, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[0], mod_consts[2], NULL, 3, 0, 0); |
|
codeobj_2c9f35daeb1cd72ecf99d4edfae8412a = MAKE_CODEOBJECT(module_filename_obj, 22, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[0], mod_consts[17], NULL, 3, 0, 0); |
|
} |
|
} |
|
|
|
|
|
// The module function declarations. |
|
// The module function declarations. |
|
static PyObject *MAKE_FUNCTION___main__$$$function__1_compiled_func(); |
|
static PyObject *MAKE_FUNCTION___main__$$$function__1_compiled_func(); |
|
|
|
|
|
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 |
NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; |
n |
|
|
static struct Nuitka_FrameObject *cache_frame_44207e0f8c252daa71c240b47458e799 = NULL; |
|
static struct Nuitka_FrameObject *cache_frame_44207e0f8c252daa71c240b47458e799 = NULL; |
|
PyObject *tmp_return_value = 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; |
|
goto frame_exception_exit_1; |
|
goto frame_exception_exit_1; |
|
} |
|
} |
|
assert(var_compiled_f == NULL); |
|
assert(var_compiled_f == NULL); |
|
Py_INCREF(tmp_assign_source_1); |
|
Py_INCREF(tmp_assign_source_1); |
|
var_compiled_f = tmp_assign_source_1; |
|
var_compiled_f = tmp_assign_source_1; |
n |
} |
n |
|
|
{ |
|
|
|
PyObject *tmp_called_value_1; |
|
|
|
PyObject *tmp_call_result_1; |
|
|
|
CHECK_OBJECT(var_compiled_f); |
|
|
|
tmp_called_value_1 = var_compiled_f; |
|
|
|
frame_44207e0f8c252daa71c240b47458e799->m_frame.f_lineno = 31; |
|
|
|
tmp_call_result_1 = CALL_FUNCTION_WITH_NO_ARGS_KWSPLIT(tmp_called_value_1, &PyTuple_GET_ITEM(mod_consts[1], 0), mod_consts[2]); |
|
|
|
if (tmp_call_result_1 == NULL) { |
|
|
|
assert(ERROR_OCCURRED()); |
|
|
|
|
|
|
|
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); |
|
|
|
|
|
|
|
|
|
|
|
exception_lineno = 31; |
|
|
|
type_description_1 = "o"; |
|
|
|
goto frame_exception_exit_1; |
|
|
|
} |
|
|
|
Py_DECREF(tmp_call_result_1); |
|
|
|
} |
|
|
|
{ |
|
|
|
PyObject *tmp_called_value_2; |
|
|
|
PyObject *tmp_call_result_2; |
|
|
|
CHECK_OBJECT(var_compiled_f); |
|
|
|
tmp_called_value_2 = var_compiled_f; |
|
|
|
frame_44207e0f8c252daa71c240b47458e799->m_frame.f_lineno = 32; |
|
|
|
tmp_call_result_2 = CALL_FUNCTION_WITH_NO_ARGS_KWSPLIT(tmp_called_value_2, &PyTuple_GET_ITEM(mod_consts[3], 0), mod_consts[2]); |
|
|
|
if (tmp_call_result_2 == NULL) { |
|
|
|
assert(ERROR_OCCURRED()); |
|
|
|
|
|
|
|
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); |
|
|
|
|
|
|
|
|
|
|
|
exception_lineno = 32; |
|
|
|
type_description_1 = "o"; |
|
|
|
goto frame_exception_exit_1; |
|
|
|
} |
|
|
|
Py_DECREF(tmp_call_result_2); |
|
|
|
} |
|
|
|
{ |
|
|
|
PyObject *tmp_called_value_3; |
|
|
|
PyObject *tmp_call_result_3; |
|
|
|
CHECK_OBJECT(var_compiled_f); |
|
|
|
tmp_called_value_3 = var_compiled_f; |
|
|
|
frame_44207e0f8c252daa71c240b47458e799->m_frame.f_lineno = 33; |
|
|
|
tmp_call_result_3 = CALL_FUNCTION_WITH_NO_ARGS_KWSPLIT(tmp_called_value_3, &PyTuple_GET_ITEM(mod_consts[4], 0), mod_consts[2]); |
|
|
|
if (tmp_call_result_3 == NULL) { |
|
|
|
assert(ERROR_OCCURRED()); |
|
|
|
|
|
|
|
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); |
|
|
|
|
|
|
|
|
|
|
|
exception_lineno = 33; |
|
|
|
type_description_1 = "o"; |
|
|
|
goto frame_exception_exit_1; |
|
|
|
} |
|
|
|
Py_DECREF(tmp_call_result_3); |
|
|
|
} |
|
} |
|
|
|
|
|
#if 0 |
|
#if 0 |
|
RESTORE_FRAME_EXCEPTION(frame_44207e0f8c252daa71c240b47458e799); |
|
RESTORE_FRAME_EXCEPTION(frame_44207e0f8c252daa71c240b47458e799); |
|
#endif |
|
#endif |
|
|
|
|
|
|
|
|
|
static PyObject *MAKE_FUNCTION___main__$$$function__2_calledRepeatedly() { |
|
static PyObject *MAKE_FUNCTION___main__$$$function__2_calledRepeatedly() { |
|
struct Nuitka_FunctionObject *result = Nuitka_Function_New( |
|
struct Nuitka_FunctionObject *result = Nuitka_Function_New( |
|
impl___main__$$$function__2_calledRepeatedly, |
|
impl___main__$$$function__2_calledRepeatedly, |
n |
mod_consts[11], |
n |
mod_consts[7], |
|
#if PYTHON_VERSION >= 0x300 |
|
#if PYTHON_VERSION >= 0x300 |
|
NULL, |
|
NULL, |
|
#endif |
|
#endif |
|
codeobj_44207e0f8c252daa71c240b47458e799, |
|
codeobj_44207e0f8c252daa71c240b47458e799, |
|
NULL, |
|
NULL, |
|
|
|
|
|
// 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[5], 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[6]; |
n |
tmp_assign_source_2 = mod_consts[2]; |
|
UPDATE_STRING_DICT0(moduledict___main__, (Nuitka_StringObject *)mod_consts[7], 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[8], 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[9], 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; |
|
{ |
|
{ |
|
PyObject *hard_module = IMPORT_HARD___FUTURE__(); |
|
PyObject *hard_module = IMPORT_HARD___FUTURE__(); |
n |
tmp_assign_source_5 = LOOKUP_ATTRIBUTE(hard_module, mod_consts[10]); |
n |
tmp_assign_source_5 = LOOKUP_ATTRIBUTE(hard_module, mod_consts[6]); |
|
} |
|
} |
|
|
|
|
|
assert(!(tmp_assign_source_5 == NULL)); |
|
assert(!(tmp_assign_source_5 == NULL)); |
n |
UPDATE_STRING_DICT0(moduledict___main__, (Nuitka_StringObject *)mod_consts[10], tmp_assign_source_5); |
n |
UPDATE_STRING_DICT0(moduledict___main__, (Nuitka_StringObject *)mod_consts[6], tmp_assign_source_5); |
|
} |
|
} |
|
{ |
|
{ |
|
PyObject *tmp_assign_source_6; |
|
PyObject *tmp_assign_source_6; |
|
|
|
|
|
|
|
|
|
PyObject *tmp_assign_source_7; |
|
PyObject *tmp_assign_source_7; |
|
|
|
|
|
|
|
|
|
tmp_assign_source_7 = MAKE_FUNCTION___main__$$$function__2_calledRepeatedly(); |
|
tmp_assign_source_7 = MAKE_FUNCTION___main__$$$function__2_calledRepeatedly(); |
|
|
|
|
n |
UPDATE_STRING_DICT1(moduledict___main__, (Nuitka_StringObject *)mod_consts[11], tmp_assign_source_7); |
n |
UPDATE_STRING_DICT1(moduledict___main__, (Nuitka_StringObject *)mod_consts[7], tmp_assign_source_7); |
|
} |
|
} |
|
{ |
|
{ |
|
PyObject *tmp_assign_source_8; |
|
PyObject *tmp_assign_source_8; |
|
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[12]; |
n |
tmp_name_value_1 = mod_consts[8]; |
|
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[13]; |
n |
tmp_level_value_1 = mod_consts[9]; |
|
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); |
|
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_8 == NULL)); |
|
assert(!(tmp_assign_source_8 == NULL)); |
n |
UPDATE_STRING_DICT1(moduledict___main__, (Nuitka_StringObject *)mod_consts[12], tmp_assign_source_8); |
n |
UPDATE_STRING_DICT1(moduledict___main__, (Nuitka_StringObject *)mod_consts[8], tmp_assign_source_8); |
|
} |
|
} |
|
// Frame without reuse. |
|
// Frame without reuse. |
|
frame_737d6926d9a0ffbe458ac85792cc7ad2 = MAKE_MODULE_FRAME(codeobj_737d6926d9a0ffbe458ac85792cc7ad2, module___main__); |
|
frame_737d6926d9a0ffbe458ac85792cc7ad2 = MAKE_MODULE_FRAME(codeobj_737d6926d9a0ffbe458ac85792cc7ad2, 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 |
|
// Framed code: |
|
// Framed code: |
|
{ |
|
{ |
|
PyObject *tmp_assign_source_9; |
|
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[12]); |
n |
tmp_called_instance_1 = GET_STRING_DICT_VALUE(moduledict___main__, (Nuitka_StringObject *)mod_consts[8]); |
|
|
|
|
|
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[12]); |
n |
tmp_called_instance_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[8]); |
|
} |
|
} |
|
|
|
|
|
assert(!(tmp_called_instance_1 == NULL)); |
|
assert(!(tmp_called_instance_1 == NULL)); |
|
frame_737d6926d9a0ffbe458ac85792cc7ad2->m_frame.f_lineno = 42; |
|
frame_737d6926d9a0ffbe458ac85792cc7ad2->m_frame.f_lineno = 42; |
|
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[14], |
n |
mod_consts[10], |
|
&PyTuple_GET_ITEM(mod_consts[15], 0) |
|
&PyTuple_GET_ITEM(mod_consts[11], 0) |
|
); |
|
); |
|
|
|
|
|
if (tmp_iter_arg_1 == NULL) { |
|
if (tmp_iter_arg_1 == NULL) { |
|
assert(ERROR_OCCURRED()); |
|
assert(ERROR_OCCURRED()); |
|
|
|
|
|
} |
|
} |
|
{ |
|
{ |
|
PyObject *tmp_assign_source_11; |
|
PyObject *tmp_assign_source_11; |
|
CHECK_OBJECT(tmp_for_loop_1__iter_value); |
|
CHECK_OBJECT(tmp_for_loop_1__iter_value); |
|
tmp_assign_source_11 = tmp_for_loop_1__iter_value; |
|
tmp_assign_source_11 = tmp_for_loop_1__iter_value; |
n |
UPDATE_STRING_DICT0(moduledict___main__, (Nuitka_StringObject *)mod_consts[16], tmp_assign_source_11); |
n |
UPDATE_STRING_DICT0(moduledict___main__, (Nuitka_StringObject *)mod_consts[12], 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[11]); |
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(mod_consts[11]); |
n |
tmp_called_value_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[7]); |
|
} |
|
} |
|
|
|
|
|
if (tmp_called_value_1 == NULL) { |
|
if (tmp_called_value_1 == NULL) { |
|
assert(ERROR_OCCURRED()); |
|
assert(ERROR_OCCURRED()); |
|
|
|
|
|
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; |
|
{ |
|
{ |
|
PyObject *tmp_called_value_2; |
|
PyObject *tmp_called_value_2; |
|
PyObject *tmp_call_result_2; |
|
PyObject *tmp_call_result_2; |
n |
tmp_called_value_2 = LOOKUP_BUILTIN(mod_consts[17]); |
n |
tmp_called_value_2 = LOOKUP_BUILTIN(mod_consts[13]); |
|
assert(tmp_called_value_2 != NULL); |
|
assert(tmp_called_value_2 != NULL); |
|
frame_737d6926d9a0ffbe458ac85792cc7ad2->m_frame.f_lineno = 45; |
|
frame_737d6926d9a0ffbe458ac85792cc7ad2->m_frame.f_lineno = 45; |
t |
tmp_call_result_2 = CALL_FUNCTION_WITH_POSARGS1(tmp_called_value_2, mod_consts[18]); |
t |
tmp_call_result_2 = CALL_FUNCTION_WITH_POSARGS1(tmp_called_value_2, mod_consts[14]); |
|
|
|
|
|
if (tmp_call_result_2 == NULL) { |
|
if (tmp_call_result_2 == 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); |