|
static PyCodeObject *codeobj_4b14d62854911cfd37f7ac083ec060b0; |
|
static PyCodeObject *codeobj_4b14d62854911cfd37f7ac083ec060b0; |
|
/* 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_7ec2341252c9420f2b89f90a04fdf6b1 = 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_7ec2341252c9420f2b89f90a04fdf6b1 = 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_7ec2341252c9420f2b89f90a04fdf6b1; |
|
codeobj_main = codeobj_7ec2341252c9420f2b89f90a04fdf6b1; |
|
codeobj_4b14d62854911cfd37f7ac083ec060b0 = MAKE_CODE_OBJECT(module_filename_obj, 9, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE | CO_FUTURE_PRINT_FUNCTION, mod_consts[6], mod_consts[6], NULL, NULL, 0, 0, 0); |
|
codeobj_4b14d62854911cfd37f7ac083ec060b0 = MAKE_CODE_OBJECT(module_filename_obj, 9, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE | CO_FUTURE_PRINT_FUNCTION, mod_consts[6], mod_consts[6], NULL, NULL, 0, 0, 0); |
|
} |
|
} |
|
|
|
|
|
// The module function declarations. |
|
// The module function declarations. |
n |
NUITKA_LOCAL_MODULE PyObject *impl___main__$$$function__1_calledRepeatedly$$$function__1_lambda(PyThreadState *tstate, PyObject **python_pars); |
n |
|
|
|
|
|
|
|
|
|
|
static PyObject *MAKE_FUNCTION___main__$$$function__1_calledRepeatedly(); |
|
static PyObject *MAKE_FUNCTION___main__$$$function__1_calledRepeatedly(); |
|
|
|
|
|
|
|
|
|
// 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 *tmp_return_value = NULL; |
|
|
|
|
|
|
|
// Actual function body. |
|
|
|
{ |
|
|
|
PyObject *tmp_dircall_arg1_1; |
|
|
|
tmp_dircall_arg1_1 = mod_consts[0]; |
|
|
|
Py_INCREF(tmp_dircall_arg1_1); |
|
|
|
|
|
|
|
{ |
|
|
|
PyObject *dir_call_args[] = {tmp_dircall_arg1_1}; |
|
|
|
tmp_return_value = impl___main__$$$function__1_calledRepeatedly$$$function__1_lambda(tstate, dir_call_args); |
|
|
|
} |
|
|
|
assert(!(tmp_return_value == NULL)); |
|
|
|
goto function_return_exit; |
|
|
|
} |
|
|
|
|
|
|
|
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; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
NUITKA_LOCAL_MODULE PyObject *impl___main__$$$function__1_calledRepeatedly$$$function__1_lambda(PyThreadState *tstate, PyObject **python_pars) { |
|
|
|
#ifndef __NUITKA_NO_ASSERT__ |
|
|
|
NUITKA_MAY_BE_UNUSED bool had_error = HAS_ERROR_OCCURRED(tstate); |
|
|
|
assert(!had_error); // Do not enter inlined functions with error set. |
|
|
|
#endif |
|
|
|
|
|
|
|
// Local variable declarations. |
|
|
|
PyObject *par_x = python_pars[0]; |
|
|
|
PyObject *tmp_return_value = NULL; |
|
|
|
|
|
|
|
// Actual function body. |
|
|
|
CHECK_OBJECT(par_x); |
|
|
|
tmp_return_value = par_x; |
|
|
|
Py_INCREF(tmp_return_value); |
|
|
|
goto function_return_exit; |
|
|
|
|
|
|
|
NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); |
|
|
|
return NULL; |
|
|
|
|
|
|
|
|
|
|
|
function_return_exit: |
|
|
|
// Function cleanup code if any. |
|
|
|
CHECK_OBJECT(par_x); |
|
|
|
Py_DECREF(par_x); |
|
|
|
|
|
|
|
// 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[6], |
|
mod_consts[6], |
|
#if PYTHON_VERSION >= 0x300 |
|
#if PYTHON_VERSION >= 0x300 |
|
NULL, |
|
NULL, |
|
#endif |
|
#endif |
|
codeobj_4b14d62854911cfd37f7ac083ec060b0, |
|
codeobj_4b14d62854911cfd37f7ac083ec060b0, |
|
// Provide a way to create find a function via its C code and create it back |
|
// Provide a way to create find a function via its C code and create it back |
|
// in another process, useful for multiprocessing extensions like dill |
|
// in another process, useful for multiprocessing extensions like dill |
|
extern void registerDillPluginTables(PyThreadState *tstate, char const *module_name, PyMethodDef *reduce_compiled_function, PyMethodDef *create_compiled_function); |
|
extern void registerDillPluginTables(PyThreadState *tstate, char const *module_name, PyMethodDef *reduce_compiled_function, PyMethodDef *create_compiled_function); |
|
|
|
|
|
static function_impl_code const function_table___main__[] = { |
|
static function_impl_code const function_table___main__[] = { |
n |
impl___main__$$$function__1_calledRepeatedly, |
n |
|
|
NULL |
|
NULL |
|
}; |
|
}; |
|
|
|
|
|
static PyObject *_reduce_compiled_function(PyObject *self, PyObject *args, PyObject *kwds) { |
|
static PyObject *_reduce_compiled_function(PyObject *self, PyObject *args, PyObject *kwds) { |
|
PyObject *func; |
|
PyObject *func; |
|
|
|
|
|
// 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); |
|
} |
|
} |
|
{ |
|
{ |
|
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[4]); |
n |
tmp_assign_source_3 = LOOKUP_ATTRIBUTE(tstate, hard_module, mod_consts[3]); |
|
} |
|
} |
|
assert(!(tmp_assign_source_3 == NULL)); |
|
assert(!(tmp_assign_source_3 == NULL)); |
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[3], tmp_assign_source_3); |
|
} |
|
} |
|
frame_7ec2341252c9420f2b89f90a04fdf6b1 = MAKE_MODULE_FRAME(codeobj_7ec2341252c9420f2b89f90a04fdf6b1, module___main__); |
|
frame_7ec2341252c9420f2b89f90a04fdf6b1 = MAKE_MODULE_FRAME(codeobj_7ec2341252c9420f2b89f90a04fdf6b1, 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_4; |
|
PyObject *tmp_assign_source_4; |
|
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[5]; |
n |
tmp_name_value_1 = mod_consts[4]; |
|
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_7ec2341252c9420f2b89f90a04fdf6b1->m_frame.f_lineno = 6; |
|
frame_7ec2341252c9420f2b89f90a04fdf6b1->m_frame.f_lineno = 6; |
|
tmp_assign_source_4 = IMPORT_MODULE4(tstate, tmp_name_value_1, tmp_globals_arg_value_1, tmp_locals_arg_value_1, tmp_fromlist_value_1); |
|
tmp_assign_source_4 = 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_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[5]); |
n |
tmp_called_instance_1 = GET_STRING_DICT_VALUE(moduledict___main__, (Nuitka_StringObject *)mod_consts[4]); |
|
|
|
|
|
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[5]); |
t |
tmp_called_instance_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(tstate, mod_consts[4]); |
|
} |
|
} |
|
|
|
|
|
assert(!(tmp_called_instance_1 == NULL)); |
|
assert(!(tmp_called_instance_1 == NULL)); |
|
frame_7ec2341252c9420f2b89f90a04fdf6b1->m_frame.f_lineno = 18; |
|
frame_7ec2341252c9420f2b89f90a04fdf6b1->m_frame.f_lineno = 18; |
|
tmp_iter_arg_1 = CALL_METHOD_WITH_ARGS2( |
|
tmp_iter_arg_1 = CALL_METHOD_WITH_ARGS2( |