|
#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 < 12; 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 |
|
|
|
|
|
// The module code objects. |
|
// The module code objects. |
|
static PyCodeObject *codeobj_fbda7d4859dc54d62dbd591de9f74869; |
|
static PyCodeObject *codeobj_fbda7d4859dc54d62dbd591de9f74869; |
|
static PyCodeObject *codeobj_1dacf538eab0697bba9a9f3c00a98988; |
|
static PyCodeObject *codeobj_1dacf538eab0697bba9a9f3c00a98988; |
n |
static PyCodeObject *codeobj_ca7e960635b32d4a8911e2a222626622; |
n |
|
|
/* 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[1]; CHECK_OBJECT(module_filename_obj); |
|
codeobj_fbda7d4859dc54d62dbd591de9f74869 = MAKE_CODE_OBJECT(module_filename_obj, 1, CO_NOFREE, mod_consts[10], mod_consts[10], NULL, NULL, 0, 0, 0); |
|
codeobj_fbda7d4859dc54d62dbd591de9f74869 = MAKE_CODE_OBJECT(module_filename_obj, 1, CO_NOFREE, mod_consts[10], mod_consts[10], NULL, NULL, 0, 0, 0); |
|
codeobj_main = codeobj_fbda7d4859dc54d62dbd591de9f74869; |
|
codeobj_main = codeobj_fbda7d4859dc54d62dbd591de9f74869; |
|
codeobj_1dacf538eab0697bba9a9f3c00a98988 = MAKE_CODE_OBJECT(module_filename_obj, 7, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[5], mod_consts[5], mod_consts[11], NULL, 0, 0, 0); |
|
codeobj_1dacf538eab0697bba9a9f3c00a98988 = MAKE_CODE_OBJECT(module_filename_obj, 7, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[5], mod_consts[5], mod_consts[11], NULL, 0, 0, 0); |
n |
codeobj_ca7e960635b32d4a8911e2a222626622 = MAKE_CODE_OBJECT(module_filename_obj, 10, CO_NOFREE, mod_consts[0], mod_consts[12], NULL, NULL, 0, 0, 0); |
n |
|
|
} |
|
} |
|
|
|
|
|
// The module function declarations. |
|
// The module function declarations. |
|
static PyObject *MAKE_FUNCTION___main__$$$function__1_calledRepeatedly(); |
|
static PyObject *MAKE_FUNCTION___main__$$$function__1_calledRepeatedly(); |
|
|
|
|
|
|
|
|
n |
static PyObject *MAKE_FUNCTION___main__$$$function__1_calledRepeatedly$$$function__1_empty(); |
n |
|
|
|
|
|
|
|
|
|
|
// The module function definitions. |
|
// The module function definitions. |
n |
static PyObject *impl___main__$$$function__1_calledRepeatedly(PyThreadState *tstate, struct Nuitka_FunctionObject const *self, PyObject **python_pars) { |
n |
|
|
// Preserve error status for checks |
|
|
|
#ifndef __NUITKA_NO_ASSERT__ |
|
|
|
NUITKA_MAY_BE_UNUSED bool had_error = HAS_ERROR_OCCURRED(tstate); |
|
|
|
#endif |
|
|
|
|
|
|
|
// Local variable declarations. |
|
|
|
PyObject *var_empty = NULL; |
|
|
|
PyObject *tmp_return_value = NULL; |
|
|
|
|
|
|
|
// Actual function body. |
|
|
|
{ |
|
|
|
PyObject *tmp_assign_source_1; |
|
|
|
|
|
|
|
|
|
|
|
tmp_assign_source_1 = MAKE_FUNCTION___main__$$$function__1_calledRepeatedly$$$function__1_empty(); |
|
|
|
|
|
|
|
assert(var_empty == NULL); |
|
|
|
var_empty = tmp_assign_source_1; |
|
|
|
} |
|
|
|
// Tried code: |
|
|
|
CHECK_OBJECT(var_empty); |
|
|
|
tmp_return_value = var_empty; |
|
|
|
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_empty); |
|
|
|
Py_DECREF(var_empty); |
|
|
|
var_empty = NULL; |
|
|
|
goto function_return_exit; |
|
|
|
// End of try: |
|
|
|
|
|
|
|
NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); |
|
|
|
return NULL; |
|
|
|
|
|
|
|
|
|
|
|
function_return_exit: |
|
|
|
// Function cleanup code if any. |
|
|
|
|
|
|
|
|
|
|
|
// Actual function exit with return value, making sure we did not make |
|
|
|
// the error status worse despite non-NULL return. |
|
|
|
CHECK_OBJECT(tmp_return_value); |
|
|
|
assert(had_error || !HAS_ERROR_OCCURRED(tstate)); |
|
|
|
return tmp_return_value; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static PyObject *MAKE_FUNCTION___main__$$$function__1_calledRepeatedly() { |
|
static PyObject *MAKE_FUNCTION___main__$$$function__1_calledRepeatedly() { |
|
struct Nuitka_FunctionObject *result = Nuitka_Function_New( |
|
struct Nuitka_FunctionObject *result = Nuitka_Function_New( |
n |
impl___main__$$$function__1_calledRepeatedly, |
n |
NULL, |
|
mod_consts[5], |
|
mod_consts[5], |
|
#if PYTHON_VERSION >= 0x300 |
|
#if PYTHON_VERSION >= 0x300 |
|
NULL, |
|
NULL, |
|
#endif |
|
#endif |
|
codeobj_1dacf538eab0697bba9a9f3c00a98988, |
|
codeobj_1dacf538eab0697bba9a9f3c00a98988, |
|
|
|
|
|
// 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[0], 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[1]; |
|
UPDATE_STRING_DICT0(moduledict___main__, (Nuitka_StringObject *)mod_consts[3], tmp_assign_source_2); |
|
UPDATE_STRING_DICT0(moduledict___main__, (Nuitka_StringObject *)mod_consts[2], tmp_assign_source_2); |
|
} |
|
} |
|
frame_fbda7d4859dc54d62dbd591de9f74869 = MAKE_MODULE_FRAME(codeobj_fbda7d4859dc54d62dbd591de9f74869, module___main__); |
|
frame_fbda7d4859dc54d62dbd591de9f74869 = MAKE_MODULE_FRAME(codeobj_fbda7d4859dc54d62dbd591de9f74869, 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[3]; |
|
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_fbda7d4859dc54d62dbd591de9f74869->m_frame.f_lineno = 4; |
|
frame_fbda7d4859dc54d62dbd591de9f74869->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); |
|
} |
|
} |
|
{ |
|
{ |
|
PyObject *tmp_assign_source_5; |
|
PyObject *tmp_assign_source_5; |
|
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[3]); |
|
|
|
|
|
if (unlikely(tmp_called_instance_1 == NULL)) { |
|
if (unlikely(tmp_called_instance_1 == NULL)) { |
t |
tmp_called_instance_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(tstate, mod_consts[4]); |
t |
tmp_called_instance_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(tstate, mod_consts[3]); |
|
} |
|
} |
|
|
|
|
|
assert(!(tmp_called_instance_1 == NULL)); |
|
assert(!(tmp_called_instance_1 == NULL)); |
|
frame_fbda7d4859dc54d62dbd591de9f74869->m_frame.f_lineno = 20; |
|
frame_fbda7d4859dc54d62dbd591de9f74869->m_frame.f_lineno = 20; |
|
tmp_iter_arg_1 = CALL_METHOD_WITH_ARGS2( |
|
tmp_iter_arg_1 = CALL_METHOD_WITH_ARGS2( |