|
|
|
|
|
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[17]; |
n |
static PyObject *mod_consts[15]; |
|
#ifndef __NUITKA_NO_ASSERT__ |
|
#ifndef __NUITKA_NO_ASSERT__ |
n |
static Py_hash_t mod_consts_hash[17]; |
n |
static Py_hash_t mod_consts_hash[15]; |
|
#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 < 17; i++) { |
n |
for (int i = 0; i < 15; 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 < 17; i++) { |
n |
for (int i = 0; i < 15; 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_c442309b90bd103b05fbc43d173a69bf; |
|
static PyCodeObject *codeobj_c442309b90bd103b05fbc43d173a69bf; |
|
/* 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[4]; CHECK_OBJECT(module_filename_obj); |
n |
module_filename_obj = mod_consts[2]; CHECK_OBJECT(module_filename_obj); |
|
codeobj_87bf8eee343160cf271460f37cfa7870 = MAKE_CODE_OBJECT(module_filename_obj, 1, CO_NOFREE | CO_FUTURE_PRINT_FUNCTION, mod_consts[14], mod_consts[14], NULL, NULL, 0, 0, 0); |
|
codeobj_87bf8eee343160cf271460f37cfa7870 = MAKE_CODE_OBJECT(module_filename_obj, 1, CO_NOFREE | CO_FUTURE_PRINT_FUNCTION, mod_consts[12], mod_consts[12], NULL, NULL, 0, 0, 0); |
|
codeobj_main = codeobj_87bf8eee343160cf271460f37cfa7870; |
|
codeobj_main = codeobj_87bf8eee343160cf271460f37cfa7870; |
n |
codeobj_fb995c436ea414309089298c286c0420 = MAKE_CODE_OBJECT(module_filename_obj, 29, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE | CO_FUTURE_PRINT_FUNCTION, mod_consts[8], mod_consts[8], mod_consts[15], NULL, 0, 0, 0); |
n |
codeobj_fb995c436ea414309089298c286c0420 = MAKE_CODE_OBJECT(module_filename_obj, 29, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE | CO_FUTURE_PRINT_FUNCTION, mod_consts[6], mod_consts[6], mod_consts[13], NULL, 0, 0, 0); |
|
codeobj_c442309b90bd103b05fbc43d173a69bf = MAKE_CODE_OBJECT(module_filename_obj, 25, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE | CO_FUTURE_PRINT_FUNCTION, mod_consts[0], mod_consts[0], mod_consts[16], NULL, 1, 0, 0); |
|
codeobj_c442309b90bd103b05fbc43d173a69bf = MAKE_CODE_OBJECT(module_filename_obj, 25, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE | CO_FUTURE_PRINT_FUNCTION, mod_consts[0], mod_consts[0], mod_consts[14], NULL, 1, 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_fb995c436ea414309089298c286c0420 = NULL; |
|
static struct Nuitka_FrameObject *cache_frame_fb995c436ea414309089298c286c0420 = 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; |
|
|
|
PyObject *tmp_call_arg_element_1; |
|
|
|
CHECK_OBJECT(var_compiled_f); |
|
|
|
tmp_called_value_1 = var_compiled_f; |
|
|
|
tmp_call_arg_element_1 = MAKE_LIST6(mod_consts[1]); |
|
|
|
frame_fb995c436ea414309089298c286c0420->m_frame.f_lineno = 34; |
|
|
|
tmp_call_result_1 = CALL_FUNCTION_WITH_SINGLE_ARG(tstate, tmp_called_value_1, tmp_call_arg_element_1); |
|
|
|
Py_DECREF(tmp_call_arg_element_1); |
|
|
|
if (tmp_call_result_1 == NULL) { |
|
|
|
assert(HAS_ERROR_OCCURRED(tstate)); |
|
|
|
|
|
|
|
FETCH_ERROR_OCCURRED(tstate, &exception_type, &exception_value, &exception_tb); |
|
|
|
|
|
|
|
|
|
|
|
exception_lineno = 34; |
|
|
|
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; |
|
|
|
PyObject *tmp_call_arg_element_2; |
|
|
|
CHECK_OBJECT(var_compiled_f); |
|
|
|
tmp_called_value_2 = var_compiled_f; |
|
|
|
tmp_call_arg_element_2 = DEEP_COPY_LIST_GUIDED(tstate, mod_consts[2], "ll"); |
|
|
|
frame_fb995c436ea414309089298c286c0420->m_frame.f_lineno = 35; |
|
|
|
tmp_call_result_2 = CALL_FUNCTION_WITH_SINGLE_ARG(tstate, tmp_called_value_2, tmp_call_arg_element_2); |
|
|
|
Py_DECREF(tmp_call_arg_element_2); |
|
|
|
if (tmp_call_result_2 == NULL) { |
|
|
|
assert(HAS_ERROR_OCCURRED(tstate)); |
|
|
|
|
|
|
|
FETCH_ERROR_OCCURRED(tstate, &exception_type, &exception_value, &exception_tb); |
|
|
|
|
|
|
|
|
|
|
|
exception_lineno = 35; |
|
|
|
type_description_1 = "o"; |
|
|
|
goto frame_exception_exit_1; |
|
|
|
} |
|
|
|
Py_DECREF(tmp_call_result_2); |
|
|
|
} |
|
} |
|
|
|
|
|
|
|
|
|
// Put the previous frame back on top. |
|
// Put the previous frame back on top. |
|
popFrameStack(tstate); |
|
popFrameStack(tstate); |
|
|
|
|
|
|
|
|
|
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[8], |
n |
mod_consts[6], |
|
#if PYTHON_VERSION >= 0x300 |
|
#if PYTHON_VERSION >= 0x300 |
|
NULL, |
|
NULL, |
|
#endif |
|
#endif |
|
codeobj_fb995c436ea414309089298c286c0420, |
|
codeobj_fb995c436ea414309089298c286c0420, |
|
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[3], 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[4]; |
n |
tmp_assign_source_2 = mod_consts[2]; |
|
UPDATE_STRING_DICT0(moduledict___main__, (Nuitka_StringObject *)mod_consts[5], 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; |
|
{ |
|
{ |
|
PyObject *hard_module = IMPORT_HARD___FUTURE__(); |
|
PyObject *hard_module = IMPORT_HARD___FUTURE__(); |
n |
tmp_assign_source_3 = LOOKUP_ATTRIBUTE(tstate, hard_module, mod_consts[6]); |
n |
tmp_assign_source_3 = LOOKUP_ATTRIBUTE(tstate, hard_module, mod_consts[4]); |
|
} |
|
} |
|
assert(!(tmp_assign_source_3 == NULL)); |
|
assert(!(tmp_assign_source_3 == NULL)); |
n |
UPDATE_STRING_DICT1(moduledict___main__, (Nuitka_StringObject *)mod_consts[6], tmp_assign_source_3); |
n |
UPDATE_STRING_DICT1(moduledict___main__, (Nuitka_StringObject *)mod_consts[4], tmp_assign_source_3); |
|
} |
|
} |
|
frame_87bf8eee343160cf271460f37cfa7870 = MAKE_MODULE_FRAME(codeobj_87bf8eee343160cf271460f37cfa7870, module___main__); |
|
frame_87bf8eee343160cf271460f37cfa7870 = MAKE_MODULE_FRAME(codeobj_87bf8eee343160cf271460f37cfa7870, 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. |
|
|
|
|
|
// Framed code: |
|
// Framed code: |
|
{ |
|
{ |
|
PyObject *tmp_assign_source_4; |
|
PyObject *tmp_assign_source_4; |
|
frame_87bf8eee343160cf271460f37cfa7870->m_frame.f_lineno = 22; |
|
frame_87bf8eee343160cf271460f37cfa7870->m_frame.f_lineno = 22; |
n |
tmp_assign_source_4 = IMPORT_MODULE_FIXED(tstate, mod_consts[7], mod_consts[7]); |
n |
tmp_assign_source_4 = IMPORT_MODULE_FIXED(tstate, mod_consts[5], mod_consts[5]); |
|
if (tmp_assign_source_4 == NULL) { |
|
if (tmp_assign_source_4 == NULL) { |
|
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); |
|
|
|
|
|
|
|
|
|
exception_lineno = 22; |
|
exception_lineno = 22; |
|
|
|
|
|
goto frame_exception_exit_1; |
|
goto frame_exception_exit_1; |
|
} |
|
} |
n |
UPDATE_STRING_DICT1(moduledict___main__, (Nuitka_StringObject *)mod_consts[7], 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 *tmp_assign_source_6; |
|
PyObject *tmp_assign_source_6; |
|
|
|
|
|
|
|
|
|
tmp_assign_source_6 = MAKE_FUNCTION___main__$$$function__2_calledRepeatedly(); |
|
tmp_assign_source_6 = MAKE_FUNCTION___main__$$$function__2_calledRepeatedly(); |
|
|
|
|
n |
UPDATE_STRING_DICT1(moduledict___main__, (Nuitka_StringObject *)mod_consts[8], tmp_assign_source_6); |
n |
UPDATE_STRING_DICT1(moduledict___main__, (Nuitka_StringObject *)mod_consts[6], tmp_assign_source_6); |
|
} |
|
} |
|
{ |
|
{ |
|
PyObject *tmp_assign_source_7; |
|
PyObject *tmp_assign_source_7; |
|
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[7]); |
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[7]); |
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_87bf8eee343160cf271460f37cfa7870->m_frame.f_lineno = 43; |
|
frame_87bf8eee343160cf271460f37cfa7870->m_frame.f_lineno = 43; |
|
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[9], |
n |
mod_consts[7], |
|
&PyTuple_GET_ITEM(mod_consts[10], 0) |
|
&PyTuple_GET_ITEM(mod_consts[8], 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_9; |
|
PyObject *tmp_assign_source_9; |
|
CHECK_OBJECT(tmp_for_loop_1__iter_value); |
|
CHECK_OBJECT(tmp_for_loop_1__iter_value); |
|
tmp_assign_source_9 = tmp_for_loop_1__iter_value; |
|
tmp_assign_source_9 = tmp_for_loop_1__iter_value; |
n |
UPDATE_STRING_DICT0(moduledict___main__, (Nuitka_StringObject *)mod_consts[11], tmp_assign_source_9); |
n |
UPDATE_STRING_DICT0(moduledict___main__, (Nuitka_StringObject *)mod_consts[9], tmp_assign_source_9); |
|
} |
|
} |
|
{ |
|
{ |
|
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[8]); |
n |
tmp_called_value_1 = GET_STRING_DICT_VALUE(moduledict___main__, (Nuitka_StringObject *)mod_consts[6]); |
|
|
|
|
|
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[8]); |
n |
tmp_called_value_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(tstate, mod_consts[6]); |
|
} |
|
} |
|
|
|
|
|
if (tmp_called_value_1 == NULL) { |
|
if (tmp_called_value_1 == NULL) { |
|
assert(HAS_ERROR_OCCURRED(tstate)); |
|
assert(HAS_ERROR_OCCURRED(tstate)); |
|
|
|
|
|
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[12]); |
n |
tmp_called_value_2 = LOOKUP_BUILTIN(mod_consts[10]); |
|
assert(tmp_called_value_2 != NULL); |
|
assert(tmp_called_value_2 != NULL); |
|
frame_87bf8eee343160cf271460f37cfa7870->m_frame.f_lineno = 46; |
|
frame_87bf8eee343160cf271460f37cfa7870->m_frame.f_lineno = 46; |
t |
tmp_call_result_2 = CALL_FUNCTION_WITH_POSARGS1(tstate, tmp_called_value_2, mod_consts[13]); |
t |
tmp_call_result_2 = CALL_FUNCTION_WITH_POSARGS1(tstate, tmp_called_value_2, mod_consts[11]); |
|
|
|
|
|
if (tmp_call_result_2 == NULL) { |
|
if (tmp_call_result_2 == NULL) { |
|
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); |