diff --git "a/medomni/models.build/module.models.base_model.cpp" "b/medomni/models.build/module.models.base_model.cpp" deleted file mode 100644--- "a/medomni/models.build/module.models.base_model.cpp" +++ /dev/null @@ -1,15180 +0,0 @@ -/* Generated code for Python module 'models.base_model' - * created by Nuitka version 0.6.16 - * - * This code is in part copyright 2021 Kay Hayen. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include "nuitka/prelude.h" - -#include "nuitka/unfreezing.h" - -#include "__helpers.h" - -/* The "module_models$base_model" is a Python object pointer of module type. - * - * Note: For full compatibility with CPython, every module variable access - * needs to go through it except for cases where the module cannot possibly - * have changed in the mean time. - */ - -PyObject *module_models$base_model; -PyDictObject *moduledict_models$base_model; - -/* The declarations of module constants used, if any. */ -static PyObject *mod_consts[206]; - -static PyObject *module_filename_obj = NULL; - -/* Indicator if this modules private constants were created yet. */ -static bool constants_created = false; - -/* Function to create module private constants. */ -static void createModuleConstants(void) { - if (constants_created == false) { - loadConstantsBlob(&mod_consts[0], UNTRANSLATE("models.base_model")); - constants_created = true; - } -} - -/* For multiprocessing, we want to be able to initialize the __main__ constants. */ -#if (_NUITKA_PLUGIN_MULTIPROCESSING_ENABLED || _NUITKA_PLUGIN_TRACEBACK_ENCRYPTION_ENABLED) && 0 -void createMainModuleConstants(void) { - createModuleConstants(); -} -#endif - -/* Function to verify module private constants for non-corruption. */ -#ifndef __NUITKA_NO_ASSERT__ -void checkModuleConstants_models$base_model(void) { - // The module may not have been used at all, then ignore this. - if (constants_created == false) return; - - checkConstantsBlob(&mod_consts[0], "models.base_model"); -} -#endif - -// The module code objects. -static PyCodeObject *codeobj_88fb76029dafdffb63b52d1203b590ab; -static PyCodeObject *codeobj_d4679424c0c532aee63d5c7dfe50173a; -static PyCodeObject *codeobj_be04ffc70de33534e233bcc063a2873b; -static PyCodeObject *codeobj_3da92d637f10e0e2fa696c97d85e96aa; -static PyCodeObject *codeobj_9f6b0b8f837711c1f7a8dbc49dea079b; -static PyCodeObject *codeobj_19b8ea77f1a4d1b574ae0e072b660e0b; -static PyCodeObject *codeobj_6bb53d881ab90d043e76e8acd0c190e8; -static PyCodeObject *codeobj_922346e330baabd5dec3a0e5d0cef592; -static PyCodeObject *codeobj_d71d7f2d6ffa38c985737620f54130a1; -static PyCodeObject *codeobj_e8232c1f8311141eab7a90dbfd6310ca; -static PyCodeObject *codeobj_ddadc2663250ee51234ad267883b07bc; -static PyCodeObject *codeobj_c605ec6894b581ddbf6356fbb7c61f54; -static PyCodeObject *codeobj_7a0e9b8ed65f5d485709ab54ee4f9399; -static PyCodeObject *codeobj_a1193c5a2efa4e8420ff62b0905f950b; -static PyCodeObject *codeobj_0b56832b17e824e3961db8ea96339fc7; -static PyCodeObject *codeobj_9310af7aa8323cc1c5740553d51f888b; -static PyCodeObject *codeobj_d8bb50cdd0a01bbe722c9ae9bf67afe9; -static PyCodeObject *codeobj_df2391467f85318d759b3b6072f678ab; -static PyCodeObject *codeobj_69c403ba983164d79214cd1a92c3e484; -static PyCodeObject *codeobj_194aa42a14f75d8194f56d292c57333b; -static PyCodeObject *codeobj_e2ff967b4add3ba339e6fa020be32f85; -static PyCodeObject *codeobj_52cd4a3cdc9ed073800613d10eeacfee; -static PyCodeObject *codeobj_144bb4aa37b13c6906ed75d1916fd2cb; -static PyCodeObject *codeobj_1636a0b0747f01d69319312edd40dcbb; -static PyCodeObject *codeobj_efb0ad1e6b4110725f2565598950e915; -static PyCodeObject *codeobj_8af0987e214bb6e30431e9b2bdcfbb14; -static PyCodeObject *codeobj_24faaf0922ee17baa8e84fcd48fce6fe; -static PyCodeObject *codeobj_e5dd198ac569e0b6dd733a992ab7706f; - -static void createModuleCodeObjects(void) { - module_filename_obj = MAKE_RELATIVE_PATH(mod_consts[183]); CHECK_OBJECT(module_filename_obj); - codeobj_88fb76029dafdffb63b52d1203b590ab = MAKE_CODEOBJECT(module_filename_obj, 233, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[184], mod_consts[185], NULL, 1, 0, 0); - codeobj_d4679424c0c532aee63d5c7dfe50173a = MAKE_CODEOBJECT(module_filename_obj, 193, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[184], mod_consts[186], NULL, 1, 0, 0); - codeobj_be04ffc70de33534e233bcc063a2873b = MAKE_CODEOBJECT(module_filename_obj, 248, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[184], mod_consts[187], NULL, 1, 0, 0); - codeobj_3da92d637f10e0e2fa696c97d85e96aa = MAKE_CODEOBJECT(module_filename_obj, 1, CO_NOFREE, mod_consts[188], NULL, NULL, 0, 0, 0); - codeobj_9f6b0b8f837711c1f7a8dbc49dea079b = MAKE_CODEOBJECT(module_filename_obj, 124, CO_NOFREE, mod_consts[154], mod_consts[189], NULL, 0, 0, 0); - codeobj_19b8ea77f1a4d1b574ae0e072b660e0b = MAKE_CODEOBJECT(module_filename_obj, 20, CO_NOFREE, mod_consts[130], mod_consts[189], NULL, 0, 0, 0); - codeobj_6bb53d881ab90d043e76e8acd0c190e8 = MAKE_CODEOBJECT(module_filename_obj, 185, CO_NOFREE, mod_consts[86], mod_consts[189], NULL, 0, 0, 0); - codeobj_922346e330baabd5dec3a0e5d0cef592 = MAKE_CODEOBJECT(module_filename_obj, 164, CO_NOFREE, mod_consts[168], mod_consts[189], NULL, 0, 0, 0); - codeobj_d71d7f2d6ffa38c985737620f54130a1 = MAKE_CODEOBJECT(module_filename_obj, 140, CO_NOFREE, mod_consts[162], mod_consts[189], NULL, 0, 0, 0); - codeobj_e8232c1f8311141eab7a90dbfd6310ca = MAKE_CODEOBJECT(module_filename_obj, 23, CO_OPTIMIZED | CO_NEWLOCALS, mod_consts[1], mod_consts[190], mod_consts[189], 1, 0, 0); - codeobj_ddadc2663250ee51234ad267883b07bc = MAKE_CODEOBJECT(module_filename_obj, 129, CO_OPTIMIZED | CO_NEWLOCALS, mod_consts[1], mod_consts[190], mod_consts[189], 1, 0, 0); - codeobj_c605ec6894b581ddbf6356fbb7c61f54 = MAKE_CODEOBJECT(module_filename_obj, 142, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[165], mod_consts[191], NULL, 4, 0, 0); - codeobj_7a0e9b8ed65f5d485709ab54ee4f9399 = MAKE_CODEOBJECT(module_filename_obj, 175, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[171], mod_consts[192], NULL, 1, 0, 0); - codeobj_a1193c5a2efa4e8420ff62b0905f950b = MAKE_CODEOBJECT(module_filename_obj, 206, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[181], mod_consts[193], NULL, 1, 0, 0); - codeobj_0b56832b17e824e3961db8ea96339fc7 = MAKE_CODEOBJECT(module_filename_obj, 200, CO_OPTIMIZED | CO_NEWLOCALS | CO_VARARGS | CO_NOFREE, mod_consts[179], mod_consts[194], NULL, 1, 0, 0); - codeobj_9310af7aa8323cc1c5740553d51f888b = MAKE_CODEOBJECT(module_filename_obj, 105, CO_VARKEYWORDS | CO_NOFREE, mod_consts[148], mod_consts[195], NULL, 1, 0, 0); - codeobj_d8bb50cdd0a01bbe722c9ae9bf67afe9 = MAKE_CODEOBJECT(module_filename_obj, 224, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[56], mod_consts[196], NULL, 1, 0, 0); - codeobj_df2391467f85318d759b3b6072f678ab = MAKE_CODEOBJECT(module_filename_obj, 166, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[169], mod_consts[192], NULL, 1, 0, 0); - codeobj_69c403ba983164d79214cd1a92c3e484 = MAKE_CODEOBJECT(module_filename_obj, 78, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[29], mod_consts[197], NULL, 2, 0, 0); - codeobj_194aa42a14f75d8194f56d292c57333b = MAKE_CODEOBJECT(module_filename_obj, 27, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[55], mod_consts[198], NULL, 1, 0, 0); - codeobj_e2ff967b4add3ba339e6fa020be32f85 = MAKE_CODEOBJECT(module_filename_obj, 136, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[55], mod_consts[198], NULL, 1, 0, 0); - codeobj_52cd4a3cdc9ed073800613d10eeacfee = MAKE_CODEOBJECT(module_filename_obj, 192, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[177], mod_consts[199], NULL, 2, 0, 0); - codeobj_144bb4aa37b13c6906ed75d1916fd2cb = MAKE_CODEOBJECT(module_filename_obj, 132, CO_OPTIMIZED | CO_NEWLOCALS | CO_VARKEYWORDS | CO_NOFREE, mod_consts[157], mod_consts[200], NULL, 2, 0, 0); - codeobj_1636a0b0747f01d69319312edd40dcbb = MAKE_CODEOBJECT(module_filename_obj, 62, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[143], mod_consts[201], NULL, 2, 0, 0); - codeobj_efb0ad1e6b4110725f2565598950e915 = MAKE_CODEOBJECT(module_filename_obj, 32, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[41], mod_consts[202], NULL, 2, 0, 0); - codeobj_8af0987e214bb6e30431e9b2bdcfbb14 = MAKE_CODEOBJECT(module_filename_obj, 84, CO_OPTIMIZED | CO_NEWLOCALS | CO_VARKEYWORDS | CO_NOFREE, mod_consts[146], mod_consts[203], NULL, 2, 0, 0); - codeobj_24faaf0922ee17baa8e84fcd48fce6fe = MAKE_CODEOBJECT(module_filename_obj, 108, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[151], mod_consts[204], NULL, 2, 0, 0); - codeobj_e5dd198ac569e0b6dd733a992ab7706f = MAKE_CODEOBJECT(module_filename_obj, 242, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[182], mod_consts[205], NULL, 3, 0, 0); -} - -// The module function declarations. -NUITKA_CROSS_MODULE PyObject *impl_models$$$function__1__mro_entries_conversion(PyObject **python_pars); - - -NUITKA_CROSS_MODULE PyObject *impl_models$$$function__5_complex_call_helper_keywords_star_dict(PyObject **python_pars); - - -NUITKA_CROSS_MODULE PyObject *impl_models$$$function__2_complex_call_helper_star_list(PyObject **python_pars); - - -static PyObject *MAKE_FUNCTION_models$base_model$$$function__10_forward_features(); - - -static PyObject *MAKE_FUNCTION_models$base_model$$$function__11_device(); - - -static PyObject *MAKE_FUNCTION_models$base_model$$$function__12__dequeue_and_enqueue(PyObject *defaults); - - -static PyObject *MAKE_FUNCTION_models$base_model$$$function__13_copy_params(); - - -static PyObject *MAKE_FUNCTION_models$base_model$$$function__14__momentum_update(); - - -static PyObject *MAKE_FUNCTION_models$base_model$$$function__15_forward(); - - -static PyObject *MAKE_FUNCTION_models$base_model$$$function__16_backward(); - - -static PyObject *MAKE_FUNCTION_models$base_model$$$function__17_all_gather_with_grad(); - - -static PyObject *MAKE_FUNCTION_models$base_model$$$function__18_concat_all_gather(); - - -static PyObject *MAKE_FUNCTION_models$base_model$$$function__19_tile(); - - -static PyObject *MAKE_FUNCTION_models$base_model$$$function__1___init__(struct Nuitka_CellObject **closure); - - -static PyObject *MAKE_FUNCTION_models$base_model$$$function__2_device(); - - -static PyObject *MAKE_FUNCTION_models$base_model$$$function__3_load_checkpoint(); - - -static PyObject *MAKE_FUNCTION_models$base_model$$$function__4_from_pretrained(); - - -static PyObject *MAKE_FUNCTION_models$base_model$$$function__5_default_config_path(); - - -static PyObject *MAKE_FUNCTION_models$base_model$$$function__6_load_checkpoint_from_config(); - - -static PyObject *MAKE_FUNCTION_models$base_model$$$function__7_before_evaluation(); - - -static PyObject *MAKE_FUNCTION_models$base_model$$$function__8_show_n_params(PyObject *defaults); - - -static PyObject *MAKE_FUNCTION_models$base_model$$$function__9___init__(struct Nuitka_CellObject **closure); - - -// The module function definitions. -static PyObject *impl_models$base_model$$$function__1___init__(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - struct Nuitka_FrameObject *frame_e8232c1f8311141eab7a90dbfd6310ca; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - static struct Nuitka_FrameObject *cache_frame_e8232c1f8311141eab7a90dbfd6310ca = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_e8232c1f8311141eab7a90dbfd6310ca)) { - Py_XDECREF(cache_frame_e8232c1f8311141eab7a90dbfd6310ca); - -#if _DEBUG_REFCOUNTS - if (cache_frame_e8232c1f8311141eab7a90dbfd6310ca == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_e8232c1f8311141eab7a90dbfd6310ca = MAKE_FUNCTION_FRAME(codeobj_e8232c1f8311141eab7a90dbfd6310ca, module_models$base_model, sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_e8232c1f8311141eab7a90dbfd6310ca->m_type_description == NULL); - frame_e8232c1f8311141eab7a90dbfd6310ca = cache_frame_e8232c1f8311141eab7a90dbfd6310ca; - - // Push the new frame as the currently active one. - pushFrameStack(frame_e8232c1f8311141eab7a90dbfd6310ca); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_e8232c1f8311141eab7a90dbfd6310ca) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_called_instance_1; - PyObject *tmp_type_arg_name_1; - PyObject *tmp_object_arg_name_1; - PyObject *tmp_call_result_1; - if (Nuitka_Cell_GET(self->m_closure[0]) == NULL) { - - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[0]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 24; - type_description_1 = "oc"; - goto frame_exception_exit_1; - } - - tmp_type_arg_name_1 = Nuitka_Cell_GET(self->m_closure[0]); - CHECK_OBJECT(par_self); - tmp_object_arg_name_1 = par_self; - tmp_called_instance_1 = BUILTIN_SUPER0(tmp_type_arg_name_1, tmp_object_arg_name_1); - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 24; - type_description_1 = "oc"; - goto frame_exception_exit_1; - } - frame_e8232c1f8311141eab7a90dbfd6310ca->m_frame.f_lineno = 24; - tmp_call_result_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[1]); - Py_DECREF(tmp_called_instance_1); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 24; - type_description_1 = "oc"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_e8232c1f8311141eab7a90dbfd6310ca); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_e8232c1f8311141eab7a90dbfd6310ca); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_e8232c1f8311141eab7a90dbfd6310ca, exception_lineno); - } else if (exception_tb->tb_frame != &frame_e8232c1f8311141eab7a90dbfd6310ca->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_e8232c1f8311141eab7a90dbfd6310ca, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_e8232c1f8311141eab7a90dbfd6310ca, - type_description_1, - par_self, - self->m_closure[0] - ); - - - // Release cached frame if used for exception. - if (frame_e8232c1f8311141eab7a90dbfd6310ca == cache_frame_e8232c1f8311141eab7a90dbfd6310ca) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_e8232c1f8311141eab7a90dbfd6310ca); - cache_frame_e8232c1f8311141eab7a90dbfd6310ca = NULL; - } - - assertFrameObject(frame_e8232c1f8311141eab7a90dbfd6310ca); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - tmp_return_value = Py_None; - 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(par_self); - Py_DECREF(par_self); - par_self = NULL; - 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; - - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - // 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."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - 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 || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$base_model$$$function__2_device(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - struct Nuitka_FrameObject *frame_194aa42a14f75d8194f56d292c57333b; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - static struct Nuitka_FrameObject *cache_frame_194aa42a14f75d8194f56d292c57333b = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_194aa42a14f75d8194f56d292c57333b)) { - Py_XDECREF(cache_frame_194aa42a14f75d8194f56d292c57333b); - -#if _DEBUG_REFCOUNTS - if (cache_frame_194aa42a14f75d8194f56d292c57333b == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_194aa42a14f75d8194f56d292c57333b = MAKE_FUNCTION_FRAME(codeobj_194aa42a14f75d8194f56d292c57333b, module_models$base_model, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_194aa42a14f75d8194f56d292c57333b->m_type_description == NULL); - frame_194aa42a14f75d8194f56d292c57333b = cache_frame_194aa42a14f75d8194f56d292c57333b; - - // Push the new frame as the currently active one. - pushFrameStack(frame_194aa42a14f75d8194f56d292c57333b); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_194aa42a14f75d8194f56d292c57333b) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_called_instance_1; - PyObject *tmp_expression_name_1; - tmp_expression_name_1 = GET_STRING_DICT_VALUE(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[2]); - - if (unlikely(tmp_expression_name_1 == NULL)) { - tmp_expression_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]); - } - - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 28; - type_description_1 = "o"; - goto frame_exception_exit_1; - } - tmp_called_instance_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[3]); - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 28; - type_description_1 = "o"; - goto frame_exception_exit_1; - } - frame_194aa42a14f75d8194f56d292c57333b->m_frame.f_lineno = 28; - tmp_return_value = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[4]); - Py_DECREF(tmp_called_instance_1); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 28; - type_description_1 = "o"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_194aa42a14f75d8194f56d292c57333b); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_194aa42a14f75d8194f56d292c57333b); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_194aa42a14f75d8194f56d292c57333b); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_194aa42a14f75d8194f56d292c57333b, exception_lineno); - } else if (exception_tb->tb_frame != &frame_194aa42a14f75d8194f56d292c57333b->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_194aa42a14f75d8194f56d292c57333b, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_194aa42a14f75d8194f56d292c57333b, - type_description_1, - par_self - ); - - - // Release cached frame if used for exception. - if (frame_194aa42a14f75d8194f56d292c57333b == cache_frame_194aa42a14f75d8194f56d292c57333b) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_194aa42a14f75d8194f56d292c57333b); - cache_frame_194aa42a14f75d8194f56d292c57333b = NULL; - } - - assertFrameObject(frame_194aa42a14f75d8194f56d292c57333b); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - 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; - - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - // 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."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - 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 || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$base_model$$$function__3_load_checkpoint(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_url_or_filename = python_pars[1]; - PyObject *var_cached_file = NULL; - PyObject *var_checkpoint = NULL; - PyObject *var_state_dict = NULL; - PyObject *var_msg = NULL; - struct Nuitka_FrameObject *frame_efb0ad1e6b4110725f2565598950e915; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - int tmp_res; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_efb0ad1e6b4110725f2565598950e915 = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_efb0ad1e6b4110725f2565598950e915)) { - Py_XDECREF(cache_frame_efb0ad1e6b4110725f2565598950e915); - -#if _DEBUG_REFCOUNTS - if (cache_frame_efb0ad1e6b4110725f2565598950e915 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_efb0ad1e6b4110725f2565598950e915 = MAKE_FUNCTION_FRAME(codeobj_efb0ad1e6b4110725f2565598950e915, module_models$base_model, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_efb0ad1e6b4110725f2565598950e915->m_type_description == NULL); - frame_efb0ad1e6b4110725f2565598950e915 = cache_frame_efb0ad1e6b4110725f2565598950e915; - - // Push the new frame as the currently active one. - pushFrameStack(frame_efb0ad1e6b4110725f2565598950e915); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_efb0ad1e6b4110725f2565598950e915) == 2); // Frame stack - - // Framed code: - { - nuitka_bool tmp_condition_result_1; - PyObject *tmp_called_name_1; - PyObject *tmp_call_result_1; - PyObject *tmp_args_element_name_1; - int tmp_truth_name_1; - tmp_called_name_1 = GET_STRING_DICT_VALUE(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[5]); - - if (unlikely(tmp_called_name_1 == NULL)) { - tmp_called_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[5]); - } - - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 39; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_url_or_filename); - tmp_args_element_name_1 = par_url_or_filename; - frame_efb0ad1e6b4110725f2565598950e915->m_frame.f_lineno = 39; - tmp_call_result_1 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_1, tmp_args_element_name_1); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 39; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_truth_name_1 = CHECK_IF_TRUE(tmp_call_result_1); - if (tmp_truth_name_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_call_result_1); - - exception_lineno = 39; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_1 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - Py_DECREF(tmp_call_result_1); - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_assign_source_1; - PyObject *tmp_called_name_2; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_kwargs_name_1; - tmp_called_name_2 = GET_STRING_DICT_VALUE(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[6]); - - if (unlikely(tmp_called_name_2 == NULL)) { - tmp_called_name_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[6]); - } - - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 40; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_url_or_filename); - tmp_tuple_element_1 = par_url_or_filename; - tmp_args_name_1 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_args_name_1, 0, tmp_tuple_element_1); - tmp_kwargs_name_1 = PyDict_Copy(mod_consts[7]); - frame_efb0ad1e6b4110725f2565598950e915->m_frame.f_lineno = 40; - tmp_assign_source_1 = CALL_FUNCTION(tmp_called_name_2, tmp_args_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_args_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 40; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - assert(var_cached_file == NULL); - var_cached_file = tmp_assign_source_1; - } - { - PyObject *tmp_assign_source_2; - PyObject *tmp_called_name_3; - PyObject *tmp_expression_name_1; - PyObject *tmp_args_name_2; - PyObject *tmp_tuple_element_2; - PyObject *tmp_kwargs_name_2; - tmp_expression_name_1 = GET_STRING_DICT_VALUE(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[2]); - - if (unlikely(tmp_expression_name_1 == NULL)) { - tmp_expression_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]); - } - - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 43; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[8]); - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 43; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_cached_file); - tmp_tuple_element_2 = var_cached_file; - tmp_args_name_2 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_args_name_2, 0, tmp_tuple_element_2); - tmp_kwargs_name_2 = PyDict_Copy(mod_consts[9]); - frame_efb0ad1e6b4110725f2565598950e915->m_frame.f_lineno = 43; - tmp_assign_source_2 = CALL_FUNCTION(tmp_called_name_3, tmp_args_name_2, tmp_kwargs_name_2); - Py_DECREF(tmp_called_name_3); - Py_DECREF(tmp_args_name_2); - Py_DECREF(tmp_kwargs_name_2); - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 43; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - assert(var_checkpoint == NULL); - var_checkpoint = tmp_assign_source_2; - } - goto branch_end_1; - branch_no_1:; - { - nuitka_bool tmp_condition_result_2; - PyObject *tmp_called_instance_1; - PyObject *tmp_expression_name_2; - PyObject *tmp_call_result_2; - PyObject *tmp_args_element_name_2; - int tmp_truth_name_2; - tmp_expression_name_2 = GET_STRING_DICT_VALUE(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[10]); - - if (unlikely(tmp_expression_name_2 == NULL)) { - tmp_expression_name_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[10]); - } - - if (tmp_expression_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 44; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_called_instance_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[11]); - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 44; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_url_or_filename); - tmp_args_element_name_2 = par_url_or_filename; - frame_efb0ad1e6b4110725f2565598950e915->m_frame.f_lineno = 44; - tmp_call_result_2 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_1, mod_consts[12], tmp_args_element_name_2); - Py_DECREF(tmp_called_instance_1); - if (tmp_call_result_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 44; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_truth_name_2 = CHECK_IF_TRUE(tmp_call_result_2); - if (tmp_truth_name_2 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_call_result_2); - - exception_lineno = 44; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_2 = tmp_truth_name_2 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - Py_DECREF(tmp_call_result_2); - if (tmp_condition_result_2 == NUITKA_BOOL_TRUE) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - } - branch_yes_2:; - { - PyObject *tmp_assign_source_3; - PyObject *tmp_called_name_4; - PyObject *tmp_expression_name_3; - PyObject *tmp_args_name_3; - PyObject *tmp_tuple_element_3; - PyObject *tmp_kwargs_name_3; - tmp_expression_name_3 = GET_STRING_DICT_VALUE(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[2]); - - if (unlikely(tmp_expression_name_3 == NULL)) { - tmp_expression_name_3 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]); - } - - if (tmp_expression_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 45; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[8]); - if (tmp_called_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 45; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - if (par_url_or_filename == NULL) { - Py_DECREF(tmp_called_name_4); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[13]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 45; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - - tmp_tuple_element_3 = par_url_or_filename; - tmp_args_name_3 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_args_name_3, 0, tmp_tuple_element_3); - tmp_kwargs_name_3 = PyDict_Copy(mod_consts[9]); - frame_efb0ad1e6b4110725f2565598950e915->m_frame.f_lineno = 45; - tmp_assign_source_3 = CALL_FUNCTION(tmp_called_name_4, tmp_args_name_3, tmp_kwargs_name_3); - Py_DECREF(tmp_called_name_4); - Py_DECREF(tmp_args_name_3); - Py_DECREF(tmp_kwargs_name_3); - if (tmp_assign_source_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 45; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - assert(var_checkpoint == NULL); - var_checkpoint = tmp_assign_source_3; - } - goto branch_end_2; - branch_no_2:; - { - PyObject *tmp_raise_type_1; - PyObject *tmp_make_exception_arg_1; - tmp_make_exception_arg_1 = mod_consts[14]; - frame_efb0ad1e6b4110725f2565598950e915->m_frame.f_lineno = 47; - tmp_raise_type_1 = CALL_FUNCTION_WITH_SINGLE_ARG(PyExc_RuntimeError, tmp_make_exception_arg_1); - assert(!(tmp_raise_type_1 == NULL)); - exception_type = tmp_raise_type_1; - exception_lineno = 47; - RAISE_EXCEPTION_WITH_TYPE(&exception_type, &exception_value, &exception_tb); - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - branch_end_2:; - branch_end_1:; - { - bool tmp_condition_result_3; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - PyObject *tmp_called_instance_2; - tmp_compexpr_left_1 = mod_consts[15]; - if (var_checkpoint == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[16]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 49; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_2 = var_checkpoint; - frame_efb0ad1e6b4110725f2565598950e915->m_frame.f_lineno = 49; - tmp_compexpr_right_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_2, mod_consts[17]); - if (tmp_compexpr_right_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 49; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_res = PySequence_Contains(tmp_compexpr_right_1, tmp_compexpr_left_1); - Py_DECREF(tmp_compexpr_right_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 49; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_3 = (tmp_res == 1) ? true : false; - if (tmp_condition_result_3 != false) { - goto branch_yes_3; - } else { - goto branch_no_3; - } - } - branch_yes_3:; - { - PyObject *tmp_assign_source_4; - PyObject *tmp_expression_name_4; - PyObject *tmp_subscript_name_1; - if (var_checkpoint == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[16]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 50; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_4 = var_checkpoint; - tmp_subscript_name_1 = mod_consts[15]; - tmp_assign_source_4 = LOOKUP_SUBSCRIPT(tmp_expression_name_4, tmp_subscript_name_1); - if (tmp_assign_source_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 50; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - assert(var_state_dict == NULL); - var_state_dict = tmp_assign_source_4; - } - goto branch_end_3; - branch_no_3:; - { - PyObject *tmp_assign_source_5; - if (var_checkpoint == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[16]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 52; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - - tmp_assign_source_5 = var_checkpoint; - assert(var_state_dict == NULL); - Py_INCREF(tmp_assign_source_5); - var_state_dict = tmp_assign_source_5; - } - branch_end_3:; - { - PyObject *tmp_assign_source_6; - PyObject *tmp_called_name_5; - PyObject *tmp_expression_name_5; - PyObject *tmp_args_name_4; - PyObject *tmp_tuple_element_4; - PyObject *tmp_kwargs_name_4; - CHECK_OBJECT(par_self); - tmp_expression_name_5 = par_self; - tmp_called_name_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_5, mod_consts[18]); - if (tmp_called_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 54; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_state_dict); - tmp_tuple_element_4 = var_state_dict; - tmp_args_name_4 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_args_name_4, 0, tmp_tuple_element_4); - tmp_kwargs_name_4 = PyDict_Copy(mod_consts[19]); - frame_efb0ad1e6b4110725f2565598950e915->m_frame.f_lineno = 54; - tmp_assign_source_6 = CALL_FUNCTION(tmp_called_name_5, tmp_args_name_4, tmp_kwargs_name_4); - Py_DECREF(tmp_called_name_5); - Py_DECREF(tmp_args_name_4); - Py_DECREF(tmp_kwargs_name_4); - if (tmp_assign_source_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 54; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - assert(var_msg == NULL); - var_msg = tmp_assign_source_6; - } - { - PyObject *tmp_called_name_6; - PyObject *tmp_expression_name_6; - PyObject *tmp_call_result_3; - PyObject *tmp_args_element_name_3; - PyObject *tmp_called_name_7; - PyObject *tmp_expression_name_7; - PyObject *tmp_args_element_name_4; - PyObject *tmp_expression_name_8; - tmp_expression_name_6 = GET_STRING_DICT_VALUE(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[20]); - - if (unlikely(tmp_expression_name_6 == NULL)) { - tmp_expression_name_6 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[20]); - } - - if (tmp_expression_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 56; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_6 = LOOKUP_ATTRIBUTE(tmp_expression_name_6, mod_consts[21]); - if (tmp_called_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 56; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_expression_name_7 = mod_consts[22]; - tmp_called_name_7 = LOOKUP_ATTRIBUTE(tmp_expression_name_7, mod_consts[23]); - assert(!(tmp_called_name_7 == NULL)); - CHECK_OBJECT(var_msg); - tmp_expression_name_8 = var_msg; - tmp_args_element_name_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_8, mod_consts[24]); - if (tmp_args_element_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_6); - Py_DECREF(tmp_called_name_7); - - exception_lineno = 56; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - frame_efb0ad1e6b4110725f2565598950e915->m_frame.f_lineno = 56; - tmp_args_element_name_3 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_7, tmp_args_element_name_4); - Py_DECREF(tmp_called_name_7); - Py_DECREF(tmp_args_element_name_4); - if (tmp_args_element_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_6); - - exception_lineno = 56; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - frame_efb0ad1e6b4110725f2565598950e915->m_frame.f_lineno = 56; - tmp_call_result_3 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_6, tmp_args_element_name_3); - Py_DECREF(tmp_called_name_6); - Py_DECREF(tmp_args_element_name_3); - if (tmp_call_result_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 56; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_3); - } - { - PyObject *tmp_called_name_8; - PyObject *tmp_expression_name_9; - PyObject *tmp_call_result_4; - PyObject *tmp_args_element_name_5; - PyObject *tmp_left_name_1; - PyObject *tmp_right_name_1; - tmp_expression_name_9 = GET_STRING_DICT_VALUE(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[20]); - - if (unlikely(tmp_expression_name_9 == NULL)) { - tmp_expression_name_9 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[20]); - } - - if (tmp_expression_name_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 57; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_8 = LOOKUP_ATTRIBUTE(tmp_expression_name_9, mod_consts[21]); - if (tmp_called_name_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 57; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_left_name_1 = mod_consts[25]; - if (par_url_or_filename == NULL) { - Py_DECREF(tmp_called_name_8); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[13]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 57; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - - tmp_right_name_1 = par_url_or_filename; - tmp_args_element_name_5 = BINARY_OPERATION_MOD_OBJECT_UNICODE_OBJECT(tmp_left_name_1, tmp_right_name_1); - if (tmp_args_element_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_8); - - exception_lineno = 57; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - frame_efb0ad1e6b4110725f2565598950e915->m_frame.f_lineno = 57; - tmp_call_result_4 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_8, tmp_args_element_name_5); - Py_DECREF(tmp_called_name_8); - Py_DECREF(tmp_args_element_name_5); - if (tmp_call_result_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 57; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_4); - } - if (var_msg == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 59; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - - tmp_return_value = var_msg; - Py_INCREF(tmp_return_value); - goto frame_return_exit_1; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_efb0ad1e6b4110725f2565598950e915); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_efb0ad1e6b4110725f2565598950e915); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_efb0ad1e6b4110725f2565598950e915); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_efb0ad1e6b4110725f2565598950e915, exception_lineno); - } else if (exception_tb->tb_frame != &frame_efb0ad1e6b4110725f2565598950e915->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_efb0ad1e6b4110725f2565598950e915, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_efb0ad1e6b4110725f2565598950e915, - type_description_1, - par_self, - par_url_or_filename, - var_cached_file, - var_checkpoint, - var_state_dict, - var_msg - ); - - - // Release cached frame if used for exception. - if (frame_efb0ad1e6b4110725f2565598950e915 == cache_frame_efb0ad1e6b4110725f2565598950e915) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_efb0ad1e6b4110725f2565598950e915); - cache_frame_efb0ad1e6b4110725f2565598950e915 = NULL; - } - - assertFrameObject(frame_efb0ad1e6b4110725f2565598950e915); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_url_or_filename); - par_url_or_filename = NULL; - Py_XDECREF(var_cached_file); - var_cached_file = NULL; - Py_XDECREF(var_checkpoint); - var_checkpoint = NULL; - Py_XDECREF(var_state_dict); - var_state_dict = NULL; - Py_XDECREF(var_msg); - var_msg = NULL; - 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; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_url_or_filename); - par_url_or_filename = NULL; - Py_XDECREF(var_cached_file); - var_cached_file = NULL; - Py_XDECREF(var_checkpoint); - var_checkpoint = NULL; - Py_XDECREF(var_state_dict); - var_state_dict = NULL; - Py_XDECREF(var_msg); - var_msg = NULL; - // 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."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - 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 || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$base_model$$$function__4_from_pretrained(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_cls = python_pars[0]; - PyObject *par_model_type = python_pars[1]; - PyObject *var_model_cfg = NULL; - PyObject *var_model = NULL; - struct Nuitka_FrameObject *frame_1636a0b0747f01d69319312edd40dcbb; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - static struct Nuitka_FrameObject *cache_frame_1636a0b0747f01d69319312edd40dcbb = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_1636a0b0747f01d69319312edd40dcbb)) { - Py_XDECREF(cache_frame_1636a0b0747f01d69319312edd40dcbb); - -#if _DEBUG_REFCOUNTS - if (cache_frame_1636a0b0747f01d69319312edd40dcbb == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_1636a0b0747f01d69319312edd40dcbb = MAKE_FUNCTION_FRAME(codeobj_1636a0b0747f01d69319312edd40dcbb, module_models$base_model, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_1636a0b0747f01d69319312edd40dcbb->m_type_description == NULL); - frame_1636a0b0747f01d69319312edd40dcbb = cache_frame_1636a0b0747f01d69319312edd40dcbb; - - // Push the new frame as the currently active one. - pushFrameStack(frame_1636a0b0747f01d69319312edd40dcbb); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_1636a0b0747f01d69319312edd40dcbb) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_2; - PyObject *tmp_args_element_name_1; - PyObject *tmp_called_instance_1; - PyObject *tmp_args_element_name_2; - tmp_expression_name_2 = GET_STRING_DICT_VALUE(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[28]); - - if (unlikely(tmp_expression_name_2 == NULL)) { - tmp_expression_name_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[28]); - } - - if (tmp_expression_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 72; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[8]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 72; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_cls); - tmp_called_instance_1 = par_cls; - CHECK_OBJECT(par_model_type); - tmp_args_element_name_2 = par_model_type; - frame_1636a0b0747f01d69319312edd40dcbb->m_frame.f_lineno = 72; - tmp_args_element_name_1 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_1, mod_consts[29], tmp_args_element_name_2); - if (tmp_args_element_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 72; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - frame_1636a0b0747f01d69319312edd40dcbb->m_frame.f_lineno = 72; - tmp_expression_name_1 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_1, tmp_args_element_name_1); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_1); - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 72; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[15]); - Py_DECREF(tmp_expression_name_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 72; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - assert(var_model_cfg == NULL); - var_model_cfg = tmp_assign_source_1; - } - { - PyObject *tmp_assign_source_2; - PyObject *tmp_called_instance_2; - PyObject *tmp_args_element_name_3; - if (par_cls == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[30]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 73; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_2 = par_cls; - CHECK_OBJECT(var_model_cfg); - tmp_args_element_name_3 = var_model_cfg; - frame_1636a0b0747f01d69319312edd40dcbb->m_frame.f_lineno = 73; - tmp_assign_source_2 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_2, mod_consts[31], tmp_args_element_name_3); - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 73; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - assert(var_model == NULL); - var_model = tmp_assign_source_2; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_1636a0b0747f01d69319312edd40dcbb); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_1636a0b0747f01d69319312edd40dcbb); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_1636a0b0747f01d69319312edd40dcbb, exception_lineno); - } else if (exception_tb->tb_frame != &frame_1636a0b0747f01d69319312edd40dcbb->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_1636a0b0747f01d69319312edd40dcbb, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_1636a0b0747f01d69319312edd40dcbb, - type_description_1, - par_cls, - par_model_type, - var_model_cfg, - var_model - ); - - - // Release cached frame if used for exception. - if (frame_1636a0b0747f01d69319312edd40dcbb == cache_frame_1636a0b0747f01d69319312edd40dcbb) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_1636a0b0747f01d69319312edd40dcbb); - cache_frame_1636a0b0747f01d69319312edd40dcbb = NULL; - } - - assertFrameObject(frame_1636a0b0747f01d69319312edd40dcbb); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - CHECK_OBJECT(var_model); - tmp_return_value = var_model; - 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:; - Py_XDECREF(par_cls); - par_cls = NULL; - Py_XDECREF(par_model_type); - par_model_type = NULL; - Py_XDECREF(var_model_cfg); - var_model_cfg = NULL; - CHECK_OBJECT(var_model); - Py_DECREF(var_model); - var_model = NULL; - 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; - - Py_XDECREF(par_cls); - par_cls = NULL; - Py_XDECREF(par_model_type); - par_model_type = NULL; - Py_XDECREF(var_model_cfg); - var_model_cfg = NULL; - // 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."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - 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 || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$base_model$$$function__5_default_config_path(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_cls = python_pars[0]; - PyObject *par_model_type = python_pars[1]; - struct Nuitka_FrameObject *frame_69c403ba983164d79214cd1a92c3e484; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - int tmp_res; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_69c403ba983164d79214cd1a92c3e484 = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_69c403ba983164d79214cd1a92c3e484)) { - Py_XDECREF(cache_frame_69c403ba983164d79214cd1a92c3e484); - -#if _DEBUG_REFCOUNTS - if (cache_frame_69c403ba983164d79214cd1a92c3e484 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_69c403ba983164d79214cd1a92c3e484 = MAKE_FUNCTION_FRAME(codeobj_69c403ba983164d79214cd1a92c3e484, module_models$base_model, sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_69c403ba983164d79214cd1a92c3e484->m_type_description == NULL); - frame_69c403ba983164d79214cd1a92c3e484 = cache_frame_69c403ba983164d79214cd1a92c3e484; - - // Push the new frame as the currently active one. - pushFrameStack(frame_69c403ba983164d79214cd1a92c3e484); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_69c403ba983164d79214cd1a92c3e484) == 2); // Frame stack - - // Framed code: - { - bool tmp_condition_result_1; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - PyObject *tmp_expression_name_1; - CHECK_OBJECT(par_model_type); - tmp_compexpr_left_1 = par_model_type; - CHECK_OBJECT(par_cls); - tmp_expression_name_1 = par_cls; - tmp_compexpr_right_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[33]); - if (tmp_compexpr_right_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 80; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - tmp_res = PySequence_Contains(tmp_compexpr_right_1, tmp_compexpr_left_1); - Py_DECREF(tmp_compexpr_right_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 80; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - tmp_condition_result_1 = (tmp_res == 0) ? true : false; - if (tmp_condition_result_1 != false) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_raise_type_1; - PyObject *tmp_raise_value_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_called_instance_1; - PyObject *tmp_args_element_name_1; - tmp_raise_type_1 = PyExc_AssertionError; - tmp_called_instance_1 = mod_consts[34]; - CHECK_OBJECT(par_model_type); - tmp_args_element_name_1 = par_model_type; - frame_69c403ba983164d79214cd1a92c3e484->m_frame.f_lineno = 81; - tmp_tuple_element_1 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_1, mod_consts[23], tmp_args_element_name_1); - if (tmp_tuple_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 81; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - tmp_raise_value_1 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_raise_value_1, 0, tmp_tuple_element_1); - exception_type = tmp_raise_type_1; - Py_INCREF(tmp_raise_type_1); - exception_value = tmp_raise_value_1; - exception_lineno = 79; - RAISE_EXCEPTION_WITH_VALUE(&exception_type, &exception_value, &exception_tb); - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - branch_no_1:; - { - PyObject *tmp_called_name_1; - PyObject *tmp_args_element_name_2; - PyObject *tmp_expression_name_2; - PyObject *tmp_expression_name_3; - PyObject *tmp_subscript_name_1; - tmp_called_name_1 = GET_STRING_DICT_VALUE(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[35]); - - if (unlikely(tmp_called_name_1 == NULL)) { - tmp_called_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[35]); - } - - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 82; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - if (par_cls == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[30]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 82; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_3 = par_cls; - tmp_expression_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[33]); - if (tmp_expression_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 82; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_model_type); - tmp_subscript_name_1 = par_model_type; - tmp_args_element_name_2 = LOOKUP_SUBSCRIPT(tmp_expression_name_2, tmp_subscript_name_1); - Py_DECREF(tmp_expression_name_2); - if (tmp_args_element_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 82; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - frame_69c403ba983164d79214cd1a92c3e484->m_frame.f_lineno = 82; - tmp_return_value = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_1, tmp_args_element_name_2); - Py_DECREF(tmp_args_element_name_2); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 82; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_69c403ba983164d79214cd1a92c3e484); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_69c403ba983164d79214cd1a92c3e484); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_69c403ba983164d79214cd1a92c3e484); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_69c403ba983164d79214cd1a92c3e484, exception_lineno); - } else if (exception_tb->tb_frame != &frame_69c403ba983164d79214cd1a92c3e484->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_69c403ba983164d79214cd1a92c3e484, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_69c403ba983164d79214cd1a92c3e484, - type_description_1, - par_cls, - par_model_type - ); - - - // Release cached frame if used for exception. - if (frame_69c403ba983164d79214cd1a92c3e484 == cache_frame_69c403ba983164d79214cd1a92c3e484) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_69c403ba983164d79214cd1a92c3e484); - cache_frame_69c403ba983164d79214cd1a92c3e484 = NULL; - } - - assertFrameObject(frame_69c403ba983164d79214cd1a92c3e484); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_cls); - par_cls = NULL; - CHECK_OBJECT(par_model_type); - Py_DECREF(par_model_type); - par_model_type = NULL; - 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; - - Py_XDECREF(par_cls); - par_cls = NULL; - Py_XDECREF(par_model_type); - par_model_type = NULL; - // 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."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - 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 || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$base_model$$$function__6_load_checkpoint_from_config(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_cfg = python_pars[1]; - PyObject *par_kwargs = python_pars[2]; - PyObject *var_load_finetuned = NULL; - PyObject *var_finetune_path = NULL; - PyObject *var_pretrain_path = NULL; - struct Nuitka_FrameObject *frame_8af0987e214bb6e30431e9b2bdcfbb14; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - int tmp_res; - static struct Nuitka_FrameObject *cache_frame_8af0987e214bb6e30431e9b2bdcfbb14 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_8af0987e214bb6e30431e9b2bdcfbb14)) { - Py_XDECREF(cache_frame_8af0987e214bb6e30431e9b2bdcfbb14); - -#if _DEBUG_REFCOUNTS - if (cache_frame_8af0987e214bb6e30431e9b2bdcfbb14 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_8af0987e214bb6e30431e9b2bdcfbb14 = MAKE_FUNCTION_FRAME(codeobj_8af0987e214bb6e30431e9b2bdcfbb14, module_models$base_model, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_8af0987e214bb6e30431e9b2bdcfbb14->m_type_description == NULL); - frame_8af0987e214bb6e30431e9b2bdcfbb14 = cache_frame_8af0987e214bb6e30431e9b2bdcfbb14; - - // Push the new frame as the currently active one. - pushFrameStack(frame_8af0987e214bb6e30431e9b2bdcfbb14); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_8af0987e214bb6e30431e9b2bdcfbb14) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_called_instance_1; - CHECK_OBJECT(par_cfg); - tmp_called_instance_1 = par_cfg; - frame_8af0987e214bb6e30431e9b2bdcfbb14->m_frame.f_lineno = 92; - tmp_assign_source_1 = CALL_METHOD_WITH_ARGS2( - tmp_called_instance_1, - mod_consts[36], - &PyTuple_GET_ITEM(mod_consts[37], 0) - ); - - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 92; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - assert(var_load_finetuned == NULL); - var_load_finetuned = tmp_assign_source_1; - } - { - nuitka_bool tmp_condition_result_1; - int tmp_truth_name_1; - CHECK_OBJECT(var_load_finetuned); - tmp_truth_name_1 = CHECK_IF_TRUE(var_load_finetuned); - if (tmp_truth_name_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 93; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_1 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_assign_source_2; - PyObject *tmp_called_instance_2; - if (par_cfg == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[38]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 94; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_2 = par_cfg; - frame_8af0987e214bb6e30431e9b2bdcfbb14->m_frame.f_lineno = 94; - tmp_assign_source_2 = CALL_METHOD_WITH_ARGS2( - tmp_called_instance_2, - mod_consts[36], - &PyTuple_GET_ITEM(mod_consts[39], 0) - ); - - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 94; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - assert(var_finetune_path == NULL); - var_finetune_path = tmp_assign_source_2; - } - { - bool tmp_condition_result_2; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - CHECK_OBJECT(var_finetune_path); - tmp_compexpr_left_1 = var_finetune_path; - tmp_compexpr_right_1 = Py_None; - tmp_condition_result_2 = (tmp_compexpr_left_1 == tmp_compexpr_right_1) ? true : false; - if (tmp_condition_result_2 != false) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - } - branch_yes_2:; - { - PyObject *tmp_raise_type_1; - PyObject *tmp_raise_value_1; - tmp_raise_type_1 = PyExc_AssertionError; - tmp_raise_value_1 = mod_consts[40]; - exception_type = tmp_raise_type_1; - Py_INCREF(tmp_raise_type_1); - exception_value = tmp_raise_value_1; - Py_INCREF(tmp_raise_value_1); - exception_lineno = 95; - RAISE_EXCEPTION_WITH_VALUE(&exception_type, &exception_value, &exception_tb); - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - branch_no_2:; - { - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_call_result_1; - PyObject *tmp_kwargs_name_1; - PyObject *tmp_dict_key_1; - PyObject *tmp_dict_value_1; - CHECK_OBJECT(par_self); - tmp_expression_name_1 = par_self; - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[41]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 98; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_dict_key_1 = mod_consts[13]; - CHECK_OBJECT(var_finetune_path); - tmp_dict_value_1 = var_finetune_path; - tmp_kwargs_name_1 = _PyDict_NewPresized( 1 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - frame_8af0987e214bb6e30431e9b2bdcfbb14->m_frame.f_lineno = 98; - tmp_call_result_1 = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 98; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - goto branch_end_1; - branch_no_1:; - { - PyObject *tmp_assign_source_3; - PyObject *tmp_called_instance_3; - if (par_cfg == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[38]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 101; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_3 = par_cfg; - frame_8af0987e214bb6e30431e9b2bdcfbb14->m_frame.f_lineno = 101; - tmp_assign_source_3 = CALL_METHOD_WITH_ARGS2( - tmp_called_instance_3, - mod_consts[36], - &PyTuple_GET_ITEM(mod_consts[42], 0) - ); - - if (tmp_assign_source_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 101; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - assert(var_pretrain_path == NULL); - var_pretrain_path = tmp_assign_source_3; - } - { - PyObject *tmp_dircall_arg1_1; - PyObject *tmp_expression_name_2; - PyObject *tmp_dircall_arg2_1; - PyObject *tmp_dict_key_2; - PyObject *tmp_dict_value_2; - PyObject *tmp_dircall_arg3_1; - PyObject *tmp_call_result_2; - CHECK_OBJECT(par_self); - tmp_expression_name_2 = par_self; - tmp_dircall_arg1_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[43]); - if (tmp_dircall_arg1_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 103; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_dict_key_2 = mod_consts[13]; - CHECK_OBJECT(var_pretrain_path); - tmp_dict_value_2 = var_pretrain_path; - tmp_dircall_arg2_1 = _PyDict_NewPresized( 1 ); - tmp_res = PyDict_SetItem(tmp_dircall_arg2_1, tmp_dict_key_2, tmp_dict_value_2); - assert(!(tmp_res != 0)); - CHECK_OBJECT(par_kwargs); - tmp_dircall_arg3_1 = par_kwargs; - Py_INCREF(tmp_dircall_arg3_1); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_1, tmp_dircall_arg2_1, tmp_dircall_arg3_1}; - tmp_call_result_2 = impl_models$$$function__5_complex_call_helper_keywords_star_dict(dir_call_args); - } - if (tmp_call_result_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 103; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_2); - } - branch_end_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_8af0987e214bb6e30431e9b2bdcfbb14); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_8af0987e214bb6e30431e9b2bdcfbb14); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_8af0987e214bb6e30431e9b2bdcfbb14, exception_lineno); - } else if (exception_tb->tb_frame != &frame_8af0987e214bb6e30431e9b2bdcfbb14->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_8af0987e214bb6e30431e9b2bdcfbb14, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_8af0987e214bb6e30431e9b2bdcfbb14, - type_description_1, - par_self, - par_cfg, - par_kwargs, - var_load_finetuned, - var_finetune_path, - var_pretrain_path - ); - - - // Release cached frame if used for exception. - if (frame_8af0987e214bb6e30431e9b2bdcfbb14 == cache_frame_8af0987e214bb6e30431e9b2bdcfbb14) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_8af0987e214bb6e30431e9b2bdcfbb14); - cache_frame_8af0987e214bb6e30431e9b2bdcfbb14 = NULL; - } - - assertFrameObject(frame_8af0987e214bb6e30431e9b2bdcfbb14); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - tmp_return_value = Py_None; - 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:; - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_cfg); - par_cfg = NULL; - CHECK_OBJECT(par_kwargs); - Py_DECREF(par_kwargs); - par_kwargs = NULL; - CHECK_OBJECT(var_load_finetuned); - Py_DECREF(var_load_finetuned); - var_load_finetuned = NULL; - Py_XDECREF(var_finetune_path); - var_finetune_path = NULL; - Py_XDECREF(var_pretrain_path); - var_pretrain_path = NULL; - 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; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_cfg); - par_cfg = NULL; - CHECK_OBJECT(par_kwargs); - Py_DECREF(par_kwargs); - par_kwargs = NULL; - Py_XDECREF(var_load_finetuned); - var_load_finetuned = NULL; - Py_XDECREF(var_finetune_path); - var_finetune_path = NULL; - Py_XDECREF(var_pretrain_path); - var_pretrain_path = NULL; - // 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."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - 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 || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$base_model$$$function__7_before_evaluation(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_kwargs = python_pars[1]; - PyObject *tmp_return_value = NULL; - - // Actual function body. - // Tried code: - tmp_return_value = Py_None; - 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(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_kwargs); - Py_DECREF(par_kwargs); - par_kwargs = NULL; - goto function_return_exit; - // End of try: - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_kwargs); - Py_DECREF(par_kwargs); - par_kwargs = NULL; - - 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 || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$base_model$$$function__8_show_n_params(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_return_str = python_pars[1]; - PyObject *var_tot = NULL; - PyObject *var_p = NULL; - PyObject *var_w = NULL; - PyObject *var_x = NULL; - PyObject *tmp_for_loop_1__for_iterator = NULL; - PyObject *tmp_for_loop_1__iter_value = NULL; - PyObject *tmp_for_loop_2__for_iterator = NULL; - PyObject *tmp_for_loop_2__iter_value = NULL; - struct Nuitka_FrameObject *frame_24faaf0922ee17baa8e84fcd48fce6fe; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - bool tmp_result; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_24faaf0922ee17baa8e84fcd48fce6fe = NULL; - PyObject *exception_keeper_type_3; - PyObject *exception_keeper_value_3; - PyTracebackObject *exception_keeper_tb_3; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; - - // Actual function body. - { - PyObject *tmp_assign_source_1; - tmp_assign_source_1 = mod_consts[45]; - assert(var_tot == NULL); - Py_INCREF(tmp_assign_source_1); - var_tot = tmp_assign_source_1; - } - // Tried code: - if (isFrameUnusable(cache_frame_24faaf0922ee17baa8e84fcd48fce6fe)) { - Py_XDECREF(cache_frame_24faaf0922ee17baa8e84fcd48fce6fe); - -#if _DEBUG_REFCOUNTS - if (cache_frame_24faaf0922ee17baa8e84fcd48fce6fe == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_24faaf0922ee17baa8e84fcd48fce6fe = MAKE_FUNCTION_FRAME(codeobj_24faaf0922ee17baa8e84fcd48fce6fe, module_models$base_model, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_24faaf0922ee17baa8e84fcd48fce6fe->m_type_description == NULL); - frame_24faaf0922ee17baa8e84fcd48fce6fe = cache_frame_24faaf0922ee17baa8e84fcd48fce6fe; - - // Push the new frame as the currently active one. - pushFrameStack(frame_24faaf0922ee17baa8e84fcd48fce6fe); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_24faaf0922ee17baa8e84fcd48fce6fe) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_2; - PyObject *tmp_iter_arg_1; - PyObject *tmp_called_instance_1; - CHECK_OBJECT(par_self); - tmp_called_instance_1 = par_self; - frame_24faaf0922ee17baa8e84fcd48fce6fe->m_frame.f_lineno = 110; - tmp_iter_arg_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[46]); - if (tmp_iter_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 110; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_2 = MAKE_ITERATOR(tmp_iter_arg_1); - Py_DECREF(tmp_iter_arg_1); - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 110; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - assert(tmp_for_loop_1__for_iterator == NULL); - tmp_for_loop_1__for_iterator = tmp_assign_source_2; - } - // Tried code: - loop_start_1:; - { - PyObject *tmp_next_source_1; - PyObject *tmp_assign_source_3; - CHECK_OBJECT(tmp_for_loop_1__for_iterator); - tmp_next_source_1 = tmp_for_loop_1__for_iterator; - tmp_assign_source_3 = ITERATOR_NEXT(tmp_next_source_1); - if (tmp_assign_source_3 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_1; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_1 = "oooooo"; - exception_lineno = 110; - goto try_except_handler_2; - } - } - - { - PyObject *old = tmp_for_loop_1__iter_value; - tmp_for_loop_1__iter_value = tmp_assign_source_3; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_4; - CHECK_OBJECT(tmp_for_loop_1__iter_value); - tmp_assign_source_4 = tmp_for_loop_1__iter_value; - { - PyObject *old = var_p; - var_p = tmp_assign_source_4; - Py_INCREF(var_p); - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_5; - tmp_assign_source_5 = mod_consts[47]; - { - PyObject *old = var_w; - var_w = tmp_assign_source_5; - Py_INCREF(var_w); - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_6; - PyObject *tmp_iter_arg_2; - PyObject *tmp_expression_name_1; - CHECK_OBJECT(var_p); - tmp_expression_name_1 = var_p; - tmp_iter_arg_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[48]); - if (tmp_iter_arg_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 112; - type_description_1 = "oooooo"; - goto try_except_handler_2; - } - tmp_assign_source_6 = MAKE_ITERATOR(tmp_iter_arg_2); - Py_DECREF(tmp_iter_arg_2); - if (tmp_assign_source_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 112; - type_description_1 = "oooooo"; - goto try_except_handler_2; - } - { - PyObject *old = tmp_for_loop_2__for_iterator; - tmp_for_loop_2__for_iterator = tmp_assign_source_6; - Py_XDECREF(old); - } - - } - // Tried code: - loop_start_2:; - { - PyObject *tmp_next_source_2; - PyObject *tmp_assign_source_7; - CHECK_OBJECT(tmp_for_loop_2__for_iterator); - tmp_next_source_2 = tmp_for_loop_2__for_iterator; - tmp_assign_source_7 = ITERATOR_NEXT(tmp_next_source_2); - if (tmp_assign_source_7 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_2; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_1 = "oooooo"; - exception_lineno = 112; - goto try_except_handler_3; - } - } - - { - PyObject *old = tmp_for_loop_2__iter_value; - tmp_for_loop_2__iter_value = tmp_assign_source_7; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_8; - CHECK_OBJECT(tmp_for_loop_2__iter_value); - tmp_assign_source_8 = tmp_for_loop_2__iter_value; - { - PyObject *old = var_x; - var_x = tmp_assign_source_8; - Py_INCREF(var_x); - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_9; - PyObject *tmp_left_name_1; - PyObject *tmp_right_name_1; - if (var_w == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 113; - type_description_1 = "oooooo"; - goto try_except_handler_3; - } - - tmp_left_name_1 = var_w; - CHECK_OBJECT(var_x); - tmp_right_name_1 = var_x; - tmp_result = BINARY_OPERATION_MULT_OBJECT_OBJECT_INPLACE(&tmp_left_name_1, tmp_right_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 113; - type_description_1 = "oooooo"; - goto try_except_handler_3; - } - tmp_assign_source_9 = tmp_left_name_1; - var_w = tmp_assign_source_9; - - } - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 112; - type_description_1 = "oooooo"; - goto try_except_handler_3; - } - goto loop_start_2; - loop_end_2:; - goto try_end_1; - // Exception handler code: - try_except_handler_3:; - 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; - - Py_XDECREF(tmp_for_loop_2__iter_value); - tmp_for_loop_2__iter_value = NULL; - Py_XDECREF(tmp_for_loop_2__for_iterator); - tmp_for_loop_2__for_iterator = NULL; - // 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 try_except_handler_2; - // End of try: - try_end_1:; - Py_XDECREF(tmp_for_loop_2__iter_value); - tmp_for_loop_2__iter_value = NULL; - Py_XDECREF(tmp_for_loop_2__for_iterator); - tmp_for_loop_2__for_iterator = NULL; - { - PyObject *tmp_assign_source_10; - PyObject *tmp_left_name_2; - PyObject *tmp_right_name_2; - if (var_tot == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[50]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 114; - type_description_1 = "oooooo"; - goto try_except_handler_2; - } - - tmp_left_name_2 = var_tot; - if (var_w == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 114; - type_description_1 = "oooooo"; - goto try_except_handler_2; - } - - tmp_right_name_2 = var_w; - tmp_result = BINARY_OPERATION_ADD_OBJECT_OBJECT_INPLACE(&tmp_left_name_2, tmp_right_name_2); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 114; - type_description_1 = "oooooo"; - goto try_except_handler_2; - } - tmp_assign_source_10 = tmp_left_name_2; - var_tot = tmp_assign_source_10; - - } - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 110; - type_description_1 = "oooooo"; - goto try_except_handler_2; - } - goto loop_start_1; - loop_end_1:; - goto try_end_2; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto frame_exception_exit_1; - // End of try: - try_end_2:; - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - { - nuitka_bool tmp_condition_result_1; - int tmp_truth_name_1; - CHECK_OBJECT(par_return_str); - tmp_truth_name_1 = CHECK_IF_TRUE(par_return_str); - if (tmp_truth_name_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 115; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_1 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - nuitka_bool tmp_condition_result_2; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - if (var_tot == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[50]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 116; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - - tmp_compexpr_left_1 = var_tot; - tmp_compexpr_right_1 = mod_consts[51]; - tmp_condition_result_2 = RICH_COMPARE_GE_NBOOL_OBJECT_FLOAT(tmp_compexpr_left_1, tmp_compexpr_right_1); - if (tmp_condition_result_2 == NUITKA_BOOL_EXCEPTION) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 116; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - if (tmp_condition_result_2 == NUITKA_BOOL_TRUE) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - assert(tmp_condition_result_2 != NUITKA_BOOL_UNASSIGNED); - } - branch_yes_2:; - { - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_2; - PyObject *tmp_args_element_name_1; - PyObject *tmp_left_name_3; - PyObject *tmp_right_name_3; - tmp_expression_name_2 = mod_consts[52]; - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[23]); - assert(!(tmp_called_name_1 == NULL)); - if (var_tot == NULL) { - Py_DECREF(tmp_called_name_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[50]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 117; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - - tmp_left_name_3 = var_tot; - tmp_right_name_3 = mod_consts[51]; - tmp_args_element_name_1 = BINARY_OPERATION_TRUEDIV_OBJECT_OBJECT_FLOAT(tmp_left_name_3, tmp_right_name_3); - if (tmp_args_element_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 117; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - frame_24faaf0922ee17baa8e84fcd48fce6fe->m_frame.f_lineno = 117; - tmp_return_value = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_1, tmp_args_element_name_1); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_1); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 117; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - goto branch_end_2; - branch_no_2:; - { - PyObject *tmp_called_name_2; - PyObject *tmp_expression_name_3; - PyObject *tmp_args_element_name_2; - PyObject *tmp_left_name_4; - PyObject *tmp_right_name_4; - tmp_expression_name_3 = mod_consts[53]; - tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[23]); - assert(!(tmp_called_name_2 == NULL)); - if (var_tot == NULL) { - Py_DECREF(tmp_called_name_2); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[50]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 119; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - - tmp_left_name_4 = var_tot; - tmp_right_name_4 = mod_consts[54]; - tmp_args_element_name_2 = BINARY_OPERATION_TRUEDIV_OBJECT_OBJECT_FLOAT(tmp_left_name_4, tmp_right_name_4); - if (tmp_args_element_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_2); - - exception_lineno = 119; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - frame_24faaf0922ee17baa8e84fcd48fce6fe->m_frame.f_lineno = 119; - tmp_return_value = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_2, tmp_args_element_name_2); - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_element_name_2); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 119; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - branch_end_2:; - goto branch_end_1; - branch_no_1:; - if (var_tot == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[50]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 121; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - - tmp_return_value = var_tot; - Py_INCREF(tmp_return_value); - goto frame_return_exit_1; - branch_end_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_24faaf0922ee17baa8e84fcd48fce6fe); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_24faaf0922ee17baa8e84fcd48fce6fe); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_24faaf0922ee17baa8e84fcd48fce6fe); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_24faaf0922ee17baa8e84fcd48fce6fe, exception_lineno); - } else if (exception_tb->tb_frame != &frame_24faaf0922ee17baa8e84fcd48fce6fe->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_24faaf0922ee17baa8e84fcd48fce6fe, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_24faaf0922ee17baa8e84fcd48fce6fe, - type_description_1, - par_self, - par_return_str, - var_tot, - var_p, - var_w, - var_x - ); - - - // Release cached frame if used for exception. - if (frame_24faaf0922ee17baa8e84fcd48fce6fe == cache_frame_24faaf0922ee17baa8e84fcd48fce6fe) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_24faaf0922ee17baa8e84fcd48fce6fe); - cache_frame_24faaf0922ee17baa8e84fcd48fce6fe = NULL; - } - - assertFrameObject(frame_24faaf0922ee17baa8e84fcd48fce6fe); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_return_str); - Py_DECREF(par_return_str); - par_return_str = NULL; - Py_XDECREF(var_tot); - var_tot = NULL; - Py_XDECREF(var_p); - var_p = NULL; - Py_XDECREF(var_w); - var_w = NULL; - Py_XDECREF(var_x); - var_x = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_3 = exception_type; - exception_keeper_value_3 = exception_value; - exception_keeper_tb_3 = exception_tb; - exception_keeper_lineno_3 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_return_str); - Py_DECREF(par_return_str); - par_return_str = NULL; - Py_XDECREF(var_tot); - var_tot = NULL; - Py_XDECREF(var_p); - var_p = NULL; - Py_XDECREF(var_w); - var_w = NULL; - Py_XDECREF(var_x); - var_x = NULL; - // Re-raise. - exception_type = exception_keeper_type_3; - exception_value = exception_keeper_value_3; - exception_tb = exception_keeper_tb_3; - exception_lineno = exception_keeper_lineno_3; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - 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 || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$base_model$$$function__9___init__(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - struct Nuitka_FrameObject *frame_ddadc2663250ee51234ad267883b07bc; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - static struct Nuitka_FrameObject *cache_frame_ddadc2663250ee51234ad267883b07bc = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_ddadc2663250ee51234ad267883b07bc)) { - Py_XDECREF(cache_frame_ddadc2663250ee51234ad267883b07bc); - -#if _DEBUG_REFCOUNTS - if (cache_frame_ddadc2663250ee51234ad267883b07bc == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_ddadc2663250ee51234ad267883b07bc = MAKE_FUNCTION_FRAME(codeobj_ddadc2663250ee51234ad267883b07bc, module_models$base_model, sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_ddadc2663250ee51234ad267883b07bc->m_type_description == NULL); - frame_ddadc2663250ee51234ad267883b07bc = cache_frame_ddadc2663250ee51234ad267883b07bc; - - // Push the new frame as the currently active one. - pushFrameStack(frame_ddadc2663250ee51234ad267883b07bc); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_ddadc2663250ee51234ad267883b07bc) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_called_instance_1; - PyObject *tmp_type_arg_name_1; - PyObject *tmp_object_arg_name_1; - PyObject *tmp_call_result_1; - if (Nuitka_Cell_GET(self->m_closure[0]) == NULL) { - - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[0]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 130; - type_description_1 = "oc"; - goto frame_exception_exit_1; - } - - tmp_type_arg_name_1 = Nuitka_Cell_GET(self->m_closure[0]); - CHECK_OBJECT(par_self); - tmp_object_arg_name_1 = par_self; - tmp_called_instance_1 = BUILTIN_SUPER0(tmp_type_arg_name_1, tmp_object_arg_name_1); - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 130; - type_description_1 = "oc"; - goto frame_exception_exit_1; - } - frame_ddadc2663250ee51234ad267883b07bc->m_frame.f_lineno = 130; - tmp_call_result_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[1]); - Py_DECREF(tmp_called_instance_1); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 130; - type_description_1 = "oc"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_ddadc2663250ee51234ad267883b07bc); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_ddadc2663250ee51234ad267883b07bc); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_ddadc2663250ee51234ad267883b07bc, exception_lineno); - } else if (exception_tb->tb_frame != &frame_ddadc2663250ee51234ad267883b07bc->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_ddadc2663250ee51234ad267883b07bc, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_ddadc2663250ee51234ad267883b07bc, - type_description_1, - par_self, - self->m_closure[0] - ); - - - // Release cached frame if used for exception. - if (frame_ddadc2663250ee51234ad267883b07bc == cache_frame_ddadc2663250ee51234ad267883b07bc) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_ddadc2663250ee51234ad267883b07bc); - cache_frame_ddadc2663250ee51234ad267883b07bc = NULL; - } - - assertFrameObject(frame_ddadc2663250ee51234ad267883b07bc); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - tmp_return_value = Py_None; - 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(par_self); - Py_DECREF(par_self); - par_self = NULL; - 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; - - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - // 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."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - 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 || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$base_model$$$function__10_forward_features(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_samples = python_pars[1]; - PyObject *par_kwargs = python_pars[2]; - struct Nuitka_FrameObject *frame_144bb4aa37b13c6906ed75d1916fd2cb; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - static struct Nuitka_FrameObject *cache_frame_144bb4aa37b13c6906ed75d1916fd2cb = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_144bb4aa37b13c6906ed75d1916fd2cb)) { - Py_XDECREF(cache_frame_144bb4aa37b13c6906ed75d1916fd2cb); - -#if _DEBUG_REFCOUNTS - if (cache_frame_144bb4aa37b13c6906ed75d1916fd2cb == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_144bb4aa37b13c6906ed75d1916fd2cb = MAKE_FUNCTION_FRAME(codeobj_144bb4aa37b13c6906ed75d1916fd2cb, module_models$base_model, sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_144bb4aa37b13c6906ed75d1916fd2cb->m_type_description == NULL); - frame_144bb4aa37b13c6906ed75d1916fd2cb = cache_frame_144bb4aa37b13c6906ed75d1916fd2cb; - - // Push the new frame as the currently active one. - pushFrameStack(frame_144bb4aa37b13c6906ed75d1916fd2cb); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_144bb4aa37b13c6906ed75d1916fd2cb) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_raise_type_1; - tmp_raise_type_1 = PyExc_NotImplementedError; - exception_type = tmp_raise_type_1; - Py_INCREF(tmp_raise_type_1); - exception_lineno = 133; - RAISE_EXCEPTION_WITH_TYPE(&exception_type, &exception_value, &exception_tb); - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_144bb4aa37b13c6906ed75d1916fd2cb); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_144bb4aa37b13c6906ed75d1916fd2cb); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_144bb4aa37b13c6906ed75d1916fd2cb, exception_lineno); - } else if (exception_tb->tb_frame != &frame_144bb4aa37b13c6906ed75d1916fd2cb->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_144bb4aa37b13c6906ed75d1916fd2cb, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_144bb4aa37b13c6906ed75d1916fd2cb, - type_description_1, - par_self, - par_samples, - par_kwargs - ); - - - // Release cached frame if used for exception. - if (frame_144bb4aa37b13c6906ed75d1916fd2cb == cache_frame_144bb4aa37b13c6906ed75d1916fd2cb) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_144bb4aa37b13c6906ed75d1916fd2cb); - cache_frame_144bb4aa37b13c6906ed75d1916fd2cb = NULL; - } - - assertFrameObject(frame_144bb4aa37b13c6906ed75d1916fd2cb); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // 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; - - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_samples); - Py_DECREF(par_samples); - par_samples = NULL; - CHECK_OBJECT(par_kwargs); - Py_DECREF(par_kwargs); - par_kwargs = NULL; - // 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."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -} - - -static PyObject *impl_models$base_model$$$function__11_device(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - struct Nuitka_FrameObject *frame_e2ff967b4add3ba339e6fa020be32f85; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - static struct Nuitka_FrameObject *cache_frame_e2ff967b4add3ba339e6fa020be32f85 = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_e2ff967b4add3ba339e6fa020be32f85)) { - Py_XDECREF(cache_frame_e2ff967b4add3ba339e6fa020be32f85); - -#if _DEBUG_REFCOUNTS - if (cache_frame_e2ff967b4add3ba339e6fa020be32f85 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_e2ff967b4add3ba339e6fa020be32f85 = MAKE_FUNCTION_FRAME(codeobj_e2ff967b4add3ba339e6fa020be32f85, module_models$base_model, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_e2ff967b4add3ba339e6fa020be32f85->m_type_description == NULL); - frame_e2ff967b4add3ba339e6fa020be32f85 = cache_frame_e2ff967b4add3ba339e6fa020be32f85; - - // Push the new frame as the currently active one. - pushFrameStack(frame_e2ff967b4add3ba339e6fa020be32f85); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_e2ff967b4add3ba339e6fa020be32f85) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_expression_name_1; - PyObject *tmp_value_name_1; - PyObject *tmp_called_instance_1; - CHECK_OBJECT(par_self); - tmp_called_instance_1 = par_self; - frame_e2ff967b4add3ba339e6fa020be32f85->m_frame.f_lineno = 138; - tmp_value_name_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[46]); - if (tmp_value_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 138; - type_description_1 = "o"; - goto frame_exception_exit_1; - } - tmp_expression_name_1 = ITERATOR_NEXT(tmp_value_name_1); - Py_DECREF(tmp_value_name_1); - if (tmp_expression_name_1 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "o"; - exception_lineno = 138; - goto frame_exception_exit_1; - } - tmp_return_value = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[55]); - Py_DECREF(tmp_expression_name_1); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 138; - type_description_1 = "o"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_e2ff967b4add3ba339e6fa020be32f85); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_e2ff967b4add3ba339e6fa020be32f85); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_e2ff967b4add3ba339e6fa020be32f85); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_e2ff967b4add3ba339e6fa020be32f85, exception_lineno); - } else if (exception_tb->tb_frame != &frame_e2ff967b4add3ba339e6fa020be32f85->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_e2ff967b4add3ba339e6fa020be32f85, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_e2ff967b4add3ba339e6fa020be32f85, - type_description_1, - par_self - ); - - - // Release cached frame if used for exception. - if (frame_e2ff967b4add3ba339e6fa020be32f85 == cache_frame_e2ff967b4add3ba339e6fa020be32f85) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_e2ff967b4add3ba339e6fa020be32f85); - cache_frame_e2ff967b4add3ba339e6fa020be32f85 = NULL; - } - - assertFrameObject(frame_e2ff967b4add3ba339e6fa020be32f85); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - 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; - - Py_XDECREF(par_self); - par_self = NULL; - // 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."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - 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 || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$base_model$$$function__12__dequeue_and_enqueue(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_image_feat = python_pars[1]; - PyObject *par_text_feat = python_pars[2]; - PyObject *par_idxs = python_pars[3]; - PyObject *var_image_feats = NULL; - PyObject *var_text_feats = NULL; - PyObject *var_batch_size = NULL; - PyObject *var_ptr = NULL; - struct Nuitka_FrameObject *frame_c605ec6894b581ddbf6356fbb7c61f54; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - int tmp_res; - bool tmp_result; - static struct Nuitka_FrameObject *cache_frame_c605ec6894b581ddbf6356fbb7c61f54 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_c605ec6894b581ddbf6356fbb7c61f54)) { - Py_XDECREF(cache_frame_c605ec6894b581ddbf6356fbb7c61f54); - -#if _DEBUG_REFCOUNTS - if (cache_frame_c605ec6894b581ddbf6356fbb7c61f54 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_c605ec6894b581ddbf6356fbb7c61f54 = MAKE_FUNCTION_FRAME(codeobj_c605ec6894b581ddbf6356fbb7c61f54, module_models$base_model, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_c605ec6894b581ddbf6356fbb7c61f54->m_type_description == NULL); - frame_c605ec6894b581ddbf6356fbb7c61f54 = cache_frame_c605ec6894b581ddbf6356fbb7c61f54; - - // Push the new frame as the currently active one. - pushFrameStack(frame_c605ec6894b581ddbf6356fbb7c61f54); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_c605ec6894b581ddbf6356fbb7c61f54) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_called_name_1; - PyObject *tmp_args_element_name_1; - tmp_called_name_1 = GET_STRING_DICT_VALUE(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[56]); - - if (unlikely(tmp_called_name_1 == NULL)) { - tmp_called_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[56]); - } - - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 144; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_image_feat); - tmp_args_element_name_1 = par_image_feat; - frame_c605ec6894b581ddbf6356fbb7c61f54->m_frame.f_lineno = 144; - tmp_assign_source_1 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_1, tmp_args_element_name_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 144; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - assert(var_image_feats == NULL); - var_image_feats = tmp_assign_source_1; - } - { - PyObject *tmp_assign_source_2; - PyObject *tmp_called_name_2; - PyObject *tmp_args_element_name_2; - tmp_called_name_2 = GET_STRING_DICT_VALUE(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[56]); - - if (unlikely(tmp_called_name_2 == NULL)) { - tmp_called_name_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[56]); - } - - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 145; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_text_feat); - tmp_args_element_name_2 = par_text_feat; - frame_c605ec6894b581ddbf6356fbb7c61f54->m_frame.f_lineno = 145; - tmp_assign_source_2 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_2, tmp_args_element_name_2); - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 145; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - assert(var_text_feats == NULL); - var_text_feats = tmp_assign_source_2; - } - { - PyObject *tmp_assign_source_3; - PyObject *tmp_expression_name_1; - PyObject *tmp_expression_name_2; - PyObject *tmp_subscript_name_1; - CHECK_OBJECT(var_image_feats); - tmp_expression_name_2 = var_image_feats; - tmp_expression_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[48]); - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 147; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - tmp_subscript_name_1 = mod_consts[45]; - tmp_assign_source_3 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_1, tmp_subscript_name_1, 0); - Py_DECREF(tmp_expression_name_1); - if (tmp_assign_source_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 147; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - assert(var_batch_size == NULL); - var_batch_size = tmp_assign_source_3; - } - { - PyObject *tmp_assign_source_4; - PyObject *tmp_int_arg_1; - PyObject *tmp_expression_name_3; - CHECK_OBJECT(par_self); - tmp_expression_name_3 = par_self; - tmp_int_arg_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[57]); - if (tmp_int_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 149; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_4 = PyNumber_Int(tmp_int_arg_1); - Py_DECREF(tmp_int_arg_1); - if (tmp_assign_source_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 149; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - assert(var_ptr == NULL); - var_ptr = tmp_assign_source_4; - } - { - nuitka_bool tmp_condition_result_1; - PyObject *tmp_operand_name_1; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - PyObject *tmp_left_name_1; - PyObject *tmp_expression_name_4; - PyObject *tmp_right_name_1; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[58]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 150; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_4 = par_self; - tmp_left_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[59]); - if (tmp_left_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 150; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_batch_size); - tmp_right_name_1 = var_batch_size; - tmp_compexpr_left_1 = BINARY_OPERATION_MOD_OBJECT_OBJECT_OBJECT(tmp_left_name_1, tmp_right_name_1); - Py_DECREF(tmp_left_name_1); - if (tmp_compexpr_left_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 150; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - tmp_compexpr_right_1 = mod_consts[45]; - tmp_operand_name_1 = RICH_COMPARE_EQ_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_1, tmp_compexpr_right_1); - Py_DECREF(tmp_compexpr_left_1); - if (tmp_operand_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 150; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - tmp_res = CHECK_IF_TRUE(tmp_operand_name_1); - Py_DECREF(tmp_operand_name_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 150; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_1 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_raise_type_1; - tmp_raise_type_1 = PyExc_AssertionError; - exception_type = tmp_raise_type_1; - Py_INCREF(tmp_raise_type_1); - exception_lineno = 150; - RAISE_EXCEPTION_WITH_TYPE(&exception_type, &exception_value, &exception_tb); - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - branch_no_1:; - { - PyObject *tmp_ass_subvalue_1; - PyObject *tmp_expression_name_5; - PyObject *tmp_ass_subscribed_1; - PyObject *tmp_expression_name_6; - PyObject *tmp_ass_subscript_1; - PyObject *tmp_tuple_element_1; - if (var_image_feats == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[60]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 153; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_5 = var_image_feats; - tmp_ass_subvalue_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_5, mod_consts[61]); - if (tmp_ass_subvalue_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 153; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_ass_subvalue_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[58]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 153; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_6 = par_self; - tmp_ass_subscribed_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_6, mod_consts[62]); - if (tmp_ass_subscribed_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_ass_subvalue_1); - - exception_lineno = 153; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - tmp_tuple_element_1 = mod_consts[63]; - tmp_ass_subscript_1 = PyTuple_New(2); - { - PyObject *tmp_start_name_1; - PyObject *tmp_stop_name_1; - PyObject *tmp_left_name_2; - PyObject *tmp_right_name_2; - PyTuple_SET_ITEM0(tmp_ass_subscript_1, 0, tmp_tuple_element_1); - CHECK_OBJECT(var_ptr); - tmp_start_name_1 = var_ptr; - CHECK_OBJECT(var_ptr); - tmp_left_name_2 = var_ptr; - if (var_batch_size == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[64]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 153; - type_description_1 = "oooooooo"; - goto tuple_build_exception_1; - } - - tmp_right_name_2 = var_batch_size; - tmp_stop_name_1 = BINARY_OPERATION_ADD_OBJECT_OBJECT_OBJECT(tmp_left_name_2, tmp_right_name_2); - if (tmp_stop_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 153; - type_description_1 = "oooooooo"; - goto tuple_build_exception_1; - } - tmp_tuple_element_1 = MAKE_SLICEOBJ2(tmp_start_name_1, tmp_stop_name_1); - Py_DECREF(tmp_stop_name_1); - assert(!(tmp_tuple_element_1 == NULL)); - PyTuple_SET_ITEM(tmp_ass_subscript_1, 1, tmp_tuple_element_1); - } - goto tuple_build_noexception_1; - // Exception handling pass through code for tuple_build: - tuple_build_exception_1:; - Py_DECREF(tmp_ass_subvalue_1); - Py_DECREF(tmp_ass_subscribed_1); - Py_DECREF(tmp_ass_subscript_1); - goto frame_exception_exit_1; - // Finished with no exception for tuple_build: - tuple_build_noexception_1:; - tmp_result = SET_SUBSCRIPT(tmp_ass_subscribed_1, tmp_ass_subscript_1, tmp_ass_subvalue_1); - Py_DECREF(tmp_ass_subscribed_1); - Py_DECREF(tmp_ass_subscript_1); - Py_DECREF(tmp_ass_subvalue_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 153; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_ass_subvalue_2; - PyObject *tmp_expression_name_7; - PyObject *tmp_ass_subscribed_2; - PyObject *tmp_expression_name_8; - PyObject *tmp_ass_subscript_2; - PyObject *tmp_tuple_element_2; - CHECK_OBJECT(var_text_feats); - tmp_expression_name_7 = var_text_feats; - tmp_ass_subvalue_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_7, mod_consts[61]); - if (tmp_ass_subvalue_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 154; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_ass_subvalue_2); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[58]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 154; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_8 = par_self; - tmp_ass_subscribed_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_8, mod_consts[65]); - if (tmp_ass_subscribed_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_ass_subvalue_2); - - exception_lineno = 154; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - tmp_tuple_element_2 = mod_consts[63]; - tmp_ass_subscript_2 = PyTuple_New(2); - { - PyObject *tmp_start_name_2; - PyObject *tmp_stop_name_2; - PyObject *tmp_left_name_3; - PyObject *tmp_right_name_3; - PyTuple_SET_ITEM0(tmp_ass_subscript_2, 0, tmp_tuple_element_2); - if (var_ptr == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[66]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 154; - type_description_1 = "oooooooo"; - goto tuple_build_exception_2; - } - - tmp_start_name_2 = var_ptr; - if (var_ptr == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[66]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 154; - type_description_1 = "oooooooo"; - goto tuple_build_exception_2; - } - - tmp_left_name_3 = var_ptr; - if (var_batch_size == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[64]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 154; - type_description_1 = "oooooooo"; - goto tuple_build_exception_2; - } - - tmp_right_name_3 = var_batch_size; - tmp_stop_name_2 = BINARY_OPERATION_ADD_OBJECT_OBJECT_OBJECT(tmp_left_name_3, tmp_right_name_3); - if (tmp_stop_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 154; - type_description_1 = "oooooooo"; - goto tuple_build_exception_2; - } - tmp_tuple_element_2 = MAKE_SLICEOBJ2(tmp_start_name_2, tmp_stop_name_2); - Py_DECREF(tmp_stop_name_2); - assert(!(tmp_tuple_element_2 == NULL)); - PyTuple_SET_ITEM(tmp_ass_subscript_2, 1, tmp_tuple_element_2); - } - goto tuple_build_noexception_2; - // Exception handling pass through code for tuple_build: - tuple_build_exception_2:; - Py_DECREF(tmp_ass_subvalue_2); - Py_DECREF(tmp_ass_subscribed_2); - Py_DECREF(tmp_ass_subscript_2); - goto frame_exception_exit_1; - // Finished with no exception for tuple_build: - tuple_build_noexception_2:; - tmp_result = SET_SUBSCRIPT(tmp_ass_subscribed_2, tmp_ass_subscript_2, tmp_ass_subvalue_2); - Py_DECREF(tmp_ass_subscribed_2); - Py_DECREF(tmp_ass_subscript_2); - Py_DECREF(tmp_ass_subvalue_2); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 154; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - } - { - bool tmp_condition_result_2; - PyObject *tmp_compexpr_left_2; - PyObject *tmp_compexpr_right_2; - CHECK_OBJECT(par_idxs); - tmp_compexpr_left_2 = par_idxs; - tmp_compexpr_right_2 = Py_None; - tmp_condition_result_2 = (tmp_compexpr_left_2 != tmp_compexpr_right_2) ? true : false; - if (tmp_condition_result_2 != false) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - } - branch_yes_2:; - { - PyObject *tmp_assign_source_5; - PyObject *tmp_called_name_3; - PyObject *tmp_args_element_name_3; - tmp_called_name_3 = GET_STRING_DICT_VALUE(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[56]); - - if (unlikely(tmp_called_name_3 == NULL)) { - tmp_called_name_3 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[56]); - } - - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 157; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_idxs); - tmp_args_element_name_3 = par_idxs; - frame_c605ec6894b581ddbf6356fbb7c61f54->m_frame.f_lineno = 157; - tmp_assign_source_5 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_3, tmp_args_element_name_3); - if (tmp_assign_source_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 157; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_idxs; - assert(old != NULL); - par_idxs = tmp_assign_source_5; - Py_DECREF(old); - } - - } - { - PyObject *tmp_ass_subvalue_3; - PyObject *tmp_expression_name_9; - PyObject *tmp_ass_subscribed_3; - PyObject *tmp_expression_name_10; - PyObject *tmp_ass_subscript_3; - PyObject *tmp_tuple_element_3; - CHECK_OBJECT(par_idxs); - tmp_expression_name_9 = par_idxs; - tmp_ass_subvalue_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_9, mod_consts[61]); - if (tmp_ass_subvalue_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 158; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_ass_subvalue_3); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[58]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 158; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_10 = par_self; - tmp_ass_subscribed_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_10, mod_consts[67]); - if (tmp_ass_subscribed_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_ass_subvalue_3); - - exception_lineno = 158; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - tmp_tuple_element_3 = mod_consts[63]; - tmp_ass_subscript_3 = PyTuple_New(2); - { - PyObject *tmp_start_name_3; - PyObject *tmp_stop_name_3; - PyObject *tmp_left_name_4; - PyObject *tmp_right_name_4; - PyTuple_SET_ITEM0(tmp_ass_subscript_3, 0, tmp_tuple_element_3); - if (var_ptr == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[66]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 158; - type_description_1 = "oooooooo"; - goto tuple_build_exception_3; - } - - tmp_start_name_3 = var_ptr; - if (var_ptr == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[66]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 158; - type_description_1 = "oooooooo"; - goto tuple_build_exception_3; - } - - tmp_left_name_4 = var_ptr; - if (var_batch_size == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[64]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 158; - type_description_1 = "oooooooo"; - goto tuple_build_exception_3; - } - - tmp_right_name_4 = var_batch_size; - tmp_stop_name_3 = BINARY_OPERATION_ADD_OBJECT_OBJECT_OBJECT(tmp_left_name_4, tmp_right_name_4); - if (tmp_stop_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 158; - type_description_1 = "oooooooo"; - goto tuple_build_exception_3; - } - tmp_tuple_element_3 = MAKE_SLICEOBJ2(tmp_start_name_3, tmp_stop_name_3); - Py_DECREF(tmp_stop_name_3); - assert(!(tmp_tuple_element_3 == NULL)); - PyTuple_SET_ITEM(tmp_ass_subscript_3, 1, tmp_tuple_element_3); - } - goto tuple_build_noexception_3; - // Exception handling pass through code for tuple_build: - tuple_build_exception_3:; - Py_DECREF(tmp_ass_subvalue_3); - Py_DECREF(tmp_ass_subscribed_3); - Py_DECREF(tmp_ass_subscript_3); - goto frame_exception_exit_1; - // Finished with no exception for tuple_build: - tuple_build_noexception_3:; - tmp_result = SET_SUBSCRIPT(tmp_ass_subscribed_3, tmp_ass_subscript_3, tmp_ass_subvalue_3); - Py_DECREF(tmp_ass_subscribed_3); - Py_DECREF(tmp_ass_subscript_3); - Py_DECREF(tmp_ass_subvalue_3); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 158; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - } - branch_no_2:; - { - PyObject *tmp_assign_source_6; - PyObject *tmp_left_name_5; - PyObject *tmp_left_name_6; - PyObject *tmp_right_name_5; - PyObject *tmp_right_name_6; - PyObject *tmp_expression_name_11; - if (var_ptr == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[66]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 160; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - - tmp_left_name_6 = var_ptr; - if (var_batch_size == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[64]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 160; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - - tmp_right_name_5 = var_batch_size; - tmp_left_name_5 = BINARY_OPERATION_ADD_OBJECT_OBJECT_OBJECT(tmp_left_name_6, tmp_right_name_5); - if (tmp_left_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 160; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_left_name_5); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[58]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 160; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_11 = par_self; - tmp_right_name_6 = LOOKUP_ATTRIBUTE(tmp_expression_name_11, mod_consts[59]); - if (tmp_right_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_5); - - exception_lineno = 160; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_6 = BINARY_OPERATION_MOD_OBJECT_OBJECT_OBJECT(tmp_left_name_5, tmp_right_name_6); - Py_DECREF(tmp_left_name_5); - Py_DECREF(tmp_right_name_6); - if (tmp_assign_source_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 160; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = var_ptr; - var_ptr = tmp_assign_source_6; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_ass_subvalue_4; - PyObject *tmp_ass_subscribed_4; - PyObject *tmp_expression_name_12; - PyObject *tmp_ass_subscript_4; - int tmp_ass_subscript_res_1; - CHECK_OBJECT(var_ptr); - tmp_ass_subvalue_4 = var_ptr; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[58]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 161; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_12 = par_self; - tmp_ass_subscribed_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_12, mod_consts[57]); - if (tmp_ass_subscribed_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 161; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - tmp_ass_subscript_4 = mod_consts[45]; - tmp_ass_subscript_res_1 = SET_SUBSCRIPT_CONST(tmp_ass_subscribed_4, tmp_ass_subscript_4, 0, tmp_ass_subvalue_4); - Py_DECREF(tmp_ass_subscribed_4); - if (tmp_ass_subscript_res_1 == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 161; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_c605ec6894b581ddbf6356fbb7c61f54); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_c605ec6894b581ddbf6356fbb7c61f54); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_c605ec6894b581ddbf6356fbb7c61f54, exception_lineno); - } else if (exception_tb->tb_frame != &frame_c605ec6894b581ddbf6356fbb7c61f54->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_c605ec6894b581ddbf6356fbb7c61f54, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_c605ec6894b581ddbf6356fbb7c61f54, - type_description_1, - par_self, - par_image_feat, - par_text_feat, - par_idxs, - var_image_feats, - var_text_feats, - var_batch_size, - var_ptr - ); - - - // Release cached frame if used for exception. - if (frame_c605ec6894b581ddbf6356fbb7c61f54 == cache_frame_c605ec6894b581ddbf6356fbb7c61f54) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_c605ec6894b581ddbf6356fbb7c61f54); - cache_frame_c605ec6894b581ddbf6356fbb7c61f54 = NULL; - } - - assertFrameObject(frame_c605ec6894b581ddbf6356fbb7c61f54); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - tmp_return_value = Py_None; - 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:; - Py_XDECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_image_feat); - Py_DECREF(par_image_feat); - par_image_feat = NULL; - CHECK_OBJECT(par_text_feat); - Py_DECREF(par_text_feat); - par_text_feat = NULL; - Py_XDECREF(par_idxs); - par_idxs = NULL; - Py_XDECREF(var_image_feats); - var_image_feats = NULL; - Py_XDECREF(var_text_feats); - var_text_feats = NULL; - Py_XDECREF(var_batch_size); - var_batch_size = NULL; - CHECK_OBJECT(var_ptr); - Py_DECREF(var_ptr); - var_ptr = NULL; - 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; - - Py_XDECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_image_feat); - Py_DECREF(par_image_feat); - par_image_feat = NULL; - CHECK_OBJECT(par_text_feat); - Py_DECREF(par_text_feat); - par_text_feat = NULL; - Py_XDECREF(par_idxs); - par_idxs = NULL; - Py_XDECREF(var_image_feats); - var_image_feats = NULL; - Py_XDECREF(var_text_feats); - var_text_feats = NULL; - Py_XDECREF(var_batch_size); - var_batch_size = NULL; - Py_XDECREF(var_ptr); - var_ptr = NULL; - // 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."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - 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 || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$base_model$$$function__13_copy_params(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *var_model_pair = NULL; - PyObject *var_param = NULL; - PyObject *var_param_m = NULL; - PyObject *tmp_for_loop_1__for_iterator = NULL; - PyObject *tmp_for_loop_1__iter_value = NULL; - PyObject *tmp_for_loop_2__for_iterator = NULL; - PyObject *tmp_for_loop_2__iter_value = NULL; - PyObject *tmp_tuple_unpack_1__element_1 = NULL; - PyObject *tmp_tuple_unpack_1__element_2 = NULL; - PyObject *tmp_tuple_unpack_1__source_iter = NULL; - struct Nuitka_FrameObject *frame_df2391467f85318d759b3b6072f678ab; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - PyObject *tmp_iterator_attempt; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - bool tmp_result; - PyObject *exception_keeper_type_3; - PyObject *exception_keeper_value_3; - PyTracebackObject *exception_keeper_tb_3; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; - PyObject *exception_keeper_type_4; - PyObject *exception_keeper_value_4; - PyTracebackObject *exception_keeper_tb_4; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_4; - static struct Nuitka_FrameObject *cache_frame_df2391467f85318d759b3b6072f678ab = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_5; - PyObject *exception_keeper_value_5; - PyTracebackObject *exception_keeper_tb_5; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_5; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_df2391467f85318d759b3b6072f678ab)) { - Py_XDECREF(cache_frame_df2391467f85318d759b3b6072f678ab); - -#if _DEBUG_REFCOUNTS - if (cache_frame_df2391467f85318d759b3b6072f678ab == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_df2391467f85318d759b3b6072f678ab = MAKE_FUNCTION_FRAME(codeobj_df2391467f85318d759b3b6072f678ab, module_models$base_model, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_df2391467f85318d759b3b6072f678ab->m_type_description == NULL); - frame_df2391467f85318d759b3b6072f678ab = cache_frame_df2391467f85318d759b3b6072f678ab; - - // Push the new frame as the currently active one. - pushFrameStack(frame_df2391467f85318d759b3b6072f678ab); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_df2391467f85318d759b3b6072f678ab) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_iter_arg_1; - PyObject *tmp_expression_name_1; - CHECK_OBJECT(par_self); - tmp_expression_name_1 = par_self; - tmp_iter_arg_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[68]); - if (tmp_iter_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 167; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_1 = MAKE_ITERATOR(tmp_iter_arg_1); - Py_DECREF(tmp_iter_arg_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 167; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - assert(tmp_for_loop_1__for_iterator == NULL); - tmp_for_loop_1__for_iterator = tmp_assign_source_1; - } - // Tried code: - loop_start_1:; - { - PyObject *tmp_next_source_1; - PyObject *tmp_assign_source_2; - CHECK_OBJECT(tmp_for_loop_1__for_iterator); - tmp_next_source_1 = tmp_for_loop_1__for_iterator; - tmp_assign_source_2 = ITERATOR_NEXT(tmp_next_source_1); - if (tmp_assign_source_2 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_1; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_1 = "oooo"; - exception_lineno = 167; - goto try_except_handler_2; - } - } - - { - PyObject *old = tmp_for_loop_1__iter_value; - tmp_for_loop_1__iter_value = tmp_assign_source_2; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_3; - CHECK_OBJECT(tmp_for_loop_1__iter_value); - tmp_assign_source_3 = tmp_for_loop_1__iter_value; - { - PyObject *old = var_model_pair; - var_model_pair = tmp_assign_source_3; - Py_INCREF(var_model_pair); - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_4; - PyObject *tmp_iter_arg_2; - PyObject *tmp_called_name_1; - PyObject *tmp_args_element_name_1; - PyObject *tmp_called_instance_1; - PyObject *tmp_expression_name_2; - PyObject *tmp_subscript_name_1; - PyObject *tmp_args_element_name_2; - PyObject *tmp_called_instance_2; - PyObject *tmp_expression_name_3; - PyObject *tmp_subscript_name_2; - tmp_called_name_1 = (PyObject *)&PyZip_Type; - CHECK_OBJECT(var_model_pair); - tmp_expression_name_2 = var_model_pair; - tmp_subscript_name_1 = mod_consts[45]; - tmp_called_instance_1 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_2, tmp_subscript_name_1, 0); - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 169; - type_description_1 = "oooo"; - goto try_except_handler_2; - } - frame_df2391467f85318d759b3b6072f678ab->m_frame.f_lineno = 169; - tmp_args_element_name_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[46]); - Py_DECREF(tmp_called_instance_1); - if (tmp_args_element_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 169; - type_description_1 = "oooo"; - goto try_except_handler_2; - } - CHECK_OBJECT(var_model_pair); - tmp_expression_name_3 = var_model_pair; - tmp_subscript_name_2 = mod_consts[47]; - tmp_called_instance_2 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_3, tmp_subscript_name_2, 1); - if (tmp_called_instance_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_args_element_name_1); - - exception_lineno = 169; - type_description_1 = "oooo"; - goto try_except_handler_2; - } - frame_df2391467f85318d759b3b6072f678ab->m_frame.f_lineno = 169; - tmp_args_element_name_2 = CALL_METHOD_NO_ARGS(tmp_called_instance_2, mod_consts[46]); - Py_DECREF(tmp_called_instance_2); - if (tmp_args_element_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_args_element_name_1); - - exception_lineno = 169; - type_description_1 = "oooo"; - goto try_except_handler_2; - } - frame_df2391467f85318d759b3b6072f678ab->m_frame.f_lineno = 168; - { - PyObject *call_args[] = {tmp_args_element_name_1, tmp_args_element_name_2}; - tmp_iter_arg_2 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_1, call_args); - } - - Py_DECREF(tmp_args_element_name_1); - Py_DECREF(tmp_args_element_name_2); - if (tmp_iter_arg_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 168; - type_description_1 = "oooo"; - goto try_except_handler_2; - } - tmp_assign_source_4 = MAKE_ITERATOR(tmp_iter_arg_2); - Py_DECREF(tmp_iter_arg_2); - if (tmp_assign_source_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 168; - type_description_1 = "oooo"; - goto try_except_handler_2; - } - { - PyObject *old = tmp_for_loop_2__for_iterator; - tmp_for_loop_2__for_iterator = tmp_assign_source_4; - Py_XDECREF(old); - } - - } - // Tried code: - loop_start_2:; - { - PyObject *tmp_next_source_2; - PyObject *tmp_assign_source_5; - CHECK_OBJECT(tmp_for_loop_2__for_iterator); - tmp_next_source_2 = tmp_for_loop_2__for_iterator; - tmp_assign_source_5 = ITERATOR_NEXT(tmp_next_source_2); - if (tmp_assign_source_5 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_2; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_1 = "oooo"; - exception_lineno = 168; - goto try_except_handler_3; - } - } - - { - PyObject *old = tmp_for_loop_2__iter_value; - tmp_for_loop_2__iter_value = tmp_assign_source_5; - Py_XDECREF(old); - } - - } - // Tried code: - { - PyObject *tmp_assign_source_6; - PyObject *tmp_iter_arg_3; - CHECK_OBJECT(tmp_for_loop_2__iter_value); - tmp_iter_arg_3 = tmp_for_loop_2__iter_value; - tmp_assign_source_6 = MAKE_UNPACK_ITERATOR(tmp_iter_arg_3); - if (tmp_assign_source_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 168; - type_description_1 = "oooo"; - goto try_except_handler_4; - } - { - PyObject *old = tmp_tuple_unpack_1__source_iter; - tmp_tuple_unpack_1__source_iter = tmp_assign_source_6; - Py_XDECREF(old); - } - - } - // Tried code: - { - PyObject *tmp_assign_source_7; - PyObject *tmp_unpack_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_1 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_7 = UNPACK_NEXT(tmp_unpack_1, 0, 2); - if (tmp_assign_source_7 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oooo"; - exception_lineno = 168; - goto try_except_handler_5; - } - { - PyObject *old = tmp_tuple_unpack_1__element_1; - tmp_tuple_unpack_1__element_1 = tmp_assign_source_7; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_8; - PyObject *tmp_unpack_2; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_2 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_8 = UNPACK_NEXT(tmp_unpack_2, 1, 2); - if (tmp_assign_source_8 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oooo"; - exception_lineno = 168; - goto try_except_handler_5; - } - { - PyObject *old = tmp_tuple_unpack_1__element_2; - tmp_tuple_unpack_1__element_2 = tmp_assign_source_8; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_iterator_name_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_iterator_name_1 = tmp_tuple_unpack_1__source_iter; - // Check if iterator has left-over elements. - CHECK_OBJECT(tmp_iterator_name_1); assert(HAS_ITERNEXT(tmp_iterator_name_1)); - - tmp_iterator_attempt = (*Py_TYPE(tmp_iterator_name_1)->tp_iternext)(tmp_iterator_name_1); - - if (likely(tmp_iterator_attempt == NULL)) { - PyObject *error = GET_ERROR_OCCURRED(); - - if (error != NULL) { - if (EXCEPTION_MATCH_BOOL_SINGLE(error, PyExc_StopIteration)) { - CLEAR_ERROR_OCCURRED(); - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - type_description_1 = "oooo"; - exception_lineno = 168; - goto try_except_handler_5; - } - } - } else { - Py_DECREF(tmp_iterator_attempt); - - exception_type = PyExc_ValueError; - Py_INCREF(PyExc_ValueError); - exception_value = mod_consts[69]; - Py_INCREF(exception_value); - exception_tb = NULL; - - type_description_1 = "oooo"; - exception_lineno = 168; - goto try_except_handler_5; - } - } - goto try_end_1; - // Exception handler code: - try_except_handler_5:; - 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; - - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - // 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 try_except_handler_4; - // End of try: - try_end_1:; - goto try_end_2; - // Exception handler code: - try_except_handler_4:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto try_except_handler_3; - // End of try: - try_end_2:; - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - { - PyObject *tmp_assign_source_9; - CHECK_OBJECT(tmp_tuple_unpack_1__element_1); - tmp_assign_source_9 = tmp_tuple_unpack_1__element_1; - { - PyObject *old = var_param; - var_param = tmp_assign_source_9; - Py_INCREF(var_param); - Py_XDECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - - { - PyObject *tmp_assign_source_10; - CHECK_OBJECT(tmp_tuple_unpack_1__element_2); - tmp_assign_source_10 = tmp_tuple_unpack_1__element_2; - { - PyObject *old = var_param_m; - var_param_m = tmp_assign_source_10; - Py_INCREF(var_param_m); - Py_XDECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - { - PyObject *tmp_called_name_2; - PyObject *tmp_expression_name_4; - PyObject *tmp_expression_name_5; - PyObject *tmp_call_result_1; - PyObject *tmp_args_element_name_3; - PyObject *tmp_expression_name_6; - CHECK_OBJECT(var_param_m); - tmp_expression_name_5 = var_param_m; - tmp_expression_name_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_5, mod_consts[70]); - if (tmp_expression_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 171; - type_description_1 = "oooo"; - goto try_except_handler_3; - } - tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[71]); - Py_DECREF(tmp_expression_name_4); - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 171; - type_description_1 = "oooo"; - goto try_except_handler_3; - } - CHECK_OBJECT(var_param); - tmp_expression_name_6 = var_param; - tmp_args_element_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_6, mod_consts[70]); - if (tmp_args_element_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_2); - - exception_lineno = 171; - type_description_1 = "oooo"; - goto try_except_handler_3; - } - frame_df2391467f85318d759b3b6072f678ab->m_frame.f_lineno = 171; - tmp_call_result_1 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_2, tmp_args_element_name_3); - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_element_name_3); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 171; - type_description_1 = "oooo"; - goto try_except_handler_3; - } - Py_DECREF(tmp_call_result_1); - } - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_assattr_target_1; - tmp_assattr_name_1 = Py_False; - if (var_param_m == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[72]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 172; - type_description_1 = "oooo"; - goto try_except_handler_3; - } - - tmp_assattr_target_1 = var_param_m; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[73], tmp_assattr_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 172; - type_description_1 = "oooo"; - goto try_except_handler_3; - } - } - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 168; - type_description_1 = "oooo"; - goto try_except_handler_3; - } - goto loop_start_2; - loop_end_2:; - goto try_end_3; - // Exception handler code: - try_except_handler_3:; - exception_keeper_type_3 = exception_type; - exception_keeper_value_3 = exception_value; - exception_keeper_tb_3 = exception_tb; - exception_keeper_lineno_3 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_for_loop_2__iter_value); - tmp_for_loop_2__iter_value = NULL; - Py_XDECREF(tmp_for_loop_2__for_iterator); - tmp_for_loop_2__for_iterator = NULL; - // Re-raise. - exception_type = exception_keeper_type_3; - exception_value = exception_keeper_value_3; - exception_tb = exception_keeper_tb_3; - exception_lineno = exception_keeper_lineno_3; - - goto try_except_handler_2; - // End of try: - try_end_3:; - Py_XDECREF(tmp_for_loop_2__iter_value); - tmp_for_loop_2__iter_value = NULL; - Py_XDECREF(tmp_for_loop_2__for_iterator); - tmp_for_loop_2__for_iterator = NULL; - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 167; - type_description_1 = "oooo"; - goto try_except_handler_2; - } - goto loop_start_1; - loop_end_1:; - goto try_end_4; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_4 = exception_type; - exception_keeper_value_4 = exception_value; - exception_keeper_tb_4 = exception_tb; - exception_keeper_lineno_4 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - // Re-raise. - exception_type = exception_keeper_type_4; - exception_value = exception_keeper_value_4; - exception_tb = exception_keeper_tb_4; - exception_lineno = exception_keeper_lineno_4; - - goto frame_exception_exit_1; - // End of try: - try_end_4:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_df2391467f85318d759b3b6072f678ab); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_df2391467f85318d759b3b6072f678ab); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_df2391467f85318d759b3b6072f678ab, exception_lineno); - } else if (exception_tb->tb_frame != &frame_df2391467f85318d759b3b6072f678ab->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_df2391467f85318d759b3b6072f678ab, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_df2391467f85318d759b3b6072f678ab, - type_description_1, - par_self, - var_model_pair, - var_param, - var_param_m - ); - - - // Release cached frame if used for exception. - if (frame_df2391467f85318d759b3b6072f678ab == cache_frame_df2391467f85318d759b3b6072f678ab) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_df2391467f85318d759b3b6072f678ab); - cache_frame_df2391467f85318d759b3b6072f678ab = NULL; - } - - assertFrameObject(frame_df2391467f85318d759b3b6072f678ab); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - tmp_return_value = Py_None; - 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:; - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(var_model_pair); - var_model_pair = NULL; - Py_XDECREF(var_param); - var_param = NULL; - Py_XDECREF(var_param_m); - var_param_m = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_5 = exception_type; - exception_keeper_value_5 = exception_value; - exception_keeper_tb_5 = exception_tb; - exception_keeper_lineno_5 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(var_model_pair); - var_model_pair = NULL; - Py_XDECREF(var_param); - var_param = NULL; - Py_XDECREF(var_param_m); - var_param_m = NULL; - // Re-raise. - exception_type = exception_keeper_type_5; - exception_value = exception_keeper_value_5; - exception_tb = exception_keeper_tb_5; - exception_lineno = exception_keeper_lineno_5; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - 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 || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$base_model$$$function__14__momentum_update(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *var_model_pair = NULL; - PyObject *var_param = NULL; - PyObject *var_param_m = NULL; - PyObject *tmp_for_loop_1__for_iterator = NULL; - PyObject *tmp_for_loop_1__iter_value = NULL; - PyObject *tmp_for_loop_2__for_iterator = NULL; - PyObject *tmp_for_loop_2__iter_value = NULL; - PyObject *tmp_tuple_unpack_1__element_1 = NULL; - PyObject *tmp_tuple_unpack_1__element_2 = NULL; - PyObject *tmp_tuple_unpack_1__source_iter = NULL; - struct Nuitka_FrameObject *frame_7a0e9b8ed65f5d485709ab54ee4f9399; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - PyObject *tmp_iterator_attempt; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - bool tmp_result; - PyObject *exception_keeper_type_3; - PyObject *exception_keeper_value_3; - PyTracebackObject *exception_keeper_tb_3; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; - PyObject *exception_keeper_type_4; - PyObject *exception_keeper_value_4; - PyTracebackObject *exception_keeper_tb_4; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_4; - static struct Nuitka_FrameObject *cache_frame_7a0e9b8ed65f5d485709ab54ee4f9399 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_5; - PyObject *exception_keeper_value_5; - PyTracebackObject *exception_keeper_tb_5; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_5; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_7a0e9b8ed65f5d485709ab54ee4f9399)) { - Py_XDECREF(cache_frame_7a0e9b8ed65f5d485709ab54ee4f9399); - -#if _DEBUG_REFCOUNTS - if (cache_frame_7a0e9b8ed65f5d485709ab54ee4f9399 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_7a0e9b8ed65f5d485709ab54ee4f9399 = MAKE_FUNCTION_FRAME(codeobj_7a0e9b8ed65f5d485709ab54ee4f9399, module_models$base_model, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_7a0e9b8ed65f5d485709ab54ee4f9399->m_type_description == NULL); - frame_7a0e9b8ed65f5d485709ab54ee4f9399 = cache_frame_7a0e9b8ed65f5d485709ab54ee4f9399; - - // Push the new frame as the currently active one. - pushFrameStack(frame_7a0e9b8ed65f5d485709ab54ee4f9399); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_7a0e9b8ed65f5d485709ab54ee4f9399) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_iter_arg_1; - PyObject *tmp_expression_name_1; - CHECK_OBJECT(par_self); - tmp_expression_name_1 = par_self; - tmp_iter_arg_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[68]); - if (tmp_iter_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 176; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_1 = MAKE_ITERATOR(tmp_iter_arg_1); - Py_DECREF(tmp_iter_arg_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 176; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - assert(tmp_for_loop_1__for_iterator == NULL); - tmp_for_loop_1__for_iterator = tmp_assign_source_1; - } - // Tried code: - loop_start_1:; - { - PyObject *tmp_next_source_1; - PyObject *tmp_assign_source_2; - CHECK_OBJECT(tmp_for_loop_1__for_iterator); - tmp_next_source_1 = tmp_for_loop_1__for_iterator; - tmp_assign_source_2 = ITERATOR_NEXT(tmp_next_source_1); - if (tmp_assign_source_2 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_1; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_1 = "oooo"; - exception_lineno = 176; - goto try_except_handler_2; - } - } - - { - PyObject *old = tmp_for_loop_1__iter_value; - tmp_for_loop_1__iter_value = tmp_assign_source_2; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_3; - CHECK_OBJECT(tmp_for_loop_1__iter_value); - tmp_assign_source_3 = tmp_for_loop_1__iter_value; - { - PyObject *old = var_model_pair; - var_model_pair = tmp_assign_source_3; - Py_INCREF(var_model_pair); - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_4; - PyObject *tmp_iter_arg_2; - PyObject *tmp_called_name_1; - PyObject *tmp_args_element_name_1; - PyObject *tmp_called_instance_1; - PyObject *tmp_expression_name_2; - PyObject *tmp_subscript_name_1; - PyObject *tmp_args_element_name_2; - PyObject *tmp_called_instance_2; - PyObject *tmp_expression_name_3; - PyObject *tmp_subscript_name_2; - tmp_called_name_1 = (PyObject *)&PyZip_Type; - CHECK_OBJECT(var_model_pair); - tmp_expression_name_2 = var_model_pair; - tmp_subscript_name_1 = mod_consts[45]; - tmp_called_instance_1 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_2, tmp_subscript_name_1, 0); - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 178; - type_description_1 = "oooo"; - goto try_except_handler_2; - } - frame_7a0e9b8ed65f5d485709ab54ee4f9399->m_frame.f_lineno = 178; - tmp_args_element_name_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[46]); - Py_DECREF(tmp_called_instance_1); - if (tmp_args_element_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 178; - type_description_1 = "oooo"; - goto try_except_handler_2; - } - CHECK_OBJECT(var_model_pair); - tmp_expression_name_3 = var_model_pair; - tmp_subscript_name_2 = mod_consts[47]; - tmp_called_instance_2 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_3, tmp_subscript_name_2, 1); - if (tmp_called_instance_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_args_element_name_1); - - exception_lineno = 178; - type_description_1 = "oooo"; - goto try_except_handler_2; - } - frame_7a0e9b8ed65f5d485709ab54ee4f9399->m_frame.f_lineno = 178; - tmp_args_element_name_2 = CALL_METHOD_NO_ARGS(tmp_called_instance_2, mod_consts[46]); - Py_DECREF(tmp_called_instance_2); - if (tmp_args_element_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_args_element_name_1); - - exception_lineno = 178; - type_description_1 = "oooo"; - goto try_except_handler_2; - } - frame_7a0e9b8ed65f5d485709ab54ee4f9399->m_frame.f_lineno = 177; - { - PyObject *call_args[] = {tmp_args_element_name_1, tmp_args_element_name_2}; - tmp_iter_arg_2 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_1, call_args); - } - - Py_DECREF(tmp_args_element_name_1); - Py_DECREF(tmp_args_element_name_2); - if (tmp_iter_arg_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 177; - type_description_1 = "oooo"; - goto try_except_handler_2; - } - tmp_assign_source_4 = MAKE_ITERATOR(tmp_iter_arg_2); - Py_DECREF(tmp_iter_arg_2); - if (tmp_assign_source_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 177; - type_description_1 = "oooo"; - goto try_except_handler_2; - } - { - PyObject *old = tmp_for_loop_2__for_iterator; - tmp_for_loop_2__for_iterator = tmp_assign_source_4; - Py_XDECREF(old); - } - - } - // Tried code: - loop_start_2:; - { - PyObject *tmp_next_source_2; - PyObject *tmp_assign_source_5; - CHECK_OBJECT(tmp_for_loop_2__for_iterator); - tmp_next_source_2 = tmp_for_loop_2__for_iterator; - tmp_assign_source_5 = ITERATOR_NEXT(tmp_next_source_2); - if (tmp_assign_source_5 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_2; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_1 = "oooo"; - exception_lineno = 177; - goto try_except_handler_3; - } - } - - { - PyObject *old = tmp_for_loop_2__iter_value; - tmp_for_loop_2__iter_value = tmp_assign_source_5; - Py_XDECREF(old); - } - - } - // Tried code: - { - PyObject *tmp_assign_source_6; - PyObject *tmp_iter_arg_3; - CHECK_OBJECT(tmp_for_loop_2__iter_value); - tmp_iter_arg_3 = tmp_for_loop_2__iter_value; - tmp_assign_source_6 = MAKE_UNPACK_ITERATOR(tmp_iter_arg_3); - if (tmp_assign_source_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 177; - type_description_1 = "oooo"; - goto try_except_handler_4; - } - { - PyObject *old = tmp_tuple_unpack_1__source_iter; - tmp_tuple_unpack_1__source_iter = tmp_assign_source_6; - Py_XDECREF(old); - } - - } - // Tried code: - { - PyObject *tmp_assign_source_7; - PyObject *tmp_unpack_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_1 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_7 = UNPACK_NEXT(tmp_unpack_1, 0, 2); - if (tmp_assign_source_7 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oooo"; - exception_lineno = 177; - goto try_except_handler_5; - } - { - PyObject *old = tmp_tuple_unpack_1__element_1; - tmp_tuple_unpack_1__element_1 = tmp_assign_source_7; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_8; - PyObject *tmp_unpack_2; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_2 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_8 = UNPACK_NEXT(tmp_unpack_2, 1, 2); - if (tmp_assign_source_8 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oooo"; - exception_lineno = 177; - goto try_except_handler_5; - } - { - PyObject *old = tmp_tuple_unpack_1__element_2; - tmp_tuple_unpack_1__element_2 = tmp_assign_source_8; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_iterator_name_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_iterator_name_1 = tmp_tuple_unpack_1__source_iter; - // Check if iterator has left-over elements. - CHECK_OBJECT(tmp_iterator_name_1); assert(HAS_ITERNEXT(tmp_iterator_name_1)); - - tmp_iterator_attempt = (*Py_TYPE(tmp_iterator_name_1)->tp_iternext)(tmp_iterator_name_1); - - if (likely(tmp_iterator_attempt == NULL)) { - PyObject *error = GET_ERROR_OCCURRED(); - - if (error != NULL) { - if (EXCEPTION_MATCH_BOOL_SINGLE(error, PyExc_StopIteration)) { - CLEAR_ERROR_OCCURRED(); - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - type_description_1 = "oooo"; - exception_lineno = 177; - goto try_except_handler_5; - } - } - } else { - Py_DECREF(tmp_iterator_attempt); - - exception_type = PyExc_ValueError; - Py_INCREF(PyExc_ValueError); - exception_value = mod_consts[69]; - Py_INCREF(exception_value); - exception_tb = NULL; - - type_description_1 = "oooo"; - exception_lineno = 177; - goto try_except_handler_5; - } - } - goto try_end_1; - // Exception handler code: - try_except_handler_5:; - 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; - - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - // 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 try_except_handler_4; - // End of try: - try_end_1:; - goto try_end_2; - // Exception handler code: - try_except_handler_4:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto try_except_handler_3; - // End of try: - try_end_2:; - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - { - PyObject *tmp_assign_source_9; - CHECK_OBJECT(tmp_tuple_unpack_1__element_1); - tmp_assign_source_9 = tmp_tuple_unpack_1__element_1; - { - PyObject *old = var_param; - var_param = tmp_assign_source_9; - Py_INCREF(var_param); - Py_XDECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - - { - PyObject *tmp_assign_source_10; - CHECK_OBJECT(tmp_tuple_unpack_1__element_2); - tmp_assign_source_10 = tmp_tuple_unpack_1__element_2; - { - PyObject *old = var_param_m; - var_param_m = tmp_assign_source_10; - Py_INCREF(var_param_m); - Py_XDECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_left_name_1; - PyObject *tmp_left_name_2; - PyObject *tmp_expression_name_4; - PyObject *tmp_right_name_1; - PyObject *tmp_expression_name_5; - PyObject *tmp_right_name_2; - PyObject *tmp_left_name_3; - PyObject *tmp_expression_name_6; - PyObject *tmp_right_name_3; - PyObject *tmp_left_name_4; - PyObject *tmp_right_name_4; - PyObject *tmp_expression_name_7; - PyObject *tmp_assattr_target_1; - CHECK_OBJECT(var_param_m); - tmp_expression_name_4 = var_param_m; - tmp_left_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[70]); - if (tmp_left_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 180; - type_description_1 = "oooo"; - goto try_except_handler_3; - } - if (par_self == NULL) { - Py_DECREF(tmp_left_name_2); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[58]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 180; - type_description_1 = "oooo"; - goto try_except_handler_3; - } - - tmp_expression_name_5 = par_self; - tmp_right_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_5, mod_consts[74]); - if (tmp_right_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_2); - - exception_lineno = 180; - type_description_1 = "oooo"; - goto try_except_handler_3; - } - tmp_left_name_1 = BINARY_OPERATION_MULT_OBJECT_OBJECT_OBJECT(tmp_left_name_2, tmp_right_name_1); - Py_DECREF(tmp_left_name_2); - Py_DECREF(tmp_right_name_1); - if (tmp_left_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 180; - type_description_1 = "oooo"; - goto try_except_handler_3; - } - CHECK_OBJECT(var_param); - tmp_expression_name_6 = var_param; - tmp_left_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_6, mod_consts[70]); - if (tmp_left_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_1); - - exception_lineno = 180; - type_description_1 = "oooo"; - goto try_except_handler_3; - } - tmp_left_name_4 = mod_consts[75]; - if (par_self == NULL) { - Py_DECREF(tmp_left_name_1); - Py_DECREF(tmp_left_name_3); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[58]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 181; - type_description_1 = "oooo"; - goto try_except_handler_3; - } - - tmp_expression_name_7 = par_self; - tmp_right_name_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_7, mod_consts[74]); - if (tmp_right_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_1); - Py_DECREF(tmp_left_name_3); - - exception_lineno = 181; - type_description_1 = "oooo"; - goto try_except_handler_3; - } - tmp_right_name_3 = BINARY_OPERATION_SUB_OBJECT_FLOAT_OBJECT(tmp_left_name_4, tmp_right_name_4); - Py_DECREF(tmp_right_name_4); - if (tmp_right_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_1); - Py_DECREF(tmp_left_name_3); - - exception_lineno = 181; - type_description_1 = "oooo"; - goto try_except_handler_3; - } - tmp_right_name_2 = BINARY_OPERATION_MULT_OBJECT_OBJECT_OBJECT(tmp_left_name_3, tmp_right_name_3); - Py_DECREF(tmp_left_name_3); - Py_DECREF(tmp_right_name_3); - if (tmp_right_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_1); - - exception_lineno = 180; - type_description_1 = "oooo"; - goto try_except_handler_3; - } - tmp_assattr_name_1 = BINARY_OPERATION_ADD_OBJECT_OBJECT_OBJECT(tmp_left_name_1, tmp_right_name_2); - Py_DECREF(tmp_left_name_1); - Py_DECREF(tmp_right_name_2); - if (tmp_assattr_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 180; - type_description_1 = "oooo"; - goto try_except_handler_3; - } - if (var_param_m == NULL) { - Py_DECREF(tmp_assattr_name_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[72]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 180; - type_description_1 = "oooo"; - goto try_except_handler_3; - } - - tmp_assattr_target_1 = var_param_m; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[70], tmp_assattr_name_1); - Py_DECREF(tmp_assattr_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 180; - type_description_1 = "oooo"; - goto try_except_handler_3; - } - } - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 177; - type_description_1 = "oooo"; - goto try_except_handler_3; - } - goto loop_start_2; - loop_end_2:; - goto try_end_3; - // Exception handler code: - try_except_handler_3:; - exception_keeper_type_3 = exception_type; - exception_keeper_value_3 = exception_value; - exception_keeper_tb_3 = exception_tb; - exception_keeper_lineno_3 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_for_loop_2__iter_value); - tmp_for_loop_2__iter_value = NULL; - Py_XDECREF(tmp_for_loop_2__for_iterator); - tmp_for_loop_2__for_iterator = NULL; - // Re-raise. - exception_type = exception_keeper_type_3; - exception_value = exception_keeper_value_3; - exception_tb = exception_keeper_tb_3; - exception_lineno = exception_keeper_lineno_3; - - goto try_except_handler_2; - // End of try: - try_end_3:; - Py_XDECREF(tmp_for_loop_2__iter_value); - tmp_for_loop_2__iter_value = NULL; - Py_XDECREF(tmp_for_loop_2__for_iterator); - tmp_for_loop_2__for_iterator = NULL; - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 176; - type_description_1 = "oooo"; - goto try_except_handler_2; - } - goto loop_start_1; - loop_end_1:; - goto try_end_4; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_4 = exception_type; - exception_keeper_value_4 = exception_value; - exception_keeper_tb_4 = exception_tb; - exception_keeper_lineno_4 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - // Re-raise. - exception_type = exception_keeper_type_4; - exception_value = exception_keeper_value_4; - exception_tb = exception_keeper_tb_4; - exception_lineno = exception_keeper_lineno_4; - - goto frame_exception_exit_1; - // End of try: - try_end_4:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_7a0e9b8ed65f5d485709ab54ee4f9399); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_7a0e9b8ed65f5d485709ab54ee4f9399); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_7a0e9b8ed65f5d485709ab54ee4f9399, exception_lineno); - } else if (exception_tb->tb_frame != &frame_7a0e9b8ed65f5d485709ab54ee4f9399->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_7a0e9b8ed65f5d485709ab54ee4f9399, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_7a0e9b8ed65f5d485709ab54ee4f9399, - type_description_1, - par_self, - var_model_pair, - var_param, - var_param_m - ); - - - // Release cached frame if used for exception. - if (frame_7a0e9b8ed65f5d485709ab54ee4f9399 == cache_frame_7a0e9b8ed65f5d485709ab54ee4f9399) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_7a0e9b8ed65f5d485709ab54ee4f9399); - cache_frame_7a0e9b8ed65f5d485709ab54ee4f9399 = NULL; - } - - assertFrameObject(frame_7a0e9b8ed65f5d485709ab54ee4f9399); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - tmp_return_value = Py_None; - 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:; - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(var_model_pair); - var_model_pair = NULL; - Py_XDECREF(var_param); - var_param = NULL; - Py_XDECREF(var_param_m); - var_param_m = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_5 = exception_type; - exception_keeper_value_5 = exception_value; - exception_keeper_tb_5 = exception_tb; - exception_keeper_lineno_5 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(var_model_pair); - var_model_pair = NULL; - Py_XDECREF(var_param); - var_param = NULL; - Py_XDECREF(var_param_m); - var_param_m = NULL; - // Re-raise. - exception_type = exception_keeper_type_5; - exception_value = exception_keeper_value_5; - exception_tb = exception_keeper_tb_5; - exception_lineno = exception_keeper_lineno_5; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - 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 || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$base_model$$$function__15_forward(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_ctx = python_pars[0]; - PyObject *par_x = python_pars[1]; - PyObject *var_output = NULL; - PyObject *outline_0_var__ = NULL; - PyObject *tmp_listcomp_1__$0 = NULL; - PyObject *tmp_listcomp_1__contraction = NULL; - PyObject *tmp_listcomp_1__iter_value_0 = NULL; - struct Nuitka_FrameObject *frame_52cd4a3cdc9ed073800613d10eeacfee; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - struct Nuitka_FrameObject *frame_d4679424c0c532aee63d5c7dfe50173a_2; - NUITKA_MAY_BE_UNUSED char const *type_description_2 = NULL; - bool tmp_result; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - static struct Nuitka_FrameObject *cache_frame_d4679424c0c532aee63d5c7dfe50173a_2 = NULL; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_52cd4a3cdc9ed073800613d10eeacfee = NULL; - PyObject *exception_keeper_type_3; - PyObject *exception_keeper_value_3; - PyTracebackObject *exception_keeper_tb_3; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_52cd4a3cdc9ed073800613d10eeacfee)) { - Py_XDECREF(cache_frame_52cd4a3cdc9ed073800613d10eeacfee); - -#if _DEBUG_REFCOUNTS - if (cache_frame_52cd4a3cdc9ed073800613d10eeacfee == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_52cd4a3cdc9ed073800613d10eeacfee = MAKE_FUNCTION_FRAME(codeobj_52cd4a3cdc9ed073800613d10eeacfee, module_models$base_model, sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_52cd4a3cdc9ed073800613d10eeacfee->m_type_description == NULL); - frame_52cd4a3cdc9ed073800613d10eeacfee = cache_frame_52cd4a3cdc9ed073800613d10eeacfee; - - // Push the new frame as the currently active one. - pushFrameStack(frame_52cd4a3cdc9ed073800613d10eeacfee); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_52cd4a3cdc9ed073800613d10eeacfee) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_1; - // Tried code: - { - PyObject *tmp_assign_source_2; - PyObject *tmp_iter_arg_1; - PyObject *tmp_xrange_low_1; - PyObject *tmp_called_instance_1; - PyObject *tmp_expression_name_1; - tmp_expression_name_1 = GET_STRING_DICT_VALUE(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[2]); - - if (unlikely(tmp_expression_name_1 == NULL)) { - tmp_expression_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]); - } - - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 194; - type_description_1 = "ooo"; - goto try_except_handler_2; - } - tmp_called_instance_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[76]); - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 194; - type_description_1 = "ooo"; - goto try_except_handler_2; - } - frame_52cd4a3cdc9ed073800613d10eeacfee->m_frame.f_lineno = 194; - tmp_xrange_low_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[77]); - Py_DECREF(tmp_called_instance_1); - if (tmp_xrange_low_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 194; - type_description_1 = "ooo"; - goto try_except_handler_2; - } - tmp_iter_arg_1 = BUILTIN_XRANGE1(tmp_xrange_low_1); - Py_DECREF(tmp_xrange_low_1); - if (tmp_iter_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 194; - type_description_1 = "ooo"; - goto try_except_handler_2; - } - tmp_assign_source_2 = MAKE_ITERATOR(tmp_iter_arg_1); - Py_DECREF(tmp_iter_arg_1); - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 193; - type_description_1 = "ooo"; - goto try_except_handler_2; - } - assert(tmp_listcomp_1__$0 == NULL); - tmp_listcomp_1__$0 = tmp_assign_source_2; - } - { - PyObject *tmp_assign_source_3; - tmp_assign_source_3 = PyList_New(0); - assert(tmp_listcomp_1__contraction == NULL); - tmp_listcomp_1__contraction = tmp_assign_source_3; - } - if (isFrameUnusable(cache_frame_d4679424c0c532aee63d5c7dfe50173a_2)) { - Py_XDECREF(cache_frame_d4679424c0c532aee63d5c7dfe50173a_2); - -#if _DEBUG_REFCOUNTS - if (cache_frame_d4679424c0c532aee63d5c7dfe50173a_2 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_d4679424c0c532aee63d5c7dfe50173a_2 = MAKE_FUNCTION_FRAME(codeobj_d4679424c0c532aee63d5c7dfe50173a, module_models$base_model, sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_d4679424c0c532aee63d5c7dfe50173a_2->m_type_description == NULL); - frame_d4679424c0c532aee63d5c7dfe50173a_2 = cache_frame_d4679424c0c532aee63d5c7dfe50173a_2; - - // Push the new frame as the currently active one. - pushFrameStack(frame_d4679424c0c532aee63d5c7dfe50173a_2); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_d4679424c0c532aee63d5c7dfe50173a_2) == 2); // Frame stack - - // Framed code: - // Tried code: - loop_start_1:; - { - PyObject *tmp_next_source_1; - PyObject *tmp_assign_source_4; - CHECK_OBJECT(tmp_listcomp_1__$0); - tmp_next_source_1 = tmp_listcomp_1__$0; - tmp_assign_source_4 = ITERATOR_NEXT(tmp_next_source_1); - if (tmp_assign_source_4 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_1; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_2 = "oo"; - exception_lineno = 193; - goto try_except_handler_3; - } - } - - { - PyObject *old = tmp_listcomp_1__iter_value_0; - tmp_listcomp_1__iter_value_0 = tmp_assign_source_4; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_5; - CHECK_OBJECT(tmp_listcomp_1__iter_value_0); - tmp_assign_source_5 = tmp_listcomp_1__iter_value_0; - { - PyObject *old = outline_0_var__; - outline_0_var__ = tmp_assign_source_5; - Py_INCREF(outline_0_var__); - Py_XDECREF(old); - } - - } - { - PyObject *tmp_append_list_1; - PyObject *tmp_append_value_1; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_2; - PyObject *tmp_args_element_name_1; - CHECK_OBJECT(tmp_listcomp_1__contraction); - tmp_append_list_1 = tmp_listcomp_1__contraction; - tmp_expression_name_2 = GET_STRING_DICT_VALUE(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[2]); - - if (unlikely(tmp_expression_name_2 == NULL)) { - tmp_expression_name_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]); - } - - if (tmp_expression_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 194; - type_description_2 = "oo"; - goto try_except_handler_3; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[78]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 194; - type_description_2 = "oo"; - goto try_except_handler_3; - } - if (par_x == NULL) { - Py_DECREF(tmp_called_name_1); - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[79]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 194; - type_description_2 = "oo"; - goto try_except_handler_3; - } - - tmp_args_element_name_1 = par_x; - frame_d4679424c0c532aee63d5c7dfe50173a_2->m_frame.f_lineno = 194; - tmp_append_value_1 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_1, tmp_args_element_name_1); - Py_DECREF(tmp_called_name_1); - if (tmp_append_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 194; - type_description_2 = "oo"; - goto try_except_handler_3; - } - assert(PyList_Check(tmp_append_list_1)); - tmp_result = LIST_APPEND1(tmp_append_list_1, tmp_append_value_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 193; - type_description_2 = "oo"; - goto try_except_handler_3; - } - } - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 193; - type_description_2 = "oo"; - goto try_except_handler_3; - } - goto loop_start_1; - loop_end_1:; - CHECK_OBJECT(tmp_listcomp_1__contraction); - tmp_assign_source_1 = tmp_listcomp_1__contraction; - Py_INCREF(tmp_assign_source_1); - goto try_return_handler_3; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_3:; - Py_XDECREF(tmp_listcomp_1__$0); - tmp_listcomp_1__$0 = NULL; - CHECK_OBJECT(tmp_listcomp_1__contraction); - Py_DECREF(tmp_listcomp_1__contraction); - tmp_listcomp_1__contraction = NULL; - Py_XDECREF(tmp_listcomp_1__iter_value_0); - tmp_listcomp_1__iter_value_0 = NULL; - goto frame_return_exit_2; - // Exception handler code: - try_except_handler_3:; - 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; - - Py_XDECREF(tmp_listcomp_1__$0); - tmp_listcomp_1__$0 = NULL; - CHECK_OBJECT(tmp_listcomp_1__contraction); - Py_DECREF(tmp_listcomp_1__contraction); - tmp_listcomp_1__contraction = NULL; - Py_XDECREF(tmp_listcomp_1__iter_value_0); - tmp_listcomp_1__iter_value_0 = NULL; - // 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 frame_exception_exit_2; - // End of try: - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_d4679424c0c532aee63d5c7dfe50173a_2); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_2:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_d4679424c0c532aee63d5c7dfe50173a_2); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_2; - - frame_exception_exit_2:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_d4679424c0c532aee63d5c7dfe50173a_2); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_d4679424c0c532aee63d5c7dfe50173a_2, exception_lineno); - } else if (exception_tb->tb_frame != &frame_d4679424c0c532aee63d5c7dfe50173a_2->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_d4679424c0c532aee63d5c7dfe50173a_2, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_d4679424c0c532aee63d5c7dfe50173a_2, - type_description_2, - outline_0_var__, - par_x - ); - - - // Release cached frame if used for exception. - if (frame_d4679424c0c532aee63d5c7dfe50173a_2 == cache_frame_d4679424c0c532aee63d5c7dfe50173a_2) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_d4679424c0c532aee63d5c7dfe50173a_2); - cache_frame_d4679424c0c532aee63d5c7dfe50173a_2 = NULL; - } - - assertFrameObject(frame_d4679424c0c532aee63d5c7dfe50173a_2); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_1; - - frame_no_exception_1:; - goto skip_nested_handling_1; - nested_frame_exit_1:; - type_description_1 = "ooo"; - goto try_except_handler_2; - skip_nested_handling_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_2:; - Py_XDECREF(outline_0_var__); - outline_0_var__ = NULL; - goto outline_result_1; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(outline_0_var__); - outline_0_var__ = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto outline_exception_1; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_1:; - exception_lineno = 193; - goto frame_exception_exit_1; - outline_result_1:; - assert(var_output == NULL); - var_output = tmp_assign_source_1; - } - { - PyObject *tmp_called_name_2; - PyObject *tmp_expression_name_3; - PyObject *tmp_expression_name_4; - PyObject *tmp_call_result_1; - PyObject *tmp_args_element_name_2; - PyObject *tmp_args_element_name_3; - tmp_expression_name_4 = GET_STRING_DICT_VALUE(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[2]); - - if (unlikely(tmp_expression_name_4 == NULL)) { - tmp_expression_name_4 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]); - } - - if (tmp_expression_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 196; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_expression_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[76]); - if (tmp_expression_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 196; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[80]); - Py_DECREF(tmp_expression_name_3); - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 196; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_output); - tmp_args_element_name_2 = var_output; - if (par_x == NULL) { - Py_DECREF(tmp_called_name_2); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[79]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 196; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_3 = par_x; - frame_52cd4a3cdc9ed073800613d10eeacfee->m_frame.f_lineno = 196; - { - PyObject *call_args[] = {tmp_args_element_name_2, tmp_args_element_name_3}; - tmp_call_result_1 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_2, call_args); - } - - Py_DECREF(tmp_called_name_2); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 196; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - { - PyObject *tmp_tuple_arg_1; - if (var_output == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[81]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 197; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - - tmp_tuple_arg_1 = var_output; - tmp_return_value = PySequence_Tuple(tmp_tuple_arg_1); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 197; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_52cd4a3cdc9ed073800613d10eeacfee); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_2; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_52cd4a3cdc9ed073800613d10eeacfee); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_52cd4a3cdc9ed073800613d10eeacfee); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_52cd4a3cdc9ed073800613d10eeacfee, exception_lineno); - } else if (exception_tb->tb_frame != &frame_52cd4a3cdc9ed073800613d10eeacfee->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_52cd4a3cdc9ed073800613d10eeacfee, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_52cd4a3cdc9ed073800613d10eeacfee, - type_description_1, - par_ctx, - par_x, - var_output - ); - - - // Release cached frame if used for exception. - if (frame_52cd4a3cdc9ed073800613d10eeacfee == cache_frame_52cd4a3cdc9ed073800613d10eeacfee) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_52cd4a3cdc9ed073800613d10eeacfee); - cache_frame_52cd4a3cdc9ed073800613d10eeacfee = NULL; - } - - assertFrameObject(frame_52cd4a3cdc9ed073800613d10eeacfee); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_2:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_ctx); - Py_DECREF(par_ctx); - par_ctx = NULL; - Py_XDECREF(par_x); - par_x = NULL; - Py_XDECREF(var_output); - var_output = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_3 = exception_type; - exception_keeper_value_3 = exception_value; - exception_keeper_tb_3 = exception_tb; - exception_keeper_lineno_3 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_ctx); - Py_DECREF(par_ctx); - par_ctx = NULL; - Py_XDECREF(par_x); - par_x = NULL; - Py_XDECREF(var_output); - var_output = NULL; - // Re-raise. - exception_type = exception_keeper_type_3; - exception_value = exception_keeper_value_3; - exception_tb = exception_keeper_tb_3; - exception_lineno = exception_keeper_lineno_3; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - 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 || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$base_model$$$function__16_backward(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_ctx = python_pars[0]; - PyObject *par_grads = python_pars[1]; - PyObject *var_all_gradients = NULL; - struct Nuitka_FrameObject *frame_0b56832b17e824e3961db8ea96339fc7; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_0b56832b17e824e3961db8ea96339fc7 = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_0b56832b17e824e3961db8ea96339fc7)) { - Py_XDECREF(cache_frame_0b56832b17e824e3961db8ea96339fc7); - -#if _DEBUG_REFCOUNTS - if (cache_frame_0b56832b17e824e3961db8ea96339fc7 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_0b56832b17e824e3961db8ea96339fc7 = MAKE_FUNCTION_FRAME(codeobj_0b56832b17e824e3961db8ea96339fc7, module_models$base_model, sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_0b56832b17e824e3961db8ea96339fc7->m_type_description == NULL); - frame_0b56832b17e824e3961db8ea96339fc7 = cache_frame_0b56832b17e824e3961db8ea96339fc7; - - // Push the new frame as the currently active one. - pushFrameStack(frame_0b56832b17e824e3961db8ea96339fc7); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_0b56832b17e824e3961db8ea96339fc7) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_called_instance_1; - PyObject *tmp_args_element_name_1; - tmp_called_instance_1 = GET_STRING_DICT_VALUE(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[2]); - - if (unlikely(tmp_called_instance_1 == NULL)) { - tmp_called_instance_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]); - } - - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 201; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_grads); - tmp_args_element_name_1 = par_grads; - frame_0b56832b17e824e3961db8ea96339fc7->m_frame.f_lineno = 201; - tmp_assign_source_1 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_1, mod_consts[82], tmp_args_element_name_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 201; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - assert(var_all_gradients == NULL); - var_all_gradients = tmp_assign_source_1; - } - { - PyObject *tmp_called_instance_2; - PyObject *tmp_expression_name_1; - PyObject *tmp_call_result_1; - PyObject *tmp_args_element_name_2; - tmp_expression_name_1 = GET_STRING_DICT_VALUE(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[2]); - - if (unlikely(tmp_expression_name_1 == NULL)) { - tmp_expression_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]); - } - - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 202; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_called_instance_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[76]); - if (tmp_called_instance_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 202; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_all_gradients); - tmp_args_element_name_2 = var_all_gradients; - frame_0b56832b17e824e3961db8ea96339fc7->m_frame.f_lineno = 202; - tmp_call_result_1 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_2, mod_consts[83], tmp_args_element_name_2); - Py_DECREF(tmp_called_instance_2); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 202; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - { - PyObject *tmp_expression_name_2; - PyObject *tmp_subscript_name_1; - PyObject *tmp_called_instance_3; - PyObject *tmp_expression_name_3; - if (var_all_gradients == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[84]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 203; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_2 = var_all_gradients; - tmp_expression_name_3 = GET_STRING_DICT_VALUE(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[2]); - - if (unlikely(tmp_expression_name_3 == NULL)) { - tmp_expression_name_3 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]); - } - - if (tmp_expression_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 203; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_called_instance_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[76]); - if (tmp_called_instance_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 203; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - frame_0b56832b17e824e3961db8ea96339fc7->m_frame.f_lineno = 203; - tmp_subscript_name_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_3, mod_consts[85]); - Py_DECREF(tmp_called_instance_3); - if (tmp_subscript_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 203; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_return_value = LOOKUP_SUBSCRIPT(tmp_expression_name_2, tmp_subscript_name_1); - Py_DECREF(tmp_subscript_name_1); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 203; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_0b56832b17e824e3961db8ea96339fc7); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_0b56832b17e824e3961db8ea96339fc7); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_0b56832b17e824e3961db8ea96339fc7); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_0b56832b17e824e3961db8ea96339fc7, exception_lineno); - } else if (exception_tb->tb_frame != &frame_0b56832b17e824e3961db8ea96339fc7->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_0b56832b17e824e3961db8ea96339fc7, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_0b56832b17e824e3961db8ea96339fc7, - type_description_1, - par_ctx, - par_grads, - var_all_gradients - ); - - - // Release cached frame if used for exception. - if (frame_0b56832b17e824e3961db8ea96339fc7 == cache_frame_0b56832b17e824e3961db8ea96339fc7) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_0b56832b17e824e3961db8ea96339fc7); - cache_frame_0b56832b17e824e3961db8ea96339fc7 = NULL; - } - - assertFrameObject(frame_0b56832b17e824e3961db8ea96339fc7); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_ctx); - Py_DECREF(par_ctx); - par_ctx = NULL; - Py_XDECREF(par_grads); - par_grads = NULL; - Py_XDECREF(var_all_gradients); - var_all_gradients = NULL; - 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; - - CHECK_OBJECT(par_ctx); - Py_DECREF(par_ctx); - par_ctx = NULL; - Py_XDECREF(par_grads); - par_grads = NULL; - Py_XDECREF(var_all_gradients); - var_all_gradients = NULL; - // 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."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - 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 || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$base_model$$$function__17_all_gather_with_grad(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_tensors = python_pars[0]; - PyObject *var_world_size = NULL; - PyObject *var_tensor_all = NULL; - struct Nuitka_FrameObject *frame_a1193c5a2efa4e8420ff62b0905f950b; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_a1193c5a2efa4e8420ff62b0905f950b = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_a1193c5a2efa4e8420ff62b0905f950b)) { - Py_XDECREF(cache_frame_a1193c5a2efa4e8420ff62b0905f950b); - -#if _DEBUG_REFCOUNTS - if (cache_frame_a1193c5a2efa4e8420ff62b0905f950b == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_a1193c5a2efa4e8420ff62b0905f950b = MAKE_FUNCTION_FRAME(codeobj_a1193c5a2efa4e8420ff62b0905f950b, module_models$base_model, sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_a1193c5a2efa4e8420ff62b0905f950b->m_type_description == NULL); - frame_a1193c5a2efa4e8420ff62b0905f950b = cache_frame_a1193c5a2efa4e8420ff62b0905f950b; - - // Push the new frame as the currently active one. - pushFrameStack(frame_a1193c5a2efa4e8420ff62b0905f950b); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_a1193c5a2efa4e8420ff62b0905f950b) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_called_instance_1; - PyObject *tmp_expression_name_1; - tmp_expression_name_1 = GET_STRING_DICT_VALUE(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[2]); - - if (unlikely(tmp_expression_name_1 == NULL)) { - tmp_expression_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]); - } - - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 212; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_called_instance_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[76]); - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 212; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - frame_a1193c5a2efa4e8420ff62b0905f950b->m_frame.f_lineno = 212; - tmp_assign_source_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[77]); - Py_DECREF(tmp_called_instance_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 212; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - assert(var_world_size == NULL); - var_world_size = tmp_assign_source_1; - } - { - nuitka_bool tmp_condition_result_1; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - PyObject *tmp_tmp_condition_result_1_object_1; - int tmp_truth_name_1; - CHECK_OBJECT(var_world_size); - tmp_compexpr_left_1 = var_world_size; - tmp_compexpr_right_1 = mod_consts[47]; - tmp_tmp_condition_result_1_object_1 = RICH_COMPARE_EQ_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_1, tmp_compexpr_right_1); - if (tmp_tmp_condition_result_1_object_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 214; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_truth_name_1 = CHECK_IF_TRUE(tmp_tmp_condition_result_1_object_1); - if (tmp_truth_name_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_tmp_condition_result_1_object_1); - - exception_lineno = 214; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_1 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - Py_DECREF(tmp_tmp_condition_result_1_object_1); - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - CHECK_OBJECT(par_tensors); - tmp_return_value = par_tensors; - Py_INCREF(tmp_return_value); - goto frame_return_exit_1; - branch_no_1:; - { - PyObject *tmp_assign_source_2; - PyObject *tmp_called_instance_2; - PyObject *tmp_args_element_name_1; - tmp_called_instance_2 = GET_STRING_DICT_VALUE(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[86]); - - if (unlikely(tmp_called_instance_2 == NULL)) { - tmp_called_instance_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[86]); - } - - if (tmp_called_instance_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 218; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_tensors); - tmp_args_element_name_1 = par_tensors; - frame_a1193c5a2efa4e8420ff62b0905f950b->m_frame.f_lineno = 218; - tmp_assign_source_2 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_2, mod_consts[87], tmp_args_element_name_1); - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 218; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - assert(var_tensor_all == NULL); - var_tensor_all = tmp_assign_source_2; - } - { - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_2; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_kwargs_name_1; - tmp_expression_name_2 = GET_STRING_DICT_VALUE(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[2]); - - if (unlikely(tmp_expression_name_2 == NULL)) { - tmp_expression_name_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]); - } - - if (tmp_expression_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 220; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[88]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 220; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_tensor_all); - tmp_tuple_element_1 = var_tensor_all; - tmp_args_name_1 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_args_name_1, 0, tmp_tuple_element_1); - tmp_kwargs_name_1 = PyDict_Copy(mod_consts[89]); - frame_a1193c5a2efa4e8420ff62b0905f950b->m_frame.f_lineno = 220; - tmp_return_value = CALL_FUNCTION(tmp_called_name_1, tmp_args_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 220; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_a1193c5a2efa4e8420ff62b0905f950b); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_a1193c5a2efa4e8420ff62b0905f950b); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_a1193c5a2efa4e8420ff62b0905f950b); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_a1193c5a2efa4e8420ff62b0905f950b, exception_lineno); - } else if (exception_tb->tb_frame != &frame_a1193c5a2efa4e8420ff62b0905f950b->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_a1193c5a2efa4e8420ff62b0905f950b, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_a1193c5a2efa4e8420ff62b0905f950b, - type_description_1, - par_tensors, - var_world_size, - var_tensor_all - ); - - - // Release cached frame if used for exception. - if (frame_a1193c5a2efa4e8420ff62b0905f950b == cache_frame_a1193c5a2efa4e8420ff62b0905f950b) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_a1193c5a2efa4e8420ff62b0905f950b); - cache_frame_a1193c5a2efa4e8420ff62b0905f950b = NULL; - } - - assertFrameObject(frame_a1193c5a2efa4e8420ff62b0905f950b); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_tensors); - par_tensors = NULL; - CHECK_OBJECT(var_world_size); - Py_DECREF(var_world_size); - var_world_size = NULL; - Py_XDECREF(var_tensor_all); - var_tensor_all = NULL; - 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; - - Py_XDECREF(par_tensors); - par_tensors = NULL; - Py_XDECREF(var_world_size); - var_world_size = NULL; - Py_XDECREF(var_tensor_all); - var_tensor_all = NULL; - // 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."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - 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 || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$base_model$$$function__18_concat_all_gather(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_tensor = python_pars[0]; - PyObject *var_tensors_gather = NULL; - PyObject *var_output = NULL; - PyObject *outline_0_var__ = NULL; - PyObject *tmp_listcomp_1__$0 = NULL; - PyObject *tmp_listcomp_1__contraction = NULL; - PyObject *tmp_listcomp_1__iter_value_0 = NULL; - struct Nuitka_FrameObject *frame_d8bb50cdd0a01bbe722c9ae9bf67afe9; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - int tmp_res; - PyObject *tmp_return_value = NULL; - struct Nuitka_FrameObject *frame_88fb76029dafdffb63b52d1203b590ab_2; - NUITKA_MAY_BE_UNUSED char const *type_description_2 = NULL; - bool tmp_result; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - static struct Nuitka_FrameObject *cache_frame_88fb76029dafdffb63b52d1203b590ab_2 = NULL; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - static struct Nuitka_FrameObject *cache_frame_d8bb50cdd0a01bbe722c9ae9bf67afe9 = NULL; - PyObject *exception_keeper_type_3; - PyObject *exception_keeper_value_3; - PyTracebackObject *exception_keeper_tb_3; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_d8bb50cdd0a01bbe722c9ae9bf67afe9)) { - Py_XDECREF(cache_frame_d8bb50cdd0a01bbe722c9ae9bf67afe9); - -#if _DEBUG_REFCOUNTS - if (cache_frame_d8bb50cdd0a01bbe722c9ae9bf67afe9 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_d8bb50cdd0a01bbe722c9ae9bf67afe9 = MAKE_FUNCTION_FRAME(codeobj_d8bb50cdd0a01bbe722c9ae9bf67afe9, module_models$base_model, sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_d8bb50cdd0a01bbe722c9ae9bf67afe9->m_type_description == NULL); - frame_d8bb50cdd0a01bbe722c9ae9bf67afe9 = cache_frame_d8bb50cdd0a01bbe722c9ae9bf67afe9; - - // Push the new frame as the currently active one. - pushFrameStack(frame_d8bb50cdd0a01bbe722c9ae9bf67afe9); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_d8bb50cdd0a01bbe722c9ae9bf67afe9) == 2); // Frame stack - - // Framed code: - { - nuitka_bool tmp_condition_result_1; - PyObject *tmp_operand_name_1; - PyObject *tmp_called_name_1; - tmp_called_name_1 = GET_STRING_DICT_VALUE(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[91]); - - if (unlikely(tmp_called_name_1 == NULL)) { - tmp_called_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[91]); - } - - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 230; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - frame_d8bb50cdd0a01bbe722c9ae9bf67afe9->m_frame.f_lineno = 230; - tmp_operand_name_1 = CALL_FUNCTION_NO_ARGS(tmp_called_name_1); - if (tmp_operand_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 230; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_res = CHECK_IF_TRUE(tmp_operand_name_1); - Py_DECREF(tmp_operand_name_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 230; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_1 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - CHECK_OBJECT(par_tensor); - tmp_return_value = par_tensor; - Py_INCREF(tmp_return_value); - goto frame_return_exit_1; - branch_no_1:; - { - PyObject *tmp_assign_source_1; - // Tried code: - { - PyObject *tmp_assign_source_2; - PyObject *tmp_iter_arg_1; - PyObject *tmp_xrange_low_1; - PyObject *tmp_called_instance_1; - PyObject *tmp_expression_name_1; - tmp_expression_name_1 = GET_STRING_DICT_VALUE(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[2]); - - if (unlikely(tmp_expression_name_1 == NULL)) { - tmp_expression_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]); - } - - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 234; - type_description_1 = "ooo"; - goto try_except_handler_2; - } - tmp_called_instance_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[76]); - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 234; - type_description_1 = "ooo"; - goto try_except_handler_2; - } - frame_d8bb50cdd0a01bbe722c9ae9bf67afe9->m_frame.f_lineno = 234; - tmp_xrange_low_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[77]); - Py_DECREF(tmp_called_instance_1); - if (tmp_xrange_low_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 234; - type_description_1 = "ooo"; - goto try_except_handler_2; - } - tmp_iter_arg_1 = BUILTIN_XRANGE1(tmp_xrange_low_1); - Py_DECREF(tmp_xrange_low_1); - if (tmp_iter_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 234; - type_description_1 = "ooo"; - goto try_except_handler_2; - } - tmp_assign_source_2 = MAKE_ITERATOR(tmp_iter_arg_1); - Py_DECREF(tmp_iter_arg_1); - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 233; - type_description_1 = "ooo"; - goto try_except_handler_2; - } - assert(tmp_listcomp_1__$0 == NULL); - tmp_listcomp_1__$0 = tmp_assign_source_2; - } - { - PyObject *tmp_assign_source_3; - tmp_assign_source_3 = PyList_New(0); - assert(tmp_listcomp_1__contraction == NULL); - tmp_listcomp_1__contraction = tmp_assign_source_3; - } - if (isFrameUnusable(cache_frame_88fb76029dafdffb63b52d1203b590ab_2)) { - Py_XDECREF(cache_frame_88fb76029dafdffb63b52d1203b590ab_2); - -#if _DEBUG_REFCOUNTS - if (cache_frame_88fb76029dafdffb63b52d1203b590ab_2 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_88fb76029dafdffb63b52d1203b590ab_2 = MAKE_FUNCTION_FRAME(codeobj_88fb76029dafdffb63b52d1203b590ab, module_models$base_model, sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_88fb76029dafdffb63b52d1203b590ab_2->m_type_description == NULL); - frame_88fb76029dafdffb63b52d1203b590ab_2 = cache_frame_88fb76029dafdffb63b52d1203b590ab_2; - - // Push the new frame as the currently active one. - pushFrameStack(frame_88fb76029dafdffb63b52d1203b590ab_2); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_88fb76029dafdffb63b52d1203b590ab_2) == 2); // Frame stack - - // Framed code: - // Tried code: - loop_start_1:; - { - PyObject *tmp_next_source_1; - PyObject *tmp_assign_source_4; - CHECK_OBJECT(tmp_listcomp_1__$0); - tmp_next_source_1 = tmp_listcomp_1__$0; - tmp_assign_source_4 = ITERATOR_NEXT(tmp_next_source_1); - if (tmp_assign_source_4 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_1; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_2 = "oo"; - exception_lineno = 233; - goto try_except_handler_3; - } - } - - { - PyObject *old = tmp_listcomp_1__iter_value_0; - tmp_listcomp_1__iter_value_0 = tmp_assign_source_4; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_5; - CHECK_OBJECT(tmp_listcomp_1__iter_value_0); - tmp_assign_source_5 = tmp_listcomp_1__iter_value_0; - { - PyObject *old = outline_0_var__; - outline_0_var__ = tmp_assign_source_5; - Py_INCREF(outline_0_var__); - Py_XDECREF(old); - } - - } - { - PyObject *tmp_append_list_1; - PyObject *tmp_append_value_1; - PyObject *tmp_called_name_2; - PyObject *tmp_expression_name_2; - PyObject *tmp_args_element_name_1; - CHECK_OBJECT(tmp_listcomp_1__contraction); - tmp_append_list_1 = tmp_listcomp_1__contraction; - tmp_expression_name_2 = GET_STRING_DICT_VALUE(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[2]); - - if (unlikely(tmp_expression_name_2 == NULL)) { - tmp_expression_name_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]); - } - - if (tmp_expression_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 234; - type_description_2 = "oo"; - goto try_except_handler_3; - } - tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[92]); - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 234; - type_description_2 = "oo"; - goto try_except_handler_3; - } - if (par_tensor == NULL) { - Py_DECREF(tmp_called_name_2); - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[93]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 234; - type_description_2 = "oo"; - goto try_except_handler_3; - } - - tmp_args_element_name_1 = par_tensor; - frame_88fb76029dafdffb63b52d1203b590ab_2->m_frame.f_lineno = 234; - tmp_append_value_1 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_2, tmp_args_element_name_1); - Py_DECREF(tmp_called_name_2); - if (tmp_append_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 234; - type_description_2 = "oo"; - goto try_except_handler_3; - } - assert(PyList_Check(tmp_append_list_1)); - tmp_result = LIST_APPEND1(tmp_append_list_1, tmp_append_value_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 233; - type_description_2 = "oo"; - goto try_except_handler_3; - } - } - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 233; - type_description_2 = "oo"; - goto try_except_handler_3; - } - goto loop_start_1; - loop_end_1:; - CHECK_OBJECT(tmp_listcomp_1__contraction); - tmp_assign_source_1 = tmp_listcomp_1__contraction; - Py_INCREF(tmp_assign_source_1); - goto try_return_handler_3; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_3:; - Py_XDECREF(tmp_listcomp_1__$0); - tmp_listcomp_1__$0 = NULL; - CHECK_OBJECT(tmp_listcomp_1__contraction); - Py_DECREF(tmp_listcomp_1__contraction); - tmp_listcomp_1__contraction = NULL; - Py_XDECREF(tmp_listcomp_1__iter_value_0); - tmp_listcomp_1__iter_value_0 = NULL; - goto frame_return_exit_2; - // Exception handler code: - try_except_handler_3:; - 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; - - Py_XDECREF(tmp_listcomp_1__$0); - tmp_listcomp_1__$0 = NULL; - CHECK_OBJECT(tmp_listcomp_1__contraction); - Py_DECREF(tmp_listcomp_1__contraction); - tmp_listcomp_1__contraction = NULL; - Py_XDECREF(tmp_listcomp_1__iter_value_0); - tmp_listcomp_1__iter_value_0 = NULL; - // 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 frame_exception_exit_2; - // End of try: - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_88fb76029dafdffb63b52d1203b590ab_2); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_2:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_88fb76029dafdffb63b52d1203b590ab_2); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_2; - - frame_exception_exit_2:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_88fb76029dafdffb63b52d1203b590ab_2); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_88fb76029dafdffb63b52d1203b590ab_2, exception_lineno); - } else if (exception_tb->tb_frame != &frame_88fb76029dafdffb63b52d1203b590ab_2->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_88fb76029dafdffb63b52d1203b590ab_2, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_88fb76029dafdffb63b52d1203b590ab_2, - type_description_2, - outline_0_var__, - par_tensor - ); - - - // Release cached frame if used for exception. - if (frame_88fb76029dafdffb63b52d1203b590ab_2 == cache_frame_88fb76029dafdffb63b52d1203b590ab_2) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_88fb76029dafdffb63b52d1203b590ab_2); - cache_frame_88fb76029dafdffb63b52d1203b590ab_2 = NULL; - } - - assertFrameObject(frame_88fb76029dafdffb63b52d1203b590ab_2); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_1; - - frame_no_exception_1:; - goto skip_nested_handling_1; - nested_frame_exit_1:; - type_description_1 = "ooo"; - goto try_except_handler_2; - skip_nested_handling_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_2:; - Py_XDECREF(outline_0_var__); - outline_0_var__ = NULL; - goto outline_result_1; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(outline_0_var__); - outline_0_var__ = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto outline_exception_1; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_1:; - exception_lineno = 233; - goto frame_exception_exit_1; - outline_result_1:; - assert(var_tensors_gather == NULL); - var_tensors_gather = tmp_assign_source_1; - } - { - PyObject *tmp_called_name_3; - PyObject *tmp_expression_name_3; - PyObject *tmp_expression_name_4; - PyObject *tmp_call_result_1; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_kwargs_name_1; - tmp_expression_name_4 = GET_STRING_DICT_VALUE(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[2]); - - if (unlikely(tmp_expression_name_4 == NULL)) { - tmp_expression_name_4 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]); - } - - if (tmp_expression_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 236; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_expression_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[76]); - if (tmp_expression_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 236; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_called_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[80]); - Py_DECREF(tmp_expression_name_3); - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 236; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_tensors_gather); - tmp_tuple_element_1 = var_tensors_gather; - tmp_args_name_1 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_1, 0, tmp_tuple_element_1); - if (par_tensor == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[93]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 236; - type_description_1 = "ooo"; - goto tuple_build_exception_1; - } - - tmp_tuple_element_1 = par_tensor; - PyTuple_SET_ITEM0(tmp_args_name_1, 1, tmp_tuple_element_1); - goto tuple_build_noexception_1; - // Exception handling pass through code for tuple_build: - tuple_build_exception_1:; - Py_DECREF(tmp_called_name_3); - Py_DECREF(tmp_args_name_1); - goto frame_exception_exit_1; - // Finished with no exception for tuple_build: - tuple_build_noexception_1:; - tmp_kwargs_name_1 = PyDict_Copy(mod_consts[94]); - frame_d8bb50cdd0a01bbe722c9ae9bf67afe9->m_frame.f_lineno = 236; - tmp_call_result_1 = CALL_FUNCTION(tmp_called_name_3, tmp_args_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_3); - Py_DECREF(tmp_args_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 236; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - { - PyObject *tmp_assign_source_6; - PyObject *tmp_called_name_4; - PyObject *tmp_expression_name_5; - PyObject *tmp_args_name_2; - PyObject *tmp_tuple_element_2; - PyObject *tmp_kwargs_name_2; - tmp_expression_name_5 = GET_STRING_DICT_VALUE(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[2]); - - if (unlikely(tmp_expression_name_5 == NULL)) { - tmp_expression_name_5 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]); - } - - if (tmp_expression_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 238; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_called_name_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_5, mod_consts[88]); - if (tmp_called_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 238; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - if (var_tensors_gather == NULL) { - Py_DECREF(tmp_called_name_4); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[95]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 238; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - - tmp_tuple_element_2 = var_tensors_gather; - tmp_args_name_2 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_args_name_2, 0, tmp_tuple_element_2); - tmp_kwargs_name_2 = PyDict_Copy(mod_consts[89]); - frame_d8bb50cdd0a01bbe722c9ae9bf67afe9->m_frame.f_lineno = 238; - tmp_assign_source_6 = CALL_FUNCTION(tmp_called_name_4, tmp_args_name_2, tmp_kwargs_name_2); - Py_DECREF(tmp_called_name_4); - Py_DECREF(tmp_args_name_2); - Py_DECREF(tmp_kwargs_name_2); - if (tmp_assign_source_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 238; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - assert(var_output == NULL); - var_output = tmp_assign_source_6; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_d8bb50cdd0a01bbe722c9ae9bf67afe9); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_2; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_d8bb50cdd0a01bbe722c9ae9bf67afe9); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_d8bb50cdd0a01bbe722c9ae9bf67afe9); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_d8bb50cdd0a01bbe722c9ae9bf67afe9, exception_lineno); - } else if (exception_tb->tb_frame != &frame_d8bb50cdd0a01bbe722c9ae9bf67afe9->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_d8bb50cdd0a01bbe722c9ae9bf67afe9, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_d8bb50cdd0a01bbe722c9ae9bf67afe9, - type_description_1, - par_tensor, - var_tensors_gather, - var_output - ); - - - // Release cached frame if used for exception. - if (frame_d8bb50cdd0a01bbe722c9ae9bf67afe9 == cache_frame_d8bb50cdd0a01bbe722c9ae9bf67afe9) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_d8bb50cdd0a01bbe722c9ae9bf67afe9); - cache_frame_d8bb50cdd0a01bbe722c9ae9bf67afe9 = NULL; - } - - assertFrameObject(frame_d8bb50cdd0a01bbe722c9ae9bf67afe9); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_2:; - CHECK_OBJECT(var_output); - tmp_return_value = var_output; - 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:; - Py_XDECREF(par_tensor); - par_tensor = NULL; - Py_XDECREF(var_tensors_gather); - var_tensors_gather = NULL; - Py_XDECREF(var_output); - var_output = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_3 = exception_type; - exception_keeper_value_3 = exception_value; - exception_keeper_tb_3 = exception_tb; - exception_keeper_lineno_3 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_tensor); - par_tensor = NULL; - Py_XDECREF(var_tensors_gather); - var_tensors_gather = NULL; - // Re-raise. - exception_type = exception_keeper_type_3; - exception_value = exception_keeper_value_3; - exception_tb = exception_keeper_tb_3; - exception_lineno = exception_keeper_lineno_3; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - 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 || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$base_model$$$function__19_tile(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_x = python_pars[0]; - PyObject *par_dim = python_pars[1]; - PyObject *par_n_tile = python_pars[2]; - PyObject *var_init_dim = NULL; - PyObject *var_repeat_idx = NULL; - PyObject *var_order_index = NULL; - PyObject *outline_0_var_i = NULL; - PyObject *tmp_listcomp_1__$0 = NULL; - PyObject *tmp_listcomp_1__contraction = NULL; - PyObject *tmp_listcomp_1__iter_value_0 = NULL; - struct Nuitka_FrameObject *frame_e5dd198ac569e0b6dd733a992ab7706f; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - bool tmp_result; - struct Nuitka_FrameObject *frame_be04ffc70de33534e233bcc063a2873b_2; - NUITKA_MAY_BE_UNUSED char const *type_description_2 = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - static struct Nuitka_FrameObject *cache_frame_be04ffc70de33534e233bcc063a2873b_2 = NULL; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_e5dd198ac569e0b6dd733a992ab7706f = NULL; - PyObject *exception_keeper_type_3; - PyObject *exception_keeper_value_3; - PyTracebackObject *exception_keeper_tb_3; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_e5dd198ac569e0b6dd733a992ab7706f)) { - Py_XDECREF(cache_frame_e5dd198ac569e0b6dd733a992ab7706f); - -#if _DEBUG_REFCOUNTS - if (cache_frame_e5dd198ac569e0b6dd733a992ab7706f == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_e5dd198ac569e0b6dd733a992ab7706f = MAKE_FUNCTION_FRAME(codeobj_e5dd198ac569e0b6dd733a992ab7706f, module_models$base_model, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_e5dd198ac569e0b6dd733a992ab7706f->m_type_description == NULL); - frame_e5dd198ac569e0b6dd733a992ab7706f = cache_frame_e5dd198ac569e0b6dd733a992ab7706f; - - // Push the new frame as the currently active one. - pushFrameStack(frame_e5dd198ac569e0b6dd733a992ab7706f); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_e5dd198ac569e0b6dd733a992ab7706f) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_called_instance_1; - PyObject *tmp_args_element_name_1; - CHECK_OBJECT(par_x); - tmp_called_instance_1 = par_x; - CHECK_OBJECT(par_dim); - tmp_args_element_name_1 = par_dim; - frame_e5dd198ac569e0b6dd733a992ab7706f->m_frame.f_lineno = 243; - tmp_assign_source_1 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_1, mod_consts[97], tmp_args_element_name_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 243; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - assert(var_init_dim == NULL); - var_init_dim = tmp_assign_source_1; - } - { - PyObject *tmp_assign_source_2; - PyObject *tmp_left_name_1; - PyObject *tmp_right_name_1; - PyObject *tmp_called_instance_2; - tmp_left_name_1 = LIST_COPY(mod_consts[98]); - if (par_x == NULL) { - Py_DECREF(tmp_left_name_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[79]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 244; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_2 = par_x; - frame_e5dd198ac569e0b6dd733a992ab7706f->m_frame.f_lineno = 244; - tmp_right_name_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_2, mod_consts[99]); - if (tmp_right_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_1); - - exception_lineno = 244; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_2 = BINARY_OPERATION_MULT_OBJECT_LIST_OBJECT(tmp_left_name_1, tmp_right_name_1); - Py_DECREF(tmp_left_name_1); - Py_DECREF(tmp_right_name_1); - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 244; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - assert(var_repeat_idx == NULL); - var_repeat_idx = tmp_assign_source_2; - } - { - PyObject *tmp_ass_subvalue_1; - PyObject *tmp_ass_subscribed_1; - PyObject *tmp_ass_subscript_1; - CHECK_OBJECT(par_n_tile); - tmp_ass_subvalue_1 = par_n_tile; - CHECK_OBJECT(var_repeat_idx); - tmp_ass_subscribed_1 = var_repeat_idx; - if (par_dim == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[99]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 245; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - - tmp_ass_subscript_1 = par_dim; - tmp_result = SET_SUBSCRIPT(tmp_ass_subscribed_1, tmp_ass_subscript_1, tmp_ass_subvalue_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 245; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assign_source_3; - PyObject *tmp_dircall_arg1_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_dircall_arg2_1; - if (par_x == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[79]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 246; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_1 = par_x; - tmp_dircall_arg1_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[100]); - if (tmp_dircall_arg1_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 246; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - if (var_repeat_idx == NULL) { - Py_DECREF(tmp_dircall_arg1_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[101]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 246; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - - tmp_dircall_arg2_1 = var_repeat_idx; - Py_INCREF(tmp_dircall_arg2_1); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_1, tmp_dircall_arg2_1}; - tmp_assign_source_3 = impl_models$$$function__2_complex_call_helper_star_list(dir_call_args); - } - if (tmp_assign_source_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 246; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_x; - par_x = tmp_assign_source_3; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_4; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_2; - PyObject *tmp_args_element_name_2; - PyObject *tmp_called_name_2; - PyObject *tmp_expression_name_3; - PyObject *tmp_args_element_name_3; - tmp_expression_name_2 = GET_STRING_DICT_VALUE(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[2]); - - if (unlikely(tmp_expression_name_2 == NULL)) { - tmp_expression_name_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]); - } - - if (tmp_expression_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 247; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[102]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 247; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_expression_name_3 = GET_STRING_DICT_VALUE(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[103]); - - if (unlikely(tmp_expression_name_3 == NULL)) { - tmp_expression_name_3 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[103]); - } - - if (tmp_expression_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 248; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[104]); - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 248; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - // Tried code: - { - PyObject *tmp_assign_source_5; - PyObject *tmp_iter_arg_1; - PyObject *tmp_xrange_low_1; - CHECK_OBJECT(var_init_dim); - tmp_xrange_low_1 = var_init_dim; - tmp_iter_arg_1 = BUILTIN_XRANGE1(tmp_xrange_low_1); - if (tmp_iter_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 248; - type_description_1 = "oooooo"; - goto try_except_handler_2; - } - tmp_assign_source_5 = MAKE_ITERATOR(tmp_iter_arg_1); - Py_DECREF(tmp_iter_arg_1); - if (tmp_assign_source_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 248; - type_description_1 = "oooooo"; - goto try_except_handler_2; - } - assert(tmp_listcomp_1__$0 == NULL); - tmp_listcomp_1__$0 = tmp_assign_source_5; - } - { - PyObject *tmp_assign_source_6; - tmp_assign_source_6 = PyList_New(0); - assert(tmp_listcomp_1__contraction == NULL); - tmp_listcomp_1__contraction = tmp_assign_source_6; - } - if (isFrameUnusable(cache_frame_be04ffc70de33534e233bcc063a2873b_2)) { - Py_XDECREF(cache_frame_be04ffc70de33534e233bcc063a2873b_2); - -#if _DEBUG_REFCOUNTS - if (cache_frame_be04ffc70de33534e233bcc063a2873b_2 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_be04ffc70de33534e233bcc063a2873b_2 = MAKE_FUNCTION_FRAME(codeobj_be04ffc70de33534e233bcc063a2873b, module_models$base_model, sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_be04ffc70de33534e233bcc063a2873b_2->m_type_description == NULL); - frame_be04ffc70de33534e233bcc063a2873b_2 = cache_frame_be04ffc70de33534e233bcc063a2873b_2; - - // Push the new frame as the currently active one. - pushFrameStack(frame_be04ffc70de33534e233bcc063a2873b_2); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_be04ffc70de33534e233bcc063a2873b_2) == 2); // Frame stack - - // Framed code: - // Tried code: - loop_start_1:; - { - PyObject *tmp_next_source_1; - PyObject *tmp_assign_source_7; - CHECK_OBJECT(tmp_listcomp_1__$0); - tmp_next_source_1 = tmp_listcomp_1__$0; - tmp_assign_source_7 = ITERATOR_NEXT(tmp_next_source_1); - if (tmp_assign_source_7 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_1; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_2 = "ooo"; - exception_lineno = 248; - goto try_except_handler_3; - } - } - - { - PyObject *old = tmp_listcomp_1__iter_value_0; - tmp_listcomp_1__iter_value_0 = tmp_assign_source_7; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_8; - CHECK_OBJECT(tmp_listcomp_1__iter_value_0); - tmp_assign_source_8 = tmp_listcomp_1__iter_value_0; - { - PyObject *old = outline_0_var_i; - outline_0_var_i = tmp_assign_source_8; - Py_INCREF(outline_0_var_i); - Py_XDECREF(old); - } - - } - { - PyObject *tmp_append_list_1; - PyObject *tmp_append_value_1; - PyObject *tmp_left_name_2; - PyObject *tmp_left_name_3; - PyObject *tmp_right_name_2; - PyObject *tmp_called_name_3; - PyObject *tmp_expression_name_4; - PyObject *tmp_args_element_name_4; - PyObject *tmp_right_name_3; - CHECK_OBJECT(tmp_listcomp_1__contraction); - tmp_append_list_1 = tmp_listcomp_1__contraction; - if (var_init_dim == NULL) { - - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[105]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 248; - type_description_2 = "ooo"; - goto try_except_handler_3; - } - - tmp_left_name_3 = var_init_dim; - tmp_expression_name_4 = GET_STRING_DICT_VALUE(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[103]); - - if (unlikely(tmp_expression_name_4 == NULL)) { - tmp_expression_name_4 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[103]); - } - - if (tmp_expression_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 248; - type_description_2 = "ooo"; - goto try_except_handler_3; - } - tmp_called_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[106]); - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 248; - type_description_2 = "ooo"; - goto try_except_handler_3; - } - if (par_n_tile == NULL) { - Py_DECREF(tmp_called_name_3); - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[107]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 248; - type_description_2 = "ooo"; - goto try_except_handler_3; - } - - tmp_args_element_name_4 = par_n_tile; - frame_be04ffc70de33534e233bcc063a2873b_2->m_frame.f_lineno = 248; - tmp_right_name_2 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_3, tmp_args_element_name_4); - Py_DECREF(tmp_called_name_3); - if (tmp_right_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 248; - type_description_2 = "ooo"; - goto try_except_handler_3; - } - tmp_left_name_2 = BINARY_OPERATION_MULT_OBJECT_OBJECT_OBJECT(tmp_left_name_3, tmp_right_name_2); - Py_DECREF(tmp_right_name_2); - if (tmp_left_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 248; - type_description_2 = "ooo"; - goto try_except_handler_3; - } - CHECK_OBJECT(outline_0_var_i); - tmp_right_name_3 = outline_0_var_i; - tmp_append_value_1 = BINARY_OPERATION_ADD_OBJECT_OBJECT_OBJECT(tmp_left_name_2, tmp_right_name_3); - Py_DECREF(tmp_left_name_2); - if (tmp_append_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 248; - type_description_2 = "ooo"; - goto try_except_handler_3; - } - assert(PyList_Check(tmp_append_list_1)); - tmp_result = LIST_APPEND1(tmp_append_list_1, tmp_append_value_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 248; - type_description_2 = "ooo"; - goto try_except_handler_3; - } - } - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 248; - type_description_2 = "ooo"; - goto try_except_handler_3; - } - goto loop_start_1; - loop_end_1:; - CHECK_OBJECT(tmp_listcomp_1__contraction); - tmp_args_element_name_3 = tmp_listcomp_1__contraction; - Py_INCREF(tmp_args_element_name_3); - goto try_return_handler_3; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_3:; - Py_XDECREF(tmp_listcomp_1__$0); - tmp_listcomp_1__$0 = NULL; - CHECK_OBJECT(tmp_listcomp_1__contraction); - Py_DECREF(tmp_listcomp_1__contraction); - tmp_listcomp_1__contraction = NULL; - Py_XDECREF(tmp_listcomp_1__iter_value_0); - tmp_listcomp_1__iter_value_0 = NULL; - goto frame_return_exit_2; - // Exception handler code: - try_except_handler_3:; - 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; - - Py_XDECREF(tmp_listcomp_1__$0); - tmp_listcomp_1__$0 = NULL; - CHECK_OBJECT(tmp_listcomp_1__contraction); - Py_DECREF(tmp_listcomp_1__contraction); - tmp_listcomp_1__contraction = NULL; - Py_XDECREF(tmp_listcomp_1__iter_value_0); - tmp_listcomp_1__iter_value_0 = NULL; - // 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 frame_exception_exit_2; - // End of try: - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_be04ffc70de33534e233bcc063a2873b_2); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_2:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_be04ffc70de33534e233bcc063a2873b_2); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_2; - - frame_exception_exit_2:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_be04ffc70de33534e233bcc063a2873b_2); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_be04ffc70de33534e233bcc063a2873b_2, exception_lineno); - } else if (exception_tb->tb_frame != &frame_be04ffc70de33534e233bcc063a2873b_2->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_be04ffc70de33534e233bcc063a2873b_2, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_be04ffc70de33534e233bcc063a2873b_2, - type_description_2, - outline_0_var_i, - var_init_dim, - par_n_tile - ); - - - // Release cached frame if used for exception. - if (frame_be04ffc70de33534e233bcc063a2873b_2 == cache_frame_be04ffc70de33534e233bcc063a2873b_2) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_be04ffc70de33534e233bcc063a2873b_2); - cache_frame_be04ffc70de33534e233bcc063a2873b_2 = NULL; - } - - assertFrameObject(frame_be04ffc70de33534e233bcc063a2873b_2); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_1; - - frame_no_exception_1:; - goto skip_nested_handling_1; - nested_frame_exit_1:; - type_description_1 = "oooooo"; - goto try_except_handler_2; - skip_nested_handling_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_2:; - Py_XDECREF(outline_0_var_i); - outline_0_var_i = NULL; - goto outline_result_1; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(outline_0_var_i); - outline_0_var_i = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto outline_exception_1; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_1:; - exception_lineno = 248; - goto frame_exception_exit_1; - outline_result_1:; - frame_e5dd198ac569e0b6dd733a992ab7706f->m_frame.f_lineno = 248; - tmp_args_element_name_2 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_2, tmp_args_element_name_3); - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_element_name_3); - if (tmp_args_element_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 248; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - frame_e5dd198ac569e0b6dd733a992ab7706f->m_frame.f_lineno = 247; - tmp_assign_source_4 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_1, tmp_args_element_name_2); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_2); - if (tmp_assign_source_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 247; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - assert(var_order_index == NULL); - var_order_index = tmp_assign_source_4; - } - { - PyObject *tmp_called_name_4; - PyObject *tmp_expression_name_5; - PyObject *tmp_args_element_name_5; - PyObject *tmp_args_element_name_6; - PyObject *tmp_args_element_name_7; - PyObject *tmp_called_name_5; - PyObject *tmp_expression_name_6; - PyObject *tmp_args_element_name_8; - PyObject *tmp_expression_name_7; - tmp_expression_name_5 = GET_STRING_DICT_VALUE(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[2]); - - if (unlikely(tmp_expression_name_5 == NULL)) { - tmp_expression_name_5 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]); - } - - if (tmp_expression_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 250; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_5, mod_consts[108]); - if (tmp_called_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 250; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_x); - tmp_args_element_name_5 = par_x; - if (par_dim == NULL) { - Py_DECREF(tmp_called_name_4); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[99]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 250; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_6 = par_dim; - CHECK_OBJECT(var_order_index); - tmp_expression_name_6 = var_order_index; - tmp_called_name_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_6, mod_consts[109]); - if (tmp_called_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_4); - - exception_lineno = 250; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_x); - tmp_expression_name_7 = par_x; - tmp_args_element_name_8 = LOOKUP_ATTRIBUTE(tmp_expression_name_7, mod_consts[55]); - if (tmp_args_element_name_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_4); - Py_DECREF(tmp_called_name_5); - - exception_lineno = 250; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - frame_e5dd198ac569e0b6dd733a992ab7706f->m_frame.f_lineno = 250; - tmp_args_element_name_7 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_5, tmp_args_element_name_8); - Py_DECREF(tmp_called_name_5); - Py_DECREF(tmp_args_element_name_8); - if (tmp_args_element_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_4); - - exception_lineno = 250; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - frame_e5dd198ac569e0b6dd733a992ab7706f->m_frame.f_lineno = 250; - { - PyObject *call_args[] = {tmp_args_element_name_5, tmp_args_element_name_6, tmp_args_element_name_7}; - tmp_return_value = CALL_FUNCTION_WITH_ARGS3(tmp_called_name_4, call_args); - } - - Py_DECREF(tmp_called_name_4); - Py_DECREF(tmp_args_element_name_7); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 250; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_e5dd198ac569e0b6dd733a992ab7706f); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_2; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_e5dd198ac569e0b6dd733a992ab7706f); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_e5dd198ac569e0b6dd733a992ab7706f); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_e5dd198ac569e0b6dd733a992ab7706f, exception_lineno); - } else if (exception_tb->tb_frame != &frame_e5dd198ac569e0b6dd733a992ab7706f->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_e5dd198ac569e0b6dd733a992ab7706f, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_e5dd198ac569e0b6dd733a992ab7706f, - type_description_1, - par_x, - par_dim, - par_n_tile, - var_init_dim, - var_repeat_idx, - var_order_index - ); - - - // Release cached frame if used for exception. - if (frame_e5dd198ac569e0b6dd733a992ab7706f == cache_frame_e5dd198ac569e0b6dd733a992ab7706f) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_e5dd198ac569e0b6dd733a992ab7706f); - cache_frame_e5dd198ac569e0b6dd733a992ab7706f = NULL; - } - - assertFrameObject(frame_e5dd198ac569e0b6dd733a992ab7706f); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_2:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_x); - par_x = NULL; - Py_XDECREF(par_dim); - par_dim = NULL; - Py_XDECREF(par_n_tile); - par_n_tile = NULL; - Py_XDECREF(var_init_dim); - var_init_dim = NULL; - Py_XDECREF(var_repeat_idx); - var_repeat_idx = NULL; - Py_XDECREF(var_order_index); - var_order_index = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_3 = exception_type; - exception_keeper_value_3 = exception_value; - exception_keeper_tb_3 = exception_tb; - exception_keeper_lineno_3 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_x); - par_x = NULL; - Py_XDECREF(par_dim); - par_dim = NULL; - Py_XDECREF(par_n_tile); - par_n_tile = NULL; - Py_XDECREF(var_init_dim); - var_init_dim = NULL; - Py_XDECREF(var_repeat_idx); - var_repeat_idx = NULL; - Py_XDECREF(var_order_index); - var_order_index = NULL; - // Re-raise. - exception_type = exception_keeper_type_3; - exception_value = exception_keeper_value_3; - exception_tb = exception_keeper_tb_3; - exception_lineno = exception_keeper_lineno_3; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - 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 || !ERROR_OCCURRED()); - return tmp_return_value; -} - - - -static PyObject *MAKE_FUNCTION_models$base_model$$$function__10_forward_features() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$base_model$$$function__10_forward_features, - mod_consts[157], -#if PYTHON_VERSION >= 0x300 - mod_consts[158], -#endif - codeobj_144bb4aa37b13c6906ed75d1916fd2cb, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$base_model, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$base_model$$$function__11_device() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$base_model$$$function__11_device, - mod_consts[55], -#if PYTHON_VERSION >= 0x300 - mod_consts[159], -#endif - codeobj_e2ff967b4add3ba339e6fa020be32f85, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$base_model, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$base_model$$$function__12__dequeue_and_enqueue(PyObject *defaults) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$base_model$$$function__12__dequeue_and_enqueue, - mod_consts[165], -#if PYTHON_VERSION >= 0x300 - mod_consts[166], -#endif - codeobj_c605ec6894b581ddbf6356fbb7c61f54, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$base_model, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$base_model$$$function__13_copy_params() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$base_model$$$function__13_copy_params, - mod_consts[169], -#if PYTHON_VERSION >= 0x300 - mod_consts[170], -#endif - codeobj_df2391467f85318d759b3b6072f678ab, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$base_model, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$base_model$$$function__14__momentum_update() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$base_model$$$function__14__momentum_update, - mod_consts[171], -#if PYTHON_VERSION >= 0x300 - mod_consts[172], -#endif - codeobj_7a0e9b8ed65f5d485709ab54ee4f9399, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$base_model, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$base_model$$$function__15_forward() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$base_model$$$function__15_forward, - mod_consts[177], -#if PYTHON_VERSION >= 0x300 - mod_consts[178], -#endif - codeobj_52cd4a3cdc9ed073800613d10eeacfee, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$base_model, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$base_model$$$function__16_backward() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$base_model$$$function__16_backward, - mod_consts[179], -#if PYTHON_VERSION >= 0x300 - mod_consts[180], -#endif - codeobj_0b56832b17e824e3961db8ea96339fc7, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$base_model, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$base_model$$$function__17_all_gather_with_grad() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$base_model$$$function__17_all_gather_with_grad, - mod_consts[181], -#if PYTHON_VERSION >= 0x300 - NULL, -#endif - codeobj_a1193c5a2efa4e8420ff62b0905f950b, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$base_model, - mod_consts[90], - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$base_model$$$function__18_concat_all_gather() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$base_model$$$function__18_concat_all_gather, - mod_consts[56], -#if PYTHON_VERSION >= 0x300 - NULL, -#endif - codeobj_d8bb50cdd0a01bbe722c9ae9bf67afe9, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$base_model, - mod_consts[96], - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$base_model$$$function__19_tile() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$base_model$$$function__19_tile, - mod_consts[182], -#if PYTHON_VERSION >= 0x300 - NULL, -#endif - codeobj_e5dd198ac569e0b6dd733a992ab7706f, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$base_model, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$base_model$$$function__1___init__(struct Nuitka_CellObject **closure) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$base_model$$$function__1___init__, - mod_consts[1], -#if PYTHON_VERSION >= 0x300 - mod_consts[138], -#endif - codeobj_e8232c1f8311141eab7a90dbfd6310ca, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$base_model, - NULL, - closure, - 1 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$base_model$$$function__2_device() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$base_model$$$function__2_device, - mod_consts[55], -#if PYTHON_VERSION >= 0x300 - mod_consts[140], -#endif - codeobj_194aa42a14f75d8194f56d292c57333b, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$base_model, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$base_model$$$function__3_load_checkpoint() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$base_model$$$function__3_load_checkpoint, - mod_consts[41], -#if PYTHON_VERSION >= 0x300 - mod_consts[141], -#endif - codeobj_efb0ad1e6b4110725f2565598950e915, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$base_model, - mod_consts[27], - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$base_model$$$function__4_from_pretrained() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$base_model$$$function__4_from_pretrained, - mod_consts[143], -#if PYTHON_VERSION >= 0x300 - mod_consts[144], -#endif - codeobj_1636a0b0747f01d69319312edd40dcbb, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$base_model, - mod_consts[32], - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$base_model$$$function__5_default_config_path() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$base_model$$$function__5_default_config_path, - mod_consts[29], -#if PYTHON_VERSION >= 0x300 - mod_consts[145], -#endif - codeobj_69c403ba983164d79214cd1a92c3e484, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$base_model, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$base_model$$$function__6_load_checkpoint_from_config() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$base_model$$$function__6_load_checkpoint_from_config, - mod_consts[146], -#if PYTHON_VERSION >= 0x300 - mod_consts[147], -#endif - codeobj_8af0987e214bb6e30431e9b2bdcfbb14, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$base_model, - mod_consts[44], - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$base_model$$$function__7_before_evaluation() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$base_model$$$function__7_before_evaluation, - mod_consts[148], -#if PYTHON_VERSION >= 0x300 - mod_consts[149], -#endif - codeobj_9310af7aa8323cc1c5740553d51f888b, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$base_model, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$base_model$$$function__8_show_n_params(PyObject *defaults) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$base_model$$$function__8_show_n_params, - mod_consts[151], -#if PYTHON_VERSION >= 0x300 - mod_consts[152], -#endif - codeobj_24faaf0922ee17baa8e84fcd48fce6fe, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$base_model, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$base_model$$$function__9___init__(struct Nuitka_CellObject **closure) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$base_model$$$function__9___init__, - mod_consts[1], -#if PYTHON_VERSION >= 0x300 - mod_consts[156], -#endif - codeobj_ddadc2663250ee51234ad267883b07bc, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$base_model, - NULL, - closure, - 1 - ); - - - return (PyObject *)result; -} - - -extern void _initCompiledCellType(); -extern void _initCompiledGeneratorType(); -extern void _initCompiledFunctionType(); -extern void _initCompiledMethodType(); -extern void _initCompiledFrameType(); - -extern PyTypeObject Nuitka_Loader_Type; - -#ifdef _NUITKA_PLUGIN_DILL_ENABLED -// 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 -extern void registerDillPluginTables(char const *module_name, PyMethodDef *reduce_compiled_function, PyMethodDef *create_compiled_function); - -function_impl_code functable_models$base_model[] = { - impl_models$base_model$$$function__1___init__, - impl_models$base_model$$$function__2_device, - impl_models$base_model$$$function__3_load_checkpoint, - impl_models$base_model$$$function__4_from_pretrained, - impl_models$base_model$$$function__5_default_config_path, - impl_models$base_model$$$function__6_load_checkpoint_from_config, - impl_models$base_model$$$function__7_before_evaluation, - impl_models$base_model$$$function__8_show_n_params, - impl_models$base_model$$$function__9___init__, - impl_models$base_model$$$function__10_forward_features, - impl_models$base_model$$$function__11_device, - impl_models$base_model$$$function__12__dequeue_and_enqueue, - impl_models$base_model$$$function__13_copy_params, - impl_models$base_model$$$function__14__momentum_update, - impl_models$base_model$$$function__15_forward, - impl_models$base_model$$$function__16_backward, - impl_models$base_model$$$function__17_all_gather_with_grad, - impl_models$base_model$$$function__18_concat_all_gather, - impl_models$base_model$$$function__19_tile, - NULL -}; - -static char const *_reduce_compiled_function_argnames[] = { - "func", - NULL -}; - -static PyObject *_reduce_compiled_function(PyObject *self, PyObject *args, PyObject *kwds) { - PyObject *func; - - if (!PyArg_ParseTupleAndKeywords(args, kwds, "O:reduce_compiled_function", (char **)_reduce_compiled_function_argnames, &func, NULL)) { - return NULL; - } - - if (Nuitka_Function_Check(func) == false) { - SET_CURRENT_EXCEPTION_TYPE0_STR(PyExc_TypeError, "not a compiled function"); - return NULL; - } - - struct Nuitka_FunctionObject *function = (struct Nuitka_FunctionObject *)func; - - function_impl_code *current = functable_models$base_model; - int offset = 0; - - while (*current != NULL) { - if (*current == function->m_c_code) { - break; - } - - current += 1; - offset += 1; - } - - if (*current == NULL) { - SET_CURRENT_EXCEPTION_TYPE0_STR(PyExc_TypeError, "Cannot find compiled function in module."); - return NULL; - } - - PyObject *code_object_desc = PyTuple_New(6); - PyTuple_SET_ITEM0(code_object_desc, 0, function->m_code_object->co_filename); - PyTuple_SET_ITEM0(code_object_desc, 1, function->m_code_object->co_name); - PyTuple_SET_ITEM(code_object_desc, 2, PyLong_FromLong(function->m_code_object->co_firstlineno)); - PyTuple_SET_ITEM0(code_object_desc, 3, function->m_code_object->co_varnames); - PyTuple_SET_ITEM(code_object_desc, 4, PyLong_FromLong(function->m_code_object->co_argcount)); - PyTuple_SET_ITEM(code_object_desc, 5, PyLong_FromLong(function->m_code_object->co_flags)); - - CHECK_OBJECT_DEEP(code_object_desc); - - PyObject *result = PyTuple_New(4); - PyTuple_SET_ITEM(result, 0, PyLong_FromLong(offset)); - PyTuple_SET_ITEM(result, 1, code_object_desc); - PyTuple_SET_ITEM0(result, 2, function->m_defaults); - PyTuple_SET_ITEM0(result, 3, function->m_doc != NULL ? function->m_doc : Py_None); - - CHECK_OBJECT_DEEP(result); - - return result; -} - -static PyMethodDef _method_def_reduce_compiled_function = {"reduce_compiled_function", (PyCFunction)_reduce_compiled_function, - METH_VARARGS | METH_KEYWORDS, NULL}; - -static char const *_create_compiled_function_argnames[] = { - "func", - "code_object_desc", - "defaults", - "doc", - NULL -}; - - -static PyObject *_create_compiled_function(PyObject *self, PyObject *args, PyObject *kwds) { - CHECK_OBJECT_DEEP(args); - - PyObject *func; - PyObject *code_object_desc; - PyObject *defaults; - PyObject *doc; - - if (!PyArg_ParseTupleAndKeywords(args, kwds, "OOOO:create_compiled_function", (char **)_create_compiled_function_argnames, &func, &code_object_desc, &defaults, &doc, NULL)) { - return NULL; - } - - int offset = PyLong_AsLong(func); - - if (offset == -1 && ERROR_OCCURRED()) { - return NULL; - } - - if (offset > sizeof(functable_models$base_model) || offset < 0) { - SET_CURRENT_EXCEPTION_TYPE0_STR(PyExc_TypeError, "Wrong offset for compiled function."); - return NULL; - } - - PyObject *filename = PyTuple_GET_ITEM(code_object_desc, 0); - PyObject *function_name = PyTuple_GET_ITEM(code_object_desc, 1); - PyObject *line = PyTuple_GET_ITEM(code_object_desc, 2); - int line_int = PyLong_AsLong(line); - assert(!ERROR_OCCURRED()); - - PyObject *argnames = PyTuple_GET_ITEM(code_object_desc, 3); - PyObject *arg_count = PyTuple_GET_ITEM(code_object_desc, 4); - int arg_count_int = PyLong_AsLong(arg_count); - assert(!ERROR_OCCURRED()); - PyObject *flags = PyTuple_GET_ITEM(code_object_desc, 5); - int flags_int = PyLong_AsLong(flags); - assert(!ERROR_OCCURRED()); - - PyCodeObject *code_object = MAKE_CODEOBJECT( - filename, - line_int, - flags_int, - function_name, - argnames, - NULL, // freevars - arg_count_int, - 0, // TODO: Missing kw_only_count - 0 // TODO: Missing pos_only_count - ); - - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - functable_models$base_model[offset], - code_object->co_name, -#if PYTHON_VERSION >= 0x300 - NULL, // TODO: Not transferring qualname yet -#endif - code_object, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, // kwdefaults are done on the outside currently - NULL, // TODO: Not transferring annotations -#endif - module_models$base_model, - doc, - NULL, - 0 - ); - - return (PyObject *)result; -} - -static PyMethodDef _method_def_create_compiled_function = { - "create_compiled_function", - (PyCFunction)_create_compiled_function, - METH_VARARGS | METH_KEYWORDS, NULL -}; - - -#endif - -// Internal entry point for module code. -PyObject *modulecode_models$base_model(PyObject *module, struct Nuitka_MetaPathBasedLoaderEntry const *module_entry) { - module_models$base_model = module; - -#ifdef _NUITKA_MODULE - // In case of a stand alone extension module, need to call initialization - // the init here because that's the first and only time we are going to get - // called here. - - // Initialize the constant values used. - _initBuiltinModule(); - createGlobalConstants(); - - /* Initialize the compiled types of Nuitka. */ - _initCompiledCellType(); - _initCompiledGeneratorType(); - _initCompiledFunctionType(); - _initCompiledMethodType(); - _initCompiledFrameType(); - -#if PYTHON_VERSION < 0x300 - _initSlotCompare(); -#endif -#if PYTHON_VERSION >= 0x270 - _initSlotIternext(); -#endif - - patchBuiltinModule(); - patchTypeComparison(); - - // Enable meta path based loader if not already done. -#ifdef _NUITKA_TRACE - PRINT_STRING("models.base_model: Calling setupMetaPathBasedLoader().\n"); -#endif - setupMetaPathBasedLoader(); - -#if PYTHON_VERSION >= 0x300 - patchInspectModule(); -#endif - -#endif - - /* The constants only used by this module are created now. */ -#ifdef _NUITKA_TRACE - PRINT_STRING("models.base_model: Calling createModuleConstants().\n"); -#endif - createModuleConstants(); - - /* The code objects used by this module are created now. */ -#ifdef _NUITKA_TRACE - PRINT_STRING("models.base_model: Calling createModuleCodeObjects().\n"); -#endif - createModuleCodeObjects(); - - // PRINT_STRING("in initmodels$base_model\n"); - - // Create the module object first. There are no methods initially, all are - // added dynamically in actual code only. Also no "__doc__" is initially - // set at this time, as it could not contain NUL characters this way, they - // are instead set in early module code. No "self" for modules, we have no - // use for it. - - moduledict_models$base_model = MODULE_DICT(module_models$base_model); - -#ifdef _NUITKA_PLUGIN_DILL_ENABLED - registerDillPluginTables(module_entry->name, &_method_def_reduce_compiled_function, &_method_def_create_compiled_function); -#endif - - // Set "__compiled__" to what version information we have. - UPDATE_STRING_DICT0( - moduledict_models$base_model, - (Nuitka_StringObject *)const_str_plain___compiled__, - Nuitka_dunder_compiled_value - ); - - // Update "__package__" value to what it ought to be. - { -#if 0 - UPDATE_STRING_DICT0( - moduledict_models$base_model, - (Nuitka_StringObject *)const_str_plain___package__, - const_str_empty - ); -#elif 0 - PyObject *module_name = GET_STRING_DICT_VALUE(moduledict_models$base_model, (Nuitka_StringObject *)const_str_plain___name__); - - UPDATE_STRING_DICT0( - moduledict_models$base_model, - (Nuitka_StringObject *)const_str_plain___package__, - module_name - ); -#else - -#if PYTHON_VERSION < 0x300 - PyObject *module_name = GET_STRING_DICT_VALUE(moduledict_models$base_model, (Nuitka_StringObject *)const_str_plain___name__); - char const *module_name_cstr = PyString_AS_STRING(module_name); - - char const *last_dot = strrchr(module_name_cstr, '.'); - - if (last_dot != NULL) { - UPDATE_STRING_DICT1( - moduledict_models$base_model, - (Nuitka_StringObject *)const_str_plain___package__, - PyString_FromStringAndSize(module_name_cstr, last_dot - module_name_cstr) - ); - } -#else - PyObject *module_name = GET_STRING_DICT_VALUE(moduledict_models$base_model, (Nuitka_StringObject *)const_str_plain___name__); - Py_ssize_t dot_index = PyUnicode_Find(module_name, const_str_dot, 0, PyUnicode_GetLength(module_name), -1); - - if (dot_index != -1) { - UPDATE_STRING_DICT1( - moduledict_models$base_model, - (Nuitka_StringObject *)const_str_plain___package__, - PyUnicode_Substring(module_name, 0, dot_index) - ); - } -#endif -#endif - } - - CHECK_OBJECT(module_models$base_model); - - // For deep importing of a module we need to have "__builtins__", so we set - // it ourselves in the same way than CPython does. Note: This must be done - // before the frame object is allocated, or else it may fail. - - if (GET_STRING_DICT_VALUE(moduledict_models$base_model, (Nuitka_StringObject *)const_str_plain___builtins__) == NULL) { - PyObject *value = (PyObject *)builtin_module; - - // Check if main module, not a dict then but the module itself. -#if !defined(_NUITKA_EXE) || !0 - value = PyModule_GetDict(value); -#endif - - UPDATE_STRING_DICT0(moduledict_models$base_model, (Nuitka_StringObject *)const_str_plain___builtins__, value); - } - -#if PYTHON_VERSION >= 0x300 - UPDATE_STRING_DICT0(moduledict_models$base_model, (Nuitka_StringObject *)const_str_plain___loader__, (PyObject *)&Nuitka_Loader_Type); -#endif - -#if PYTHON_VERSION >= 0x340 -// Set the "__spec__" value - -#if 0 - // Main modules just get "None" as spec. - UPDATE_STRING_DICT0(moduledict_models$base_model, (Nuitka_StringObject *)const_str_plain___spec__, Py_None); -#else - // Other modules get a "ModuleSpec" from the standard mechanism. - { - PyObject *bootstrap_module = getImportLibBootstrapModule(); - CHECK_OBJECT(bootstrap_module); - - PyObject *_spec_from_module = PyObject_GetAttrString(bootstrap_module, "_spec_from_module"); - CHECK_OBJECT(_spec_from_module); - - PyObject *spec_value = CALL_FUNCTION_WITH_SINGLE_ARG(_spec_from_module, module_models$base_model); - Py_DECREF(_spec_from_module); - - // We can assume this to never fail, or else we are in trouble anyway. - // CHECK_OBJECT(spec_value); - - if (spec_value == NULL) { - PyErr_PrintEx(0); - abort(); - } - -// Mark the execution in the "__spec__" value. - SET_ATTRIBUTE(spec_value, const_str_plain__initializing, Py_True); - - UPDATE_STRING_DICT1(moduledict_models$base_model, (Nuitka_StringObject *)const_str_plain___spec__, spec_value); - } -#endif -#endif - - // Temp variables if any - struct Nuitka_CellObject *outline_0_var___class__ = Nuitka_Cell_Empty(); - struct Nuitka_CellObject *outline_1_var___class__ = Nuitka_Cell_Empty(); - PyObject *outline_2_var___class__ = NULL; - PyObject *outline_3_var___class__ = NULL; - PyObject *outline_4_var___class__ = NULL; - PyObject *tmp_class_creation_1__bases = NULL; - PyObject *tmp_class_creation_1__bases_orig = NULL; - PyObject *tmp_class_creation_1__class_decl_dict = NULL; - PyObject *tmp_class_creation_1__metaclass = NULL; - PyObject *tmp_class_creation_1__prepared = NULL; - PyObject *tmp_class_creation_2__bases = NULL; - PyObject *tmp_class_creation_2__bases_orig = NULL; - PyObject *tmp_class_creation_2__class_decl_dict = NULL; - PyObject *tmp_class_creation_2__metaclass = NULL; - PyObject *tmp_class_creation_2__prepared = NULL; - PyObject *tmp_class_creation_3__class_decl_dict = NULL; - PyObject *tmp_class_creation_3__metaclass = NULL; - PyObject *tmp_class_creation_3__prepared = NULL; - PyObject *tmp_class_creation_4__class_decl_dict = NULL; - PyObject *tmp_class_creation_4__metaclass = NULL; - PyObject *tmp_class_creation_4__prepared = NULL; - PyObject *tmp_class_creation_5__bases = NULL; - PyObject *tmp_class_creation_5__bases_orig = NULL; - PyObject *tmp_class_creation_5__class_decl_dict = NULL; - PyObject *tmp_class_creation_5__metaclass = NULL; - PyObject *tmp_class_creation_5__prepared = NULL; - PyObject *tmp_import_from_1__module = NULL; - PyObject *tmp_import_from_2__module = NULL; - struct Nuitka_FrameObject *frame_3da92d637f10e0e2fa696c97d85e96aa; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - bool tmp_result; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - int tmp_res; - PyObject *tmp_dictdel_dict; - PyObject *tmp_dictdel_key; - PyObject *locals_models$base_model$$$class__1_BaseModel_20 = NULL; - PyObject *tmp_dictset_value; - struct Nuitka_FrameObject *frame_19b8ea77f1a4d1b574ae0e072b660e0b_2; - NUITKA_MAY_BE_UNUSED char const *type_description_2 = NULL; - static struct Nuitka_FrameObject *cache_frame_19b8ea77f1a4d1b574ae0e072b660e0b_2 = NULL; - PyObject *exception_keeper_type_3; - PyObject *exception_keeper_value_3; - PyTracebackObject *exception_keeper_tb_3; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; - PyObject *exception_keeper_type_4; - PyObject *exception_keeper_value_4; - PyTracebackObject *exception_keeper_tb_4; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_4; - PyObject *exception_keeper_type_5; - PyObject *exception_keeper_value_5; - PyTracebackObject *exception_keeper_tb_5; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_5; - PyObject *locals_models$base_model$$$class__2_BaseEncoder_124 = NULL; - struct Nuitka_FrameObject *frame_9f6b0b8f837711c1f7a8dbc49dea079b_3; - NUITKA_MAY_BE_UNUSED char const *type_description_3 = NULL; - static struct Nuitka_FrameObject *cache_frame_9f6b0b8f837711c1f7a8dbc49dea079b_3 = NULL; - PyObject *exception_keeper_type_6; - PyObject *exception_keeper_value_6; - PyTracebackObject *exception_keeper_tb_6; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_6; - PyObject *exception_keeper_type_7; - PyObject *exception_keeper_value_7; - PyTracebackObject *exception_keeper_tb_7; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_7; - PyObject *exception_keeper_type_8; - PyObject *exception_keeper_value_8; - PyTracebackObject *exception_keeper_tb_8; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_8; - PyObject *locals_models$base_model$$$class__3_SharedQueueMixin_140 = NULL; - struct Nuitka_FrameObject *frame_d71d7f2d6ffa38c985737620f54130a1_4; - NUITKA_MAY_BE_UNUSED char const *type_description_4 = NULL; - static struct Nuitka_FrameObject *cache_frame_d71d7f2d6ffa38c985737620f54130a1_4 = NULL; - PyObject *exception_keeper_type_9; - PyObject *exception_keeper_value_9; - PyTracebackObject *exception_keeper_tb_9; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_9; - PyObject *exception_keeper_type_10; - PyObject *exception_keeper_value_10; - PyTracebackObject *exception_keeper_tb_10; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_10; - PyObject *exception_keeper_type_11; - PyObject *exception_keeper_value_11; - PyTracebackObject *exception_keeper_tb_11; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_11; - PyObject *locals_models$base_model$$$class__4_MomentumDistilationMixin_164 = NULL; - struct Nuitka_FrameObject *frame_922346e330baabd5dec3a0e5d0cef592_5; - NUITKA_MAY_BE_UNUSED char const *type_description_5 = NULL; - static struct Nuitka_FrameObject *cache_frame_922346e330baabd5dec3a0e5d0cef592_5 = NULL; - PyObject *exception_keeper_type_12; - PyObject *exception_keeper_value_12; - PyTracebackObject *exception_keeper_tb_12; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_12; - PyObject *exception_keeper_type_13; - PyObject *exception_keeper_value_13; - PyTracebackObject *exception_keeper_tb_13; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_13; - PyObject *exception_keeper_type_14; - PyObject *exception_keeper_value_14; - PyTracebackObject *exception_keeper_tb_14; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_14; - PyObject *locals_models$base_model$$$class__5_GatherLayer_185 = NULL; - struct Nuitka_FrameObject *frame_6bb53d881ab90d043e76e8acd0c190e8_6; - NUITKA_MAY_BE_UNUSED char const *type_description_6 = NULL; - static struct Nuitka_FrameObject *cache_frame_6bb53d881ab90d043e76e8acd0c190e8_6 = NULL; - PyObject *exception_keeper_type_15; - PyObject *exception_keeper_value_15; - PyTracebackObject *exception_keeper_tb_15; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_15; - PyObject *exception_keeper_type_16; - PyObject *exception_keeper_value_16; - PyTracebackObject *exception_keeper_tb_16; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_16; - PyObject *exception_keeper_type_17; - PyObject *exception_keeper_value_17; - PyTracebackObject *exception_keeper_tb_17; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_17; - - // Module code. - { - PyObject *tmp_assign_source_1; - tmp_assign_source_1 = mod_consts[110]; - UPDATE_STRING_DICT0(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[111], tmp_assign_source_1); - } - { - PyObject *tmp_assign_source_2; - tmp_assign_source_2 = module_filename_obj; - UPDATE_STRING_DICT0(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[112], tmp_assign_source_2); - } - // Frame without reuse. - frame_3da92d637f10e0e2fa696c97d85e96aa = MAKE_MODULE_FRAME(codeobj_3da92d637f10e0e2fa696c97d85e96aa, module_models$base_model); - - // Push the new frame as the currently active one, and we should be exclusively - // owning it. - pushFrameStack(frame_3da92d637f10e0e2fa696c97d85e96aa); - assert(Py_REFCNT(frame_3da92d637f10e0e2fa696c97d85e96aa) == 2); - - // Framed code: - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_assattr_target_1; - tmp_assattr_name_1 = module_filename_obj; - tmp_assattr_target_1 = GET_STRING_DICT_VALUE(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[113]); - - if (unlikely(tmp_assattr_target_1 == NULL)) { - tmp_assattr_target_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[113]); - } - - assert(!(tmp_assattr_target_1 == NULL)); - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[114], tmp_assattr_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1; - - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_2; - PyObject *tmp_assattr_target_2; - tmp_assattr_name_2 = Py_True; - tmp_assattr_target_2 = GET_STRING_DICT_VALUE(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[113]); - - if (unlikely(tmp_assattr_target_2 == NULL)) { - tmp_assattr_target_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[113]); - } - - assert(!(tmp_assattr_target_2 == NULL)); - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_2, mod_consts[115], tmp_assattr_name_2); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1; - - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assign_source_3; - tmp_assign_source_3 = Py_None; - UPDATE_STRING_DICT0(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[116], tmp_assign_source_3); - } - { - PyObject *tmp_assign_source_4; - PyObject *tmp_name_name_1; - PyObject *tmp_globals_arg_name_1; - PyObject *tmp_locals_arg_name_1; - PyObject *tmp_fromlist_name_1; - PyObject *tmp_level_name_1; - tmp_name_name_1 = mod_consts[20]; - tmp_globals_arg_name_1 = (PyObject *)moduledict_models$base_model; - tmp_locals_arg_name_1 = Py_None; - tmp_fromlist_name_1 = Py_None; - tmp_level_name_1 = mod_consts[45]; - frame_3da92d637f10e0e2fa696c97d85e96aa->m_frame.f_lineno = 8; - tmp_assign_source_4 = IMPORT_MODULE5(tmp_name_name_1, tmp_globals_arg_name_1, tmp_locals_arg_name_1, tmp_fromlist_name_1, tmp_level_name_1); - if (tmp_assign_source_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 8; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[20], tmp_assign_source_4); - } - { - PyObject *tmp_assign_source_5; - frame_3da92d637f10e0e2fa696c97d85e96aa->m_frame.f_lineno = 9; - tmp_assign_source_5 = IMPORT_HARD_OS(); - assert(!(tmp_assign_source_5 == NULL)); - UPDATE_STRING_DICT0(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[10], tmp_assign_source_5); - } - { - PyObject *tmp_assign_source_6; - PyObject *tmp_name_name_2; - PyObject *tmp_globals_arg_name_2; - PyObject *tmp_locals_arg_name_2; - PyObject *tmp_fromlist_name_2; - PyObject *tmp_level_name_2; - tmp_name_name_2 = mod_consts[117]; - tmp_globals_arg_name_2 = (PyObject *)moduledict_models$base_model; - tmp_locals_arg_name_2 = Py_None; - tmp_fromlist_name_2 = Py_None; - tmp_level_name_2 = mod_consts[45]; - frame_3da92d637f10e0e2fa696c97d85e96aa->m_frame.f_lineno = 11; - tmp_assign_source_6 = IMPORT_MODULE5(tmp_name_name_2, tmp_globals_arg_name_2, tmp_locals_arg_name_2, tmp_fromlist_name_2, tmp_level_name_2); - if (tmp_assign_source_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 11; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[103], tmp_assign_source_6); - } - { - PyObject *tmp_assign_source_7; - PyObject *tmp_name_name_3; - PyObject *tmp_globals_arg_name_3; - PyObject *tmp_locals_arg_name_3; - PyObject *tmp_fromlist_name_3; - PyObject *tmp_level_name_3; - tmp_name_name_3 = mod_consts[2]; - tmp_globals_arg_name_3 = (PyObject *)moduledict_models$base_model; - tmp_locals_arg_name_3 = Py_None; - tmp_fromlist_name_3 = Py_None; - tmp_level_name_3 = mod_consts[45]; - frame_3da92d637f10e0e2fa696c97d85e96aa->m_frame.f_lineno = 12; - tmp_assign_source_7 = IMPORT_MODULE5(tmp_name_name_3, tmp_globals_arg_name_3, tmp_locals_arg_name_3, tmp_fromlist_name_3, tmp_level_name_3); - if (tmp_assign_source_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 12; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[2], tmp_assign_source_7); - } - { - PyObject *tmp_assign_source_8; - PyObject *tmp_import_name_from_1; - PyObject *tmp_name_name_4; - PyObject *tmp_globals_arg_name_4; - PyObject *tmp_locals_arg_name_4; - PyObject *tmp_fromlist_name_4; - PyObject *tmp_level_name_4; - tmp_name_name_4 = mod_consts[118]; - tmp_globals_arg_name_4 = (PyObject *)moduledict_models$base_model; - tmp_locals_arg_name_4 = Py_None; - tmp_fromlist_name_4 = Py_None; - tmp_level_name_4 = mod_consts[45]; - frame_3da92d637f10e0e2fa696c97d85e96aa->m_frame.f_lineno = 13; - tmp_import_name_from_1 = IMPORT_MODULE5(tmp_name_name_4, tmp_globals_arg_name_4, tmp_locals_arg_name_4, tmp_fromlist_name_4, tmp_level_name_4); - if (tmp_import_name_from_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 13; - - goto frame_exception_exit_1; - } - if (PyModule_Check(tmp_import_name_from_1)) { - tmp_assign_source_8 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_1, - (PyObject *)moduledict_models$base_model, - mod_consts[119], - mod_consts[45] - ); - } else { - tmp_assign_source_8 = IMPORT_NAME(tmp_import_name_from_1, mod_consts[119]); - } - - Py_DECREF(tmp_import_name_from_1); - if (tmp_assign_source_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 13; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[119], tmp_assign_source_8); - } - { - PyObject *tmp_assign_source_9; - PyObject *tmp_name_name_5; - PyObject *tmp_globals_arg_name_5; - PyObject *tmp_locals_arg_name_5; - PyObject *tmp_fromlist_name_5; - PyObject *tmp_level_name_5; - tmp_name_name_5 = mod_consts[120]; - tmp_globals_arg_name_5 = (PyObject *)moduledict_models$base_model; - tmp_locals_arg_name_5 = Py_None; - tmp_fromlist_name_5 = mod_consts[121]; - tmp_level_name_5 = mod_consts[45]; - frame_3da92d637f10e0e2fa696c97d85e96aa->m_frame.f_lineno = 14; - tmp_assign_source_9 = IMPORT_MODULE5(tmp_name_name_5, tmp_globals_arg_name_5, tmp_locals_arg_name_5, tmp_fromlist_name_5, tmp_level_name_5); - if (tmp_assign_source_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 14; - - goto frame_exception_exit_1; - } - assert(tmp_import_from_1__module == NULL); - tmp_import_from_1__module = tmp_assign_source_9; - } - // Tried code: - { - PyObject *tmp_assign_source_10; - PyObject *tmp_import_name_from_2; - CHECK_OBJECT(tmp_import_from_1__module); - tmp_import_name_from_2 = tmp_import_from_1__module; - if (PyModule_Check(tmp_import_name_from_2)) { - tmp_assign_source_10 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_2, - (PyObject *)moduledict_models$base_model, - mod_consts[6], - mod_consts[45] - ); - } else { - tmp_assign_source_10 = IMPORT_NAME(tmp_import_name_from_2, mod_consts[6]); - } - - if (tmp_assign_source_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 14; - - goto try_except_handler_1; - } - UPDATE_STRING_DICT1(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[6], tmp_assign_source_10); - } - { - PyObject *tmp_assign_source_11; - PyObject *tmp_import_name_from_3; - CHECK_OBJECT(tmp_import_from_1__module); - tmp_import_name_from_3 = tmp_import_from_1__module; - if (PyModule_Check(tmp_import_name_from_3)) { - tmp_assign_source_11 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_3, - (PyObject *)moduledict_models$base_model, - mod_consts[91], - mod_consts[45] - ); - } else { - tmp_assign_source_11 = IMPORT_NAME(tmp_import_name_from_3, mod_consts[91]); - } - - if (tmp_assign_source_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 14; - - goto try_except_handler_1; - } - UPDATE_STRING_DICT1(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[91], tmp_assign_source_11); - } - goto try_end_1; - // 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; - - CHECK_OBJECT(tmp_import_from_1__module); - Py_DECREF(tmp_import_from_1__module); - tmp_import_from_1__module = NULL; - // 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 frame_exception_exit_1; - // End of try: - try_end_1:; - CHECK_OBJECT(tmp_import_from_1__module); - Py_DECREF(tmp_import_from_1__module); - tmp_import_from_1__module = NULL; - { - PyObject *tmp_assign_source_12; - PyObject *tmp_name_name_6; - PyObject *tmp_globals_arg_name_6; - PyObject *tmp_locals_arg_name_6; - PyObject *tmp_fromlist_name_6; - PyObject *tmp_level_name_6; - tmp_name_name_6 = mod_consts[122]; - tmp_globals_arg_name_6 = (PyObject *)moduledict_models$base_model; - tmp_locals_arg_name_6 = Py_None; - tmp_fromlist_name_6 = mod_consts[123]; - tmp_level_name_6 = mod_consts[45]; - frame_3da92d637f10e0e2fa696c97d85e96aa->m_frame.f_lineno = 15; - tmp_assign_source_12 = IMPORT_MODULE5(tmp_name_name_6, tmp_globals_arg_name_6, tmp_locals_arg_name_6, tmp_fromlist_name_6, tmp_level_name_6); - if (tmp_assign_source_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 15; - - goto frame_exception_exit_1; - } - assert(tmp_import_from_2__module == NULL); - tmp_import_from_2__module = tmp_assign_source_12; - } - // Tried code: - { - PyObject *tmp_assign_source_13; - PyObject *tmp_import_name_from_4; - CHECK_OBJECT(tmp_import_from_2__module); - tmp_import_name_from_4 = tmp_import_from_2__module; - if (PyModule_Check(tmp_import_name_from_4)) { - tmp_assign_source_13 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_4, - (PyObject *)moduledict_models$base_model, - mod_consts[35], - mod_consts[45] - ); - } else { - tmp_assign_source_13 = IMPORT_NAME(tmp_import_name_from_4, mod_consts[35]); - } - - if (tmp_assign_source_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 15; - - goto try_except_handler_2; - } - UPDATE_STRING_DICT1(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[35], tmp_assign_source_13); - } - { - PyObject *tmp_assign_source_14; - PyObject *tmp_import_name_from_5; - CHECK_OBJECT(tmp_import_from_2__module); - tmp_import_name_from_5 = tmp_import_from_2__module; - if (PyModule_Check(tmp_import_name_from_5)) { - tmp_assign_source_14 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_5, - (PyObject *)moduledict_models$base_model, - mod_consts[5], - mod_consts[45] - ); - } else { - tmp_assign_source_14 = IMPORT_NAME(tmp_import_name_from_5, mod_consts[5]); - } - - if (tmp_assign_source_14 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 15; - - goto try_except_handler_2; - } - UPDATE_STRING_DICT1(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[5], tmp_assign_source_14); - } - goto try_end_2; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(tmp_import_from_2__module); - Py_DECREF(tmp_import_from_2__module); - tmp_import_from_2__module = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto frame_exception_exit_1; - // End of try: - try_end_2:; - CHECK_OBJECT(tmp_import_from_2__module); - Py_DECREF(tmp_import_from_2__module); - tmp_import_from_2__module = NULL; - { - PyObject *tmp_assign_source_15; - PyObject *tmp_import_name_from_6; - PyObject *tmp_name_name_7; - PyObject *tmp_globals_arg_name_7; - PyObject *tmp_locals_arg_name_7; - PyObject *tmp_fromlist_name_7; - PyObject *tmp_level_name_7; - tmp_name_name_7 = mod_consts[124]; - tmp_globals_arg_name_7 = (PyObject *)moduledict_models$base_model; - tmp_locals_arg_name_7 = Py_None; - tmp_fromlist_name_7 = mod_consts[125]; - tmp_level_name_7 = mod_consts[45]; - frame_3da92d637f10e0e2fa696c97d85e96aa->m_frame.f_lineno = 16; - tmp_import_name_from_6 = IMPORT_MODULE5(tmp_name_name_7, tmp_globals_arg_name_7, tmp_locals_arg_name_7, tmp_fromlist_name_7, tmp_level_name_7); - if (tmp_import_name_from_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 16; - - goto frame_exception_exit_1; - } - if (PyModule_Check(tmp_import_name_from_6)) { - tmp_assign_source_15 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_6, - (PyObject *)moduledict_models$base_model, - mod_consts[28], - mod_consts[45] - ); - } else { - tmp_assign_source_15 = IMPORT_NAME(tmp_import_name_from_6, mod_consts[28]); - } - - Py_DECREF(tmp_import_name_from_6); - if (tmp_assign_source_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 16; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[28], tmp_assign_source_15); - } - { - PyObject *tmp_assign_source_16; - PyObject *tmp_name_name_8; - PyObject *tmp_globals_arg_name_8; - PyObject *tmp_locals_arg_name_8; - PyObject *tmp_fromlist_name_8; - PyObject *tmp_level_name_8; - tmp_name_name_8 = mod_consts[126]; - tmp_globals_arg_name_8 = (PyObject *)moduledict_models$base_model; - tmp_locals_arg_name_8 = Py_None; - tmp_fromlist_name_8 = Py_None; - tmp_level_name_8 = mod_consts[45]; - frame_3da92d637f10e0e2fa696c97d85e96aa->m_frame.f_lineno = 17; - tmp_assign_source_16 = IMPORT_MODULE5(tmp_name_name_8, tmp_globals_arg_name_8, tmp_locals_arg_name_8, tmp_fromlist_name_8, tmp_level_name_8); - if (tmp_assign_source_16 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 17; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[126], tmp_assign_source_16); - } - // Tried code: - { - PyObject *tmp_assign_source_17; - PyObject *tmp_tuple_element_1; - PyObject *tmp_expression_name_1; - tmp_expression_name_1 = GET_STRING_DICT_VALUE(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[119]); - - if (unlikely(tmp_expression_name_1 == NULL)) { - tmp_expression_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[119]); - } - - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 20; - - goto try_except_handler_3; - } - tmp_tuple_element_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[127]); - if (tmp_tuple_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 20; - - goto try_except_handler_3; - } - tmp_assign_source_17 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_assign_source_17, 0, tmp_tuple_element_1); - assert(tmp_class_creation_1__bases_orig == NULL); - tmp_class_creation_1__bases_orig = tmp_assign_source_17; - } - { - PyObject *tmp_assign_source_18; - PyObject *tmp_dircall_arg1_1; - CHECK_OBJECT(tmp_class_creation_1__bases_orig); - tmp_dircall_arg1_1 = tmp_class_creation_1__bases_orig; - Py_INCREF(tmp_dircall_arg1_1); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_1}; - tmp_assign_source_18 = impl_models$$$function__1__mro_entries_conversion(dir_call_args); - } - if (tmp_assign_source_18 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 20; - - goto try_except_handler_3; - } - assert(tmp_class_creation_1__bases == NULL); - tmp_class_creation_1__bases = tmp_assign_source_18; - } - { - PyObject *tmp_assign_source_19; - tmp_assign_source_19 = PyDict_New(); - assert(tmp_class_creation_1__class_decl_dict == NULL); - tmp_class_creation_1__class_decl_dict = tmp_assign_source_19; - } - { - PyObject *tmp_assign_source_20; - PyObject *tmp_metaclass_name_1; - nuitka_bool tmp_condition_result_1; - PyObject *tmp_key_name_1; - PyObject *tmp_dict_arg_name_1; - PyObject *tmp_dict_arg_name_2; - PyObject *tmp_key_name_2; - nuitka_bool tmp_condition_result_2; - int tmp_truth_name_1; - PyObject *tmp_type_arg_1; - PyObject *tmp_expression_name_2; - PyObject *tmp_subscript_name_1; - PyObject *tmp_bases_name_1; - tmp_key_name_1 = mod_consts[128]; - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_dict_arg_name_1 = tmp_class_creation_1__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_1, tmp_key_name_1); - assert(!(tmp_res == -1)); - tmp_condition_result_1 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto condexpr_true_1; - } else { - goto condexpr_false_1; - } - condexpr_true_1:; - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_dict_arg_name_2 = tmp_class_creation_1__class_decl_dict; - tmp_key_name_2 = mod_consts[128]; - tmp_metaclass_name_1 = DICT_GET_ITEM_WITH_ERROR(tmp_dict_arg_name_2, tmp_key_name_2); - if (tmp_metaclass_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 20; - - goto try_except_handler_3; - } - goto condexpr_end_1; - condexpr_false_1:; - CHECK_OBJECT(tmp_class_creation_1__bases); - tmp_truth_name_1 = CHECK_IF_TRUE(tmp_class_creation_1__bases); - if (tmp_truth_name_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 20; - - goto try_except_handler_3; - } - tmp_condition_result_2 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_2 == NUITKA_BOOL_TRUE) { - goto condexpr_true_2; - } else { - goto condexpr_false_2; - } - condexpr_true_2:; - CHECK_OBJECT(tmp_class_creation_1__bases); - tmp_expression_name_2 = tmp_class_creation_1__bases; - tmp_subscript_name_1 = mod_consts[45]; - tmp_type_arg_1 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_2, tmp_subscript_name_1, 0); - if (tmp_type_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 20; - - goto try_except_handler_3; - } - tmp_metaclass_name_1 = BUILTIN_TYPE1(tmp_type_arg_1); - Py_DECREF(tmp_type_arg_1); - if (tmp_metaclass_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 20; - - goto try_except_handler_3; - } - goto condexpr_end_2; - condexpr_false_2:; - tmp_metaclass_name_1 = (PyObject *)&PyType_Type; - Py_INCREF(tmp_metaclass_name_1); - condexpr_end_2:; - condexpr_end_1:; - CHECK_OBJECT(tmp_class_creation_1__bases); - tmp_bases_name_1 = tmp_class_creation_1__bases; - tmp_assign_source_20 = SELECT_METACLASS(tmp_metaclass_name_1, tmp_bases_name_1); - Py_DECREF(tmp_metaclass_name_1); - if (tmp_assign_source_20 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 20; - - goto try_except_handler_3; - } - assert(tmp_class_creation_1__metaclass == NULL); - tmp_class_creation_1__metaclass = tmp_assign_source_20; - } - { - nuitka_bool tmp_condition_result_3; - PyObject *tmp_key_name_3; - PyObject *tmp_dict_arg_name_3; - tmp_key_name_3 = mod_consts[128]; - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_dict_arg_name_3 = tmp_class_creation_1__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_3, tmp_key_name_3); - assert(!(tmp_res == -1)); - tmp_condition_result_3 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_3 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_dictdel_dict = tmp_class_creation_1__class_decl_dict; - tmp_dictdel_key = mod_consts[128]; - tmp_result = DICT_REMOVE_ITEM(tmp_dictdel_dict, tmp_dictdel_key); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 20; - - goto try_except_handler_3; - } - branch_no_1:; - { - nuitka_bool tmp_condition_result_4; - PyObject *tmp_expression_name_3; - CHECK_OBJECT(tmp_class_creation_1__metaclass); - tmp_expression_name_3 = tmp_class_creation_1__metaclass; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_3, mod_consts[129]); - tmp_condition_result_4 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_4 == NUITKA_BOOL_TRUE) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - } - branch_yes_2:; - { - PyObject *tmp_assign_source_21; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_4; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_2; - PyObject *tmp_kwargs_name_1; - CHECK_OBJECT(tmp_class_creation_1__metaclass); - tmp_expression_name_4 = tmp_class_creation_1__metaclass; - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[129]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 20; - - goto try_except_handler_3; - } - tmp_tuple_element_2 = mod_consts[130]; - tmp_args_name_1 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_1, 0, tmp_tuple_element_2); - CHECK_OBJECT(tmp_class_creation_1__bases); - tmp_tuple_element_2 = tmp_class_creation_1__bases; - PyTuple_SET_ITEM0(tmp_args_name_1, 1, tmp_tuple_element_2); - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_kwargs_name_1 = tmp_class_creation_1__class_decl_dict; - frame_3da92d637f10e0e2fa696c97d85e96aa->m_frame.f_lineno = 20; - tmp_assign_source_21 = CALL_FUNCTION(tmp_called_name_1, tmp_args_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_name_1); - if (tmp_assign_source_21 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 20; - - goto try_except_handler_3; - } - assert(tmp_class_creation_1__prepared == NULL); - tmp_class_creation_1__prepared = tmp_assign_source_21; - } - { - nuitka_bool tmp_condition_result_5; - PyObject *tmp_operand_name_1; - PyObject *tmp_expression_name_5; - CHECK_OBJECT(tmp_class_creation_1__prepared); - tmp_expression_name_5 = tmp_class_creation_1__prepared; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_5, mod_consts[131]); - tmp_operand_name_1 = (tmp_result) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 20; - - goto try_except_handler_3; - } - tmp_condition_result_5 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_5 == NUITKA_BOOL_TRUE) { - goto branch_yes_3; - } else { - goto branch_no_3; - } - } - branch_yes_3:; - { - PyObject *tmp_raise_type_1; - PyObject *tmp_raise_value_1; - PyObject *tmp_left_name_1; - PyObject *tmp_right_name_1; - PyObject *tmp_tuple_element_3; - PyObject *tmp_getattr_target_1; - PyObject *tmp_getattr_attr_1; - PyObject *tmp_getattr_default_1; - tmp_raise_type_1 = PyExc_TypeError; - tmp_left_name_1 = mod_consts[132]; - CHECK_OBJECT(tmp_class_creation_1__metaclass); - tmp_getattr_target_1 = tmp_class_creation_1__metaclass; - tmp_getattr_attr_1 = mod_consts[133]; - tmp_getattr_default_1 = mod_consts[134]; - tmp_tuple_element_3 = BUILTIN_GETATTR(tmp_getattr_target_1, tmp_getattr_attr_1, tmp_getattr_default_1); - if (tmp_tuple_element_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 20; - - goto try_except_handler_3; - } - tmp_right_name_1 = PyTuple_New(2); - { - PyObject *tmp_expression_name_6; - PyObject *tmp_type_arg_2; - PyTuple_SET_ITEM(tmp_right_name_1, 0, tmp_tuple_element_3); - CHECK_OBJECT(tmp_class_creation_1__prepared); - tmp_type_arg_2 = tmp_class_creation_1__prepared; - tmp_expression_name_6 = BUILTIN_TYPE1(tmp_type_arg_2); - assert(!(tmp_expression_name_6 == NULL)); - tmp_tuple_element_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_6, mod_consts[133]); - Py_DECREF(tmp_expression_name_6); - if (tmp_tuple_element_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 20; - - goto tuple_build_exception_1; - } - PyTuple_SET_ITEM(tmp_right_name_1, 1, tmp_tuple_element_3); - } - goto tuple_build_noexception_1; - // Exception handling pass through code for tuple_build: - tuple_build_exception_1:; - Py_DECREF(tmp_right_name_1); - goto try_except_handler_3; - // Finished with no exception for tuple_build: - tuple_build_noexception_1:; - tmp_raise_value_1 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_1, tmp_right_name_1); - Py_DECREF(tmp_right_name_1); - if (tmp_raise_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 20; - - goto try_except_handler_3; - } - exception_type = tmp_raise_type_1; - Py_INCREF(tmp_raise_type_1); - exception_value = tmp_raise_value_1; - exception_lineno = 20; - RAISE_EXCEPTION_IMPLICIT(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_3; - } - branch_no_3:; - goto branch_end_2; - branch_no_2:; - { - PyObject *tmp_assign_source_22; - tmp_assign_source_22 = PyDict_New(); - assert(tmp_class_creation_1__prepared == NULL); - tmp_class_creation_1__prepared = tmp_assign_source_22; - } - branch_end_2:; - { - PyObject *tmp_assign_source_23; - { - PyObject *tmp_set_locals_1; - CHECK_OBJECT(tmp_class_creation_1__prepared); - tmp_set_locals_1 = tmp_class_creation_1__prepared; - locals_models$base_model$$$class__1_BaseModel_20 = tmp_set_locals_1; - Py_INCREF(tmp_set_locals_1); - } - // Tried code: - // Tried code: - tmp_dictset_value = GET_STRING_DICT_VALUE(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[133]); - - if (unlikely(tmp_dictset_value == NULL)) { - tmp_dictset_value = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[133]); - } - - assert(!(tmp_dictset_value == NULL)); - tmp_res = PyObject_SetItem(locals_models$base_model$$$class__1_BaseModel_20, mod_consts[135], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 20; - - goto try_except_handler_5; - } - tmp_dictset_value = mod_consts[136]; - tmp_res = PyObject_SetItem(locals_models$base_model$$$class__1_BaseModel_20, mod_consts[111], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 20; - - goto try_except_handler_5; - } - tmp_dictset_value = mod_consts[130]; - tmp_res = PyObject_SetItem(locals_models$base_model$$$class__1_BaseModel_20, mod_consts[137], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 20; - - goto try_except_handler_5; - } - if (isFrameUnusable(cache_frame_19b8ea77f1a4d1b574ae0e072b660e0b_2)) { - Py_XDECREF(cache_frame_19b8ea77f1a4d1b574ae0e072b660e0b_2); - -#if _DEBUG_REFCOUNTS - if (cache_frame_19b8ea77f1a4d1b574ae0e072b660e0b_2 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_19b8ea77f1a4d1b574ae0e072b660e0b_2 = MAKE_FUNCTION_FRAME(codeobj_19b8ea77f1a4d1b574ae0e072b660e0b, module_models$base_model, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_19b8ea77f1a4d1b574ae0e072b660e0b_2->m_type_description == NULL); - frame_19b8ea77f1a4d1b574ae0e072b660e0b_2 = cache_frame_19b8ea77f1a4d1b574ae0e072b660e0b_2; - - // Push the new frame as the currently active one. - pushFrameStack(frame_19b8ea77f1a4d1b574ae0e072b660e0b_2); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_19b8ea77f1a4d1b574ae0e072b660e0b_2) == 2); // Frame stack - - // Framed code: - { - struct Nuitka_CellObject *tmp_closure_1[1]; - - tmp_closure_1[0] = outline_0_var___class__; - Py_INCREF(tmp_closure_1[0]); - - tmp_dictset_value = MAKE_FUNCTION_models$base_model$$$function__1___init__(tmp_closure_1); - - tmp_res = PyObject_SetItem(locals_models$base_model$$$class__1_BaseModel_20, mod_consts[1], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 23; - type_description_2 = "c"; - goto frame_exception_exit_2; - } - } - { - nuitka_bool tmp_condition_result_6; - PyObject *tmp_called_name_2; - PyObject *tmp_args_element_name_1; - PyObject *tmp_called_name_3; - PyObject *tmp_args_element_name_2; - tmp_res = MAPPING_HAS_ITEM(locals_models$base_model$$$class__1_BaseModel_20, mod_consts[139]); - - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 26; - type_description_2 = "c"; - goto frame_exception_exit_2; - } - tmp_condition_result_6 = (tmp_res == 1) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_6 == NUITKA_BOOL_TRUE) { - goto condexpr_true_3; - } else { - goto condexpr_false_3; - } - condexpr_true_3:; - tmp_called_name_2 = PyObject_GetItem(locals_models$base_model$$$class__1_BaseModel_20, mod_consts[139]); - - if (unlikely(tmp_called_name_2 == NULL && CHECK_AND_CLEAR_KEY_ERROR_OCCURRED())) { - - FORMAT_NAME_ERROR(&exception_type, &exception_value, mod_consts[139]); - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 26; - type_description_2 = "c"; - goto frame_exception_exit_2; - } - - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 26; - type_description_2 = "c"; - goto frame_exception_exit_2; - } - - - tmp_args_element_name_1 = MAKE_FUNCTION_models$base_model$$$function__2_device(); - - frame_19b8ea77f1a4d1b574ae0e072b660e0b_2->m_frame.f_lineno = 26; - tmp_dictset_value = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_2, tmp_args_element_name_1); - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_element_name_1); - if (tmp_dictset_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 26; - type_description_2 = "c"; - goto frame_exception_exit_2; - } - goto condexpr_end_3; - condexpr_false_3:; - tmp_called_name_3 = (PyObject *)&PyProperty_Type; - - - tmp_args_element_name_2 = MAKE_FUNCTION_models$base_model$$$function__2_device(); - - frame_19b8ea77f1a4d1b574ae0e072b660e0b_2->m_frame.f_lineno = 26; - tmp_dictset_value = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_3, tmp_args_element_name_2); - Py_DECREF(tmp_args_element_name_2); - if (tmp_dictset_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 26; - type_description_2 = "c"; - goto frame_exception_exit_2; - } - condexpr_end_3:; - tmp_res = PyObject_SetItem(locals_models$base_model$$$class__1_BaseModel_20, mod_consts[55], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 27; - type_description_2 = "c"; - goto frame_exception_exit_2; - } - } - - - tmp_dictset_value = MAKE_FUNCTION_models$base_model$$$function__3_load_checkpoint(); - - tmp_res = PyObject_SetItem(locals_models$base_model$$$class__1_BaseModel_20, mod_consts[41], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 32; - type_description_2 = "c"; - goto frame_exception_exit_2; - } - { - nuitka_bool tmp_condition_result_7; - PyObject *tmp_called_name_4; - PyObject *tmp_args_element_name_3; - PyObject *tmp_classmethod_arg_1; - tmp_res = MAPPING_HAS_ITEM(locals_models$base_model$$$class__1_BaseModel_20, mod_consts[142]); - - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 61; - type_description_2 = "c"; - goto frame_exception_exit_2; - } - tmp_condition_result_7 = (tmp_res == 1) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_7 == NUITKA_BOOL_TRUE) { - goto condexpr_true_4; - } else { - goto condexpr_false_4; - } - condexpr_true_4:; - tmp_called_name_4 = PyObject_GetItem(locals_models$base_model$$$class__1_BaseModel_20, mod_consts[142]); - - if (unlikely(tmp_called_name_4 == NULL && CHECK_AND_CLEAR_KEY_ERROR_OCCURRED())) { - - FORMAT_NAME_ERROR(&exception_type, &exception_value, mod_consts[142]); - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 61; - type_description_2 = "c"; - goto frame_exception_exit_2; - } - - if (tmp_called_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 61; - type_description_2 = "c"; - goto frame_exception_exit_2; - } - - - tmp_args_element_name_3 = MAKE_FUNCTION_models$base_model$$$function__4_from_pretrained(); - - frame_19b8ea77f1a4d1b574ae0e072b660e0b_2->m_frame.f_lineno = 61; - tmp_dictset_value = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_4, tmp_args_element_name_3); - Py_DECREF(tmp_called_name_4); - Py_DECREF(tmp_args_element_name_3); - if (tmp_dictset_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 61; - type_description_2 = "c"; - goto frame_exception_exit_2; - } - goto condexpr_end_4; - condexpr_false_4:; - - - tmp_classmethod_arg_1 = MAKE_FUNCTION_models$base_model$$$function__4_from_pretrained(); - - tmp_dictset_value = BUILTIN_CLASSMETHOD(tmp_classmethod_arg_1); - Py_DECREF(tmp_classmethod_arg_1); - assert(!(tmp_dictset_value == NULL)); - condexpr_end_4:; - tmp_res = PyObject_SetItem(locals_models$base_model$$$class__1_BaseModel_20, mod_consts[143], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 62; - type_description_2 = "c"; - goto frame_exception_exit_2; - } - } - { - nuitka_bool tmp_condition_result_8; - PyObject *tmp_called_name_5; - PyObject *tmp_args_element_name_4; - PyObject *tmp_classmethod_arg_2; - tmp_res = MAPPING_HAS_ITEM(locals_models$base_model$$$class__1_BaseModel_20, mod_consts[142]); - - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 77; - type_description_2 = "c"; - goto frame_exception_exit_2; - } - tmp_condition_result_8 = (tmp_res == 1) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_8 == NUITKA_BOOL_TRUE) { - goto condexpr_true_5; - } else { - goto condexpr_false_5; - } - condexpr_true_5:; - tmp_called_name_5 = PyObject_GetItem(locals_models$base_model$$$class__1_BaseModel_20, mod_consts[142]); - - if (unlikely(tmp_called_name_5 == NULL && CHECK_AND_CLEAR_KEY_ERROR_OCCURRED())) { - - FORMAT_NAME_ERROR(&exception_type, &exception_value, mod_consts[142]); - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 77; - type_description_2 = "c"; - goto frame_exception_exit_2; - } - - if (tmp_called_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 77; - type_description_2 = "c"; - goto frame_exception_exit_2; - } - - - tmp_args_element_name_4 = MAKE_FUNCTION_models$base_model$$$function__5_default_config_path(); - - frame_19b8ea77f1a4d1b574ae0e072b660e0b_2->m_frame.f_lineno = 77; - tmp_dictset_value = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_5, tmp_args_element_name_4); - Py_DECREF(tmp_called_name_5); - Py_DECREF(tmp_args_element_name_4); - if (tmp_dictset_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 77; - type_description_2 = "c"; - goto frame_exception_exit_2; - } - goto condexpr_end_5; - condexpr_false_5:; - - - tmp_classmethod_arg_2 = MAKE_FUNCTION_models$base_model$$$function__5_default_config_path(); - - tmp_dictset_value = BUILTIN_CLASSMETHOD(tmp_classmethod_arg_2); - Py_DECREF(tmp_classmethod_arg_2); - assert(!(tmp_dictset_value == NULL)); - condexpr_end_5:; - tmp_res = PyObject_SetItem(locals_models$base_model$$$class__1_BaseModel_20, mod_consts[29], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 78; - type_description_2 = "c"; - goto frame_exception_exit_2; - } - } - - - tmp_dictset_value = MAKE_FUNCTION_models$base_model$$$function__6_load_checkpoint_from_config(); - - tmp_res = PyObject_SetItem(locals_models$base_model$$$class__1_BaseModel_20, mod_consts[146], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 84; - type_description_2 = "c"; - goto frame_exception_exit_2; - } - - - tmp_dictset_value = MAKE_FUNCTION_models$base_model$$$function__7_before_evaluation(); - - tmp_res = PyObject_SetItem(locals_models$base_model$$$class__1_BaseModel_20, mod_consts[148], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 105; - type_description_2 = "c"; - goto frame_exception_exit_2; - } - { - PyObject *tmp_defaults_1; - tmp_defaults_1 = mod_consts[150]; - Py_INCREF(tmp_defaults_1); - - - tmp_dictset_value = MAKE_FUNCTION_models$base_model$$$function__8_show_n_params(tmp_defaults_1); - - tmp_res = PyObject_SetItem(locals_models$base_model$$$class__1_BaseModel_20, mod_consts[151], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 108; - type_description_2 = "c"; - goto frame_exception_exit_2; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_19b8ea77f1a4d1b574ae0e072b660e0b_2); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_2:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_19b8ea77f1a4d1b574ae0e072b660e0b_2); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_19b8ea77f1a4d1b574ae0e072b660e0b_2, exception_lineno); - } else if (exception_tb->tb_frame != &frame_19b8ea77f1a4d1b574ae0e072b660e0b_2->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_19b8ea77f1a4d1b574ae0e072b660e0b_2, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_19b8ea77f1a4d1b574ae0e072b660e0b_2, - type_description_2, - outline_0_var___class__ - ); - - - // Release cached frame if used for exception. - if (frame_19b8ea77f1a4d1b574ae0e072b660e0b_2 == cache_frame_19b8ea77f1a4d1b574ae0e072b660e0b_2) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_19b8ea77f1a4d1b574ae0e072b660e0b_2); - cache_frame_19b8ea77f1a4d1b574ae0e072b660e0b_2 = NULL; - } - - assertFrameObject(frame_19b8ea77f1a4d1b574ae0e072b660e0b_2); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_1; - - frame_no_exception_1:; - goto skip_nested_handling_1; - nested_frame_exit_1:; - - goto try_except_handler_5; - skip_nested_handling_1:; - { - nuitka_bool tmp_condition_result_9; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - CHECK_OBJECT(tmp_class_creation_1__bases); - tmp_compexpr_left_1 = tmp_class_creation_1__bases; - CHECK_OBJECT(tmp_class_creation_1__bases_orig); - tmp_compexpr_right_1 = tmp_class_creation_1__bases_orig; - tmp_condition_result_9 = RICH_COMPARE_NE_NBOOL_OBJECT_TUPLE(tmp_compexpr_left_1, tmp_compexpr_right_1); - if (tmp_condition_result_9 == NUITKA_BOOL_EXCEPTION) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 20; - - goto try_except_handler_5; - } - if (tmp_condition_result_9 == NUITKA_BOOL_TRUE) { - goto branch_yes_4; - } else { - goto branch_no_4; - } - assert(tmp_condition_result_9 != NUITKA_BOOL_UNASSIGNED); - } - branch_yes_4:; - CHECK_OBJECT(tmp_class_creation_1__bases_orig); - tmp_dictset_value = tmp_class_creation_1__bases_orig; - tmp_res = PyObject_SetItem(locals_models$base_model$$$class__1_BaseModel_20, mod_consts[153], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 20; - - goto try_except_handler_5; - } - branch_no_4:; - { - PyObject *tmp_assign_source_24; - PyObject *tmp_called_name_6; - PyObject *tmp_args_name_2; - PyObject *tmp_tuple_element_4; - PyObject *tmp_kwargs_name_2; - CHECK_OBJECT(tmp_class_creation_1__metaclass); - tmp_called_name_6 = tmp_class_creation_1__metaclass; - tmp_tuple_element_4 = mod_consts[130]; - tmp_args_name_2 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_args_name_2, 0, tmp_tuple_element_4); - CHECK_OBJECT(tmp_class_creation_1__bases); - tmp_tuple_element_4 = tmp_class_creation_1__bases; - PyTuple_SET_ITEM0(tmp_args_name_2, 1, tmp_tuple_element_4); - tmp_tuple_element_4 = locals_models$base_model$$$class__1_BaseModel_20; - PyTuple_SET_ITEM0(tmp_args_name_2, 2, tmp_tuple_element_4); - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_kwargs_name_2 = tmp_class_creation_1__class_decl_dict; - frame_3da92d637f10e0e2fa696c97d85e96aa->m_frame.f_lineno = 20; - tmp_assign_source_24 = CALL_FUNCTION(tmp_called_name_6, tmp_args_name_2, tmp_kwargs_name_2); - Py_DECREF(tmp_args_name_2); - if (tmp_assign_source_24 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 20; - - goto try_except_handler_5; - } - { - PyObject *old = Nuitka_Cell_GET(outline_0_var___class__); - PyCell_SET(outline_0_var___class__, tmp_assign_source_24); - Py_XDECREF(old); - } - - } - CHECK_OBJECT(Nuitka_Cell_GET(outline_0_var___class__)); - tmp_assign_source_23 = Nuitka_Cell_GET(outline_0_var___class__); - Py_INCREF(tmp_assign_source_23); - goto try_return_handler_5; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_5:; - Py_DECREF(locals_models$base_model$$$class__1_BaseModel_20); - locals_models$base_model$$$class__1_BaseModel_20 = NULL; - goto try_return_handler_4; - // Exception handler code: - try_except_handler_5:; - exception_keeper_type_3 = exception_type; - exception_keeper_value_3 = exception_value; - exception_keeper_tb_3 = exception_tb; - exception_keeper_lineno_3 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_DECREF(locals_models$base_model$$$class__1_BaseModel_20); - locals_models$base_model$$$class__1_BaseModel_20 = NULL; - // Re-raise. - exception_type = exception_keeper_type_3; - exception_value = exception_keeper_value_3; - exception_tb = exception_keeper_tb_3; - exception_lineno = exception_keeper_lineno_3; - - goto try_except_handler_4; - // End of try: - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_4:; - CHECK_OBJECT(outline_0_var___class__); - Py_DECREF(outline_0_var___class__); - outline_0_var___class__ = NULL; - goto outline_result_1; - // Exception handler code: - try_except_handler_4:; - exception_keeper_type_4 = exception_type; - exception_keeper_value_4 = exception_value; - exception_keeper_tb_4 = exception_tb; - exception_keeper_lineno_4 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(outline_0_var___class__); - Py_DECREF(outline_0_var___class__); - outline_0_var___class__ = NULL; - // Re-raise. - exception_type = exception_keeper_type_4; - exception_value = exception_keeper_value_4; - exception_tb = exception_keeper_tb_4; - exception_lineno = exception_keeper_lineno_4; - - goto outline_exception_1; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_1:; - exception_lineno = 20; - goto try_except_handler_3; - outline_result_1:; - UPDATE_STRING_DICT1(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[130], tmp_assign_source_23); - } - goto try_end_3; - // Exception handler code: - try_except_handler_3:; - exception_keeper_type_5 = exception_type; - exception_keeper_value_5 = exception_value; - exception_keeper_tb_5 = exception_tb; - exception_keeper_lineno_5 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_class_creation_1__bases_orig); - tmp_class_creation_1__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_1__bases); - tmp_class_creation_1__bases = NULL; - Py_XDECREF(tmp_class_creation_1__class_decl_dict); - tmp_class_creation_1__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_1__metaclass); - tmp_class_creation_1__metaclass = NULL; - Py_XDECREF(tmp_class_creation_1__prepared); - tmp_class_creation_1__prepared = NULL; - // Re-raise. - exception_type = exception_keeper_type_5; - exception_value = exception_keeper_value_5; - exception_tb = exception_keeper_tb_5; - exception_lineno = exception_keeper_lineno_5; - - goto frame_exception_exit_1; - // End of try: - try_end_3:; - CHECK_OBJECT(tmp_class_creation_1__bases_orig); - Py_DECREF(tmp_class_creation_1__bases_orig); - tmp_class_creation_1__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_1__bases); - tmp_class_creation_1__bases = NULL; - Py_XDECREF(tmp_class_creation_1__class_decl_dict); - tmp_class_creation_1__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_1__metaclass); - tmp_class_creation_1__metaclass = NULL; - CHECK_OBJECT(tmp_class_creation_1__prepared); - Py_DECREF(tmp_class_creation_1__prepared); - tmp_class_creation_1__prepared = NULL; - // Tried code: - { - PyObject *tmp_assign_source_25; - PyObject *tmp_tuple_element_5; - PyObject *tmp_expression_name_7; - tmp_expression_name_7 = GET_STRING_DICT_VALUE(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[119]); - - if (unlikely(tmp_expression_name_7 == NULL)) { - tmp_expression_name_7 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[119]); - } - - if (tmp_expression_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 124; - - goto try_except_handler_6; - } - tmp_tuple_element_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_7, mod_consts[127]); - if (tmp_tuple_element_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 124; - - goto try_except_handler_6; - } - tmp_assign_source_25 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_assign_source_25, 0, tmp_tuple_element_5); - assert(tmp_class_creation_2__bases_orig == NULL); - tmp_class_creation_2__bases_orig = tmp_assign_source_25; - } - { - PyObject *tmp_assign_source_26; - PyObject *tmp_dircall_arg1_2; - CHECK_OBJECT(tmp_class_creation_2__bases_orig); - tmp_dircall_arg1_2 = tmp_class_creation_2__bases_orig; - Py_INCREF(tmp_dircall_arg1_2); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_2}; - tmp_assign_source_26 = impl_models$$$function__1__mro_entries_conversion(dir_call_args); - } - if (tmp_assign_source_26 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 124; - - goto try_except_handler_6; - } - assert(tmp_class_creation_2__bases == NULL); - tmp_class_creation_2__bases = tmp_assign_source_26; - } - { - PyObject *tmp_assign_source_27; - tmp_assign_source_27 = PyDict_New(); - assert(tmp_class_creation_2__class_decl_dict == NULL); - tmp_class_creation_2__class_decl_dict = tmp_assign_source_27; - } - { - PyObject *tmp_assign_source_28; - PyObject *tmp_metaclass_name_2; - nuitka_bool tmp_condition_result_10; - PyObject *tmp_key_name_4; - PyObject *tmp_dict_arg_name_4; - PyObject *tmp_dict_arg_name_5; - PyObject *tmp_key_name_5; - nuitka_bool tmp_condition_result_11; - int tmp_truth_name_2; - PyObject *tmp_type_arg_3; - PyObject *tmp_expression_name_8; - PyObject *tmp_subscript_name_2; - PyObject *tmp_bases_name_2; - tmp_key_name_4 = mod_consts[128]; - CHECK_OBJECT(tmp_class_creation_2__class_decl_dict); - tmp_dict_arg_name_4 = tmp_class_creation_2__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_4, tmp_key_name_4); - assert(!(tmp_res == -1)); - tmp_condition_result_10 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_10 == NUITKA_BOOL_TRUE) { - goto condexpr_true_6; - } else { - goto condexpr_false_6; - } - condexpr_true_6:; - CHECK_OBJECT(tmp_class_creation_2__class_decl_dict); - tmp_dict_arg_name_5 = tmp_class_creation_2__class_decl_dict; - tmp_key_name_5 = mod_consts[128]; - tmp_metaclass_name_2 = DICT_GET_ITEM_WITH_ERROR(tmp_dict_arg_name_5, tmp_key_name_5); - if (tmp_metaclass_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 124; - - goto try_except_handler_6; - } - goto condexpr_end_6; - condexpr_false_6:; - CHECK_OBJECT(tmp_class_creation_2__bases); - tmp_truth_name_2 = CHECK_IF_TRUE(tmp_class_creation_2__bases); - if (tmp_truth_name_2 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 124; - - goto try_except_handler_6; - } - tmp_condition_result_11 = tmp_truth_name_2 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_11 == NUITKA_BOOL_TRUE) { - goto condexpr_true_7; - } else { - goto condexpr_false_7; - } - condexpr_true_7:; - CHECK_OBJECT(tmp_class_creation_2__bases); - tmp_expression_name_8 = tmp_class_creation_2__bases; - tmp_subscript_name_2 = mod_consts[45]; - tmp_type_arg_3 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_8, tmp_subscript_name_2, 0); - if (tmp_type_arg_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 124; - - goto try_except_handler_6; - } - tmp_metaclass_name_2 = BUILTIN_TYPE1(tmp_type_arg_3); - Py_DECREF(tmp_type_arg_3); - if (tmp_metaclass_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 124; - - goto try_except_handler_6; - } - goto condexpr_end_7; - condexpr_false_7:; - tmp_metaclass_name_2 = (PyObject *)&PyType_Type; - Py_INCREF(tmp_metaclass_name_2); - condexpr_end_7:; - condexpr_end_6:; - CHECK_OBJECT(tmp_class_creation_2__bases); - tmp_bases_name_2 = tmp_class_creation_2__bases; - tmp_assign_source_28 = SELECT_METACLASS(tmp_metaclass_name_2, tmp_bases_name_2); - Py_DECREF(tmp_metaclass_name_2); - if (tmp_assign_source_28 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 124; - - goto try_except_handler_6; - } - assert(tmp_class_creation_2__metaclass == NULL); - tmp_class_creation_2__metaclass = tmp_assign_source_28; - } - { - nuitka_bool tmp_condition_result_12; - PyObject *tmp_key_name_6; - PyObject *tmp_dict_arg_name_6; - tmp_key_name_6 = mod_consts[128]; - CHECK_OBJECT(tmp_class_creation_2__class_decl_dict); - tmp_dict_arg_name_6 = tmp_class_creation_2__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_6, tmp_key_name_6); - assert(!(tmp_res == -1)); - tmp_condition_result_12 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_12 == NUITKA_BOOL_TRUE) { - goto branch_yes_5; - } else { - goto branch_no_5; - } - } - branch_yes_5:; - CHECK_OBJECT(tmp_class_creation_2__class_decl_dict); - tmp_dictdel_dict = tmp_class_creation_2__class_decl_dict; - tmp_dictdel_key = mod_consts[128]; - tmp_result = DICT_REMOVE_ITEM(tmp_dictdel_dict, tmp_dictdel_key); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 124; - - goto try_except_handler_6; - } - branch_no_5:; - { - nuitka_bool tmp_condition_result_13; - PyObject *tmp_expression_name_9; - CHECK_OBJECT(tmp_class_creation_2__metaclass); - tmp_expression_name_9 = tmp_class_creation_2__metaclass; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_9, mod_consts[129]); - tmp_condition_result_13 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_13 == NUITKA_BOOL_TRUE) { - goto branch_yes_6; - } else { - goto branch_no_6; - } - } - branch_yes_6:; - { - PyObject *tmp_assign_source_29; - PyObject *tmp_called_name_7; - PyObject *tmp_expression_name_10; - PyObject *tmp_args_name_3; - PyObject *tmp_tuple_element_6; - PyObject *tmp_kwargs_name_3; - CHECK_OBJECT(tmp_class_creation_2__metaclass); - tmp_expression_name_10 = tmp_class_creation_2__metaclass; - tmp_called_name_7 = LOOKUP_ATTRIBUTE(tmp_expression_name_10, mod_consts[129]); - if (tmp_called_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 124; - - goto try_except_handler_6; - } - tmp_tuple_element_6 = mod_consts[154]; - tmp_args_name_3 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_3, 0, tmp_tuple_element_6); - CHECK_OBJECT(tmp_class_creation_2__bases); - tmp_tuple_element_6 = tmp_class_creation_2__bases; - PyTuple_SET_ITEM0(tmp_args_name_3, 1, tmp_tuple_element_6); - CHECK_OBJECT(tmp_class_creation_2__class_decl_dict); - tmp_kwargs_name_3 = tmp_class_creation_2__class_decl_dict; - frame_3da92d637f10e0e2fa696c97d85e96aa->m_frame.f_lineno = 124; - tmp_assign_source_29 = CALL_FUNCTION(tmp_called_name_7, tmp_args_name_3, tmp_kwargs_name_3); - Py_DECREF(tmp_called_name_7); - Py_DECREF(tmp_args_name_3); - if (tmp_assign_source_29 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 124; - - goto try_except_handler_6; - } - assert(tmp_class_creation_2__prepared == NULL); - tmp_class_creation_2__prepared = tmp_assign_source_29; - } - { - nuitka_bool tmp_condition_result_14; - PyObject *tmp_operand_name_2; - PyObject *tmp_expression_name_11; - CHECK_OBJECT(tmp_class_creation_2__prepared); - tmp_expression_name_11 = tmp_class_creation_2__prepared; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_11, mod_consts[131]); - tmp_operand_name_2 = (tmp_result) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_2); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 124; - - goto try_except_handler_6; - } - tmp_condition_result_14 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_14 == NUITKA_BOOL_TRUE) { - goto branch_yes_7; - } else { - goto branch_no_7; - } - } - branch_yes_7:; - { - PyObject *tmp_raise_type_2; - PyObject *tmp_raise_value_2; - PyObject *tmp_left_name_2; - PyObject *tmp_right_name_2; - PyObject *tmp_tuple_element_7; - PyObject *tmp_getattr_target_2; - PyObject *tmp_getattr_attr_2; - PyObject *tmp_getattr_default_2; - tmp_raise_type_2 = PyExc_TypeError; - tmp_left_name_2 = mod_consts[132]; - CHECK_OBJECT(tmp_class_creation_2__metaclass); - tmp_getattr_target_2 = tmp_class_creation_2__metaclass; - tmp_getattr_attr_2 = mod_consts[133]; - tmp_getattr_default_2 = mod_consts[134]; - tmp_tuple_element_7 = BUILTIN_GETATTR(tmp_getattr_target_2, tmp_getattr_attr_2, tmp_getattr_default_2); - if (tmp_tuple_element_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 124; - - goto try_except_handler_6; - } - tmp_right_name_2 = PyTuple_New(2); - { - PyObject *tmp_expression_name_12; - PyObject *tmp_type_arg_4; - PyTuple_SET_ITEM(tmp_right_name_2, 0, tmp_tuple_element_7); - CHECK_OBJECT(tmp_class_creation_2__prepared); - tmp_type_arg_4 = tmp_class_creation_2__prepared; - tmp_expression_name_12 = BUILTIN_TYPE1(tmp_type_arg_4); - assert(!(tmp_expression_name_12 == NULL)); - tmp_tuple_element_7 = LOOKUP_ATTRIBUTE(tmp_expression_name_12, mod_consts[133]); - Py_DECREF(tmp_expression_name_12); - if (tmp_tuple_element_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 124; - - goto tuple_build_exception_2; - } - PyTuple_SET_ITEM(tmp_right_name_2, 1, tmp_tuple_element_7); - } - goto tuple_build_noexception_2; - // Exception handling pass through code for tuple_build: - tuple_build_exception_2:; - Py_DECREF(tmp_right_name_2); - goto try_except_handler_6; - // Finished with no exception for tuple_build: - tuple_build_noexception_2:; - tmp_raise_value_2 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_2, tmp_right_name_2); - Py_DECREF(tmp_right_name_2); - if (tmp_raise_value_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 124; - - goto try_except_handler_6; - } - exception_type = tmp_raise_type_2; - Py_INCREF(tmp_raise_type_2); - exception_value = tmp_raise_value_2; - exception_lineno = 124; - RAISE_EXCEPTION_IMPLICIT(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_6; - } - branch_no_7:; - goto branch_end_6; - branch_no_6:; - { - PyObject *tmp_assign_source_30; - tmp_assign_source_30 = PyDict_New(); - assert(tmp_class_creation_2__prepared == NULL); - tmp_class_creation_2__prepared = tmp_assign_source_30; - } - branch_end_6:; - { - PyObject *tmp_assign_source_31; - { - PyObject *tmp_set_locals_2; - CHECK_OBJECT(tmp_class_creation_2__prepared); - tmp_set_locals_2 = tmp_class_creation_2__prepared; - locals_models$base_model$$$class__2_BaseEncoder_124 = tmp_set_locals_2; - Py_INCREF(tmp_set_locals_2); - } - // Tried code: - // Tried code: - tmp_dictset_value = GET_STRING_DICT_VALUE(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[133]); - - if (unlikely(tmp_dictset_value == NULL)) { - tmp_dictset_value = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[133]); - } - - assert(!(tmp_dictset_value == NULL)); - tmp_res = PyObject_SetItem(locals_models$base_model$$$class__2_BaseEncoder_124, mod_consts[135], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 124; - - goto try_except_handler_8; - } - tmp_dictset_value = mod_consts[155]; - tmp_res = PyObject_SetItem(locals_models$base_model$$$class__2_BaseEncoder_124, mod_consts[111], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 124; - - goto try_except_handler_8; - } - tmp_dictset_value = mod_consts[154]; - tmp_res = PyObject_SetItem(locals_models$base_model$$$class__2_BaseEncoder_124, mod_consts[137], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 124; - - goto try_except_handler_8; - } - if (isFrameUnusable(cache_frame_9f6b0b8f837711c1f7a8dbc49dea079b_3)) { - Py_XDECREF(cache_frame_9f6b0b8f837711c1f7a8dbc49dea079b_3); - -#if _DEBUG_REFCOUNTS - if (cache_frame_9f6b0b8f837711c1f7a8dbc49dea079b_3 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_9f6b0b8f837711c1f7a8dbc49dea079b_3 = MAKE_FUNCTION_FRAME(codeobj_9f6b0b8f837711c1f7a8dbc49dea079b, module_models$base_model, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_9f6b0b8f837711c1f7a8dbc49dea079b_3->m_type_description == NULL); - frame_9f6b0b8f837711c1f7a8dbc49dea079b_3 = cache_frame_9f6b0b8f837711c1f7a8dbc49dea079b_3; - - // Push the new frame as the currently active one. - pushFrameStack(frame_9f6b0b8f837711c1f7a8dbc49dea079b_3); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_9f6b0b8f837711c1f7a8dbc49dea079b_3) == 2); // Frame stack - - // Framed code: - { - struct Nuitka_CellObject *tmp_closure_2[1]; - - tmp_closure_2[0] = outline_1_var___class__; - Py_INCREF(tmp_closure_2[0]); - - tmp_dictset_value = MAKE_FUNCTION_models$base_model$$$function__9___init__(tmp_closure_2); - - tmp_res = PyObject_SetItem(locals_models$base_model$$$class__2_BaseEncoder_124, mod_consts[1], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 129; - type_description_2 = "c"; - goto frame_exception_exit_3; - } - } - - - tmp_dictset_value = MAKE_FUNCTION_models$base_model$$$function__10_forward_features(); - - tmp_res = PyObject_SetItem(locals_models$base_model$$$class__2_BaseEncoder_124, mod_consts[157], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 132; - type_description_2 = "c"; - goto frame_exception_exit_3; - } - { - nuitka_bool tmp_condition_result_15; - PyObject *tmp_called_name_8; - PyObject *tmp_args_element_name_5; - PyObject *tmp_called_name_9; - PyObject *tmp_args_element_name_6; - tmp_res = MAPPING_HAS_ITEM(locals_models$base_model$$$class__2_BaseEncoder_124, mod_consts[139]); - - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 135; - type_description_2 = "c"; - goto frame_exception_exit_3; - } - tmp_condition_result_15 = (tmp_res == 1) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_15 == NUITKA_BOOL_TRUE) { - goto condexpr_true_8; - } else { - goto condexpr_false_8; - } - condexpr_true_8:; - tmp_called_name_8 = PyObject_GetItem(locals_models$base_model$$$class__2_BaseEncoder_124, mod_consts[139]); - - if (unlikely(tmp_called_name_8 == NULL && CHECK_AND_CLEAR_KEY_ERROR_OCCURRED())) { - - FORMAT_NAME_ERROR(&exception_type, &exception_value, mod_consts[139]); - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 135; - type_description_2 = "c"; - goto frame_exception_exit_3; - } - - if (tmp_called_name_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 135; - type_description_2 = "c"; - goto frame_exception_exit_3; - } - - - tmp_args_element_name_5 = MAKE_FUNCTION_models$base_model$$$function__11_device(); - - frame_9f6b0b8f837711c1f7a8dbc49dea079b_3->m_frame.f_lineno = 135; - tmp_dictset_value = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_8, tmp_args_element_name_5); - Py_DECREF(tmp_called_name_8); - Py_DECREF(tmp_args_element_name_5); - if (tmp_dictset_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 135; - type_description_2 = "c"; - goto frame_exception_exit_3; - } - goto condexpr_end_8; - condexpr_false_8:; - tmp_called_name_9 = (PyObject *)&PyProperty_Type; - - - tmp_args_element_name_6 = MAKE_FUNCTION_models$base_model$$$function__11_device(); - - frame_9f6b0b8f837711c1f7a8dbc49dea079b_3->m_frame.f_lineno = 135; - tmp_dictset_value = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_9, tmp_args_element_name_6); - Py_DECREF(tmp_args_element_name_6); - if (tmp_dictset_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 135; - type_description_2 = "c"; - goto frame_exception_exit_3; - } - condexpr_end_8:; - tmp_res = PyObject_SetItem(locals_models$base_model$$$class__2_BaseEncoder_124, mod_consts[55], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 136; - type_description_2 = "c"; - goto frame_exception_exit_3; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_9f6b0b8f837711c1f7a8dbc49dea079b_3); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_2; - - frame_exception_exit_3:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_9f6b0b8f837711c1f7a8dbc49dea079b_3); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_9f6b0b8f837711c1f7a8dbc49dea079b_3, exception_lineno); - } else if (exception_tb->tb_frame != &frame_9f6b0b8f837711c1f7a8dbc49dea079b_3->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_9f6b0b8f837711c1f7a8dbc49dea079b_3, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_9f6b0b8f837711c1f7a8dbc49dea079b_3, - type_description_2, - outline_1_var___class__ - ); - - - // Release cached frame if used for exception. - if (frame_9f6b0b8f837711c1f7a8dbc49dea079b_3 == cache_frame_9f6b0b8f837711c1f7a8dbc49dea079b_3) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_9f6b0b8f837711c1f7a8dbc49dea079b_3); - cache_frame_9f6b0b8f837711c1f7a8dbc49dea079b_3 = NULL; - } - - assertFrameObject(frame_9f6b0b8f837711c1f7a8dbc49dea079b_3); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_2; - - frame_no_exception_2:; - goto skip_nested_handling_2; - nested_frame_exit_2:; - - goto try_except_handler_8; - skip_nested_handling_2:; - { - nuitka_bool tmp_condition_result_16; - PyObject *tmp_compexpr_left_2; - PyObject *tmp_compexpr_right_2; - CHECK_OBJECT(tmp_class_creation_2__bases); - tmp_compexpr_left_2 = tmp_class_creation_2__bases; - CHECK_OBJECT(tmp_class_creation_2__bases_orig); - tmp_compexpr_right_2 = tmp_class_creation_2__bases_orig; - tmp_condition_result_16 = RICH_COMPARE_NE_NBOOL_OBJECT_TUPLE(tmp_compexpr_left_2, tmp_compexpr_right_2); - if (tmp_condition_result_16 == NUITKA_BOOL_EXCEPTION) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 124; - - goto try_except_handler_8; - } - if (tmp_condition_result_16 == NUITKA_BOOL_TRUE) { - goto branch_yes_8; - } else { - goto branch_no_8; - } - assert(tmp_condition_result_16 != NUITKA_BOOL_UNASSIGNED); - } - branch_yes_8:; - CHECK_OBJECT(tmp_class_creation_2__bases_orig); - tmp_dictset_value = tmp_class_creation_2__bases_orig; - tmp_res = PyObject_SetItem(locals_models$base_model$$$class__2_BaseEncoder_124, mod_consts[153], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 124; - - goto try_except_handler_8; - } - branch_no_8:; - { - PyObject *tmp_assign_source_32; - PyObject *tmp_called_name_10; - PyObject *tmp_args_name_4; - PyObject *tmp_tuple_element_8; - PyObject *tmp_kwargs_name_4; - CHECK_OBJECT(tmp_class_creation_2__metaclass); - tmp_called_name_10 = tmp_class_creation_2__metaclass; - tmp_tuple_element_8 = mod_consts[154]; - tmp_args_name_4 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_args_name_4, 0, tmp_tuple_element_8); - CHECK_OBJECT(tmp_class_creation_2__bases); - tmp_tuple_element_8 = tmp_class_creation_2__bases; - PyTuple_SET_ITEM0(tmp_args_name_4, 1, tmp_tuple_element_8); - tmp_tuple_element_8 = locals_models$base_model$$$class__2_BaseEncoder_124; - PyTuple_SET_ITEM0(tmp_args_name_4, 2, tmp_tuple_element_8); - CHECK_OBJECT(tmp_class_creation_2__class_decl_dict); - tmp_kwargs_name_4 = tmp_class_creation_2__class_decl_dict; - frame_3da92d637f10e0e2fa696c97d85e96aa->m_frame.f_lineno = 124; - tmp_assign_source_32 = CALL_FUNCTION(tmp_called_name_10, tmp_args_name_4, tmp_kwargs_name_4); - Py_DECREF(tmp_args_name_4); - if (tmp_assign_source_32 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 124; - - goto try_except_handler_8; - } - { - PyObject *old = Nuitka_Cell_GET(outline_1_var___class__); - PyCell_SET(outline_1_var___class__, tmp_assign_source_32); - Py_XDECREF(old); - } - - } - CHECK_OBJECT(Nuitka_Cell_GET(outline_1_var___class__)); - tmp_assign_source_31 = Nuitka_Cell_GET(outline_1_var___class__); - Py_INCREF(tmp_assign_source_31); - goto try_return_handler_8; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_8:; - Py_DECREF(locals_models$base_model$$$class__2_BaseEncoder_124); - locals_models$base_model$$$class__2_BaseEncoder_124 = NULL; - goto try_return_handler_7; - // Exception handler code: - try_except_handler_8:; - exception_keeper_type_6 = exception_type; - exception_keeper_value_6 = exception_value; - exception_keeper_tb_6 = exception_tb; - exception_keeper_lineno_6 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_DECREF(locals_models$base_model$$$class__2_BaseEncoder_124); - locals_models$base_model$$$class__2_BaseEncoder_124 = NULL; - // Re-raise. - exception_type = exception_keeper_type_6; - exception_value = exception_keeper_value_6; - exception_tb = exception_keeper_tb_6; - exception_lineno = exception_keeper_lineno_6; - - goto try_except_handler_7; - // End of try: - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_7:; - CHECK_OBJECT(outline_1_var___class__); - Py_DECREF(outline_1_var___class__); - outline_1_var___class__ = NULL; - goto outline_result_2; - // Exception handler code: - try_except_handler_7:; - exception_keeper_type_7 = exception_type; - exception_keeper_value_7 = exception_value; - exception_keeper_tb_7 = exception_tb; - exception_keeper_lineno_7 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(outline_1_var___class__); - Py_DECREF(outline_1_var___class__); - outline_1_var___class__ = NULL; - // Re-raise. - exception_type = exception_keeper_type_7; - exception_value = exception_keeper_value_7; - exception_tb = exception_keeper_tb_7; - exception_lineno = exception_keeper_lineno_7; - - goto outline_exception_2; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_2:; - exception_lineno = 124; - goto try_except_handler_6; - outline_result_2:; - UPDATE_STRING_DICT1(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[154], tmp_assign_source_31); - } - goto try_end_4; - // Exception handler code: - try_except_handler_6:; - exception_keeper_type_8 = exception_type; - exception_keeper_value_8 = exception_value; - exception_keeper_tb_8 = exception_tb; - exception_keeper_lineno_8 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_class_creation_2__bases_orig); - tmp_class_creation_2__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_2__bases); - tmp_class_creation_2__bases = NULL; - Py_XDECREF(tmp_class_creation_2__class_decl_dict); - tmp_class_creation_2__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_2__metaclass); - tmp_class_creation_2__metaclass = NULL; - Py_XDECREF(tmp_class_creation_2__prepared); - tmp_class_creation_2__prepared = NULL; - // Re-raise. - exception_type = exception_keeper_type_8; - exception_value = exception_keeper_value_8; - exception_tb = exception_keeper_tb_8; - exception_lineno = exception_keeper_lineno_8; - - goto frame_exception_exit_1; - // End of try: - try_end_4:; - CHECK_OBJECT(tmp_class_creation_2__bases_orig); - Py_DECREF(tmp_class_creation_2__bases_orig); - tmp_class_creation_2__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_2__bases); - tmp_class_creation_2__bases = NULL; - Py_XDECREF(tmp_class_creation_2__class_decl_dict); - tmp_class_creation_2__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_2__metaclass); - tmp_class_creation_2__metaclass = NULL; - CHECK_OBJECT(tmp_class_creation_2__prepared); - Py_DECREF(tmp_class_creation_2__prepared); - tmp_class_creation_2__prepared = NULL; - { - PyObject *tmp_assign_source_33; - tmp_assign_source_33 = PyDict_New(); - assert(tmp_class_creation_3__class_decl_dict == NULL); - tmp_class_creation_3__class_decl_dict = tmp_assign_source_33; - } - // Tried code: - { - PyObject *tmp_assign_source_34; - PyObject *tmp_metaclass_name_3; - nuitka_bool tmp_condition_result_17; - PyObject *tmp_key_name_7; - PyObject *tmp_dict_arg_name_7; - PyObject *tmp_dict_arg_name_8; - PyObject *tmp_key_name_8; - PyObject *tmp_bases_name_3; - tmp_key_name_7 = mod_consts[128]; - CHECK_OBJECT(tmp_class_creation_3__class_decl_dict); - tmp_dict_arg_name_7 = tmp_class_creation_3__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_7, tmp_key_name_7); - assert(!(tmp_res == -1)); - tmp_condition_result_17 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_17 == NUITKA_BOOL_TRUE) { - goto condexpr_true_9; - } else { - goto condexpr_false_9; - } - condexpr_true_9:; - CHECK_OBJECT(tmp_class_creation_3__class_decl_dict); - tmp_dict_arg_name_8 = tmp_class_creation_3__class_decl_dict; - tmp_key_name_8 = mod_consts[128]; - tmp_metaclass_name_3 = DICT_GET_ITEM_WITH_ERROR(tmp_dict_arg_name_8, tmp_key_name_8); - if (tmp_metaclass_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 140; - - goto try_except_handler_9; - } - goto condexpr_end_9; - condexpr_false_9:; - tmp_metaclass_name_3 = (PyObject *)&PyType_Type; - Py_INCREF(tmp_metaclass_name_3); - condexpr_end_9:; - tmp_bases_name_3 = mod_consts[160]; - tmp_assign_source_34 = SELECT_METACLASS(tmp_metaclass_name_3, tmp_bases_name_3); - Py_DECREF(tmp_metaclass_name_3); - if (tmp_assign_source_34 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 140; - - goto try_except_handler_9; - } - assert(tmp_class_creation_3__metaclass == NULL); - tmp_class_creation_3__metaclass = tmp_assign_source_34; - } - { - nuitka_bool tmp_condition_result_18; - PyObject *tmp_key_name_9; - PyObject *tmp_dict_arg_name_9; - tmp_key_name_9 = mod_consts[128]; - CHECK_OBJECT(tmp_class_creation_3__class_decl_dict); - tmp_dict_arg_name_9 = tmp_class_creation_3__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_9, tmp_key_name_9); - assert(!(tmp_res == -1)); - tmp_condition_result_18 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_18 == NUITKA_BOOL_TRUE) { - goto branch_yes_9; - } else { - goto branch_no_9; - } - } - branch_yes_9:; - CHECK_OBJECT(tmp_class_creation_3__class_decl_dict); - tmp_dictdel_dict = tmp_class_creation_3__class_decl_dict; - tmp_dictdel_key = mod_consts[128]; - tmp_result = DICT_REMOVE_ITEM(tmp_dictdel_dict, tmp_dictdel_key); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 140; - - goto try_except_handler_9; - } - branch_no_9:; - { - nuitka_bool tmp_condition_result_19; - PyObject *tmp_expression_name_13; - CHECK_OBJECT(tmp_class_creation_3__metaclass); - tmp_expression_name_13 = tmp_class_creation_3__metaclass; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_13, mod_consts[129]); - tmp_condition_result_19 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_19 == NUITKA_BOOL_TRUE) { - goto branch_yes_10; - } else { - goto branch_no_10; - } - } - branch_yes_10:; - { - PyObject *tmp_assign_source_35; - PyObject *tmp_called_name_11; - PyObject *tmp_expression_name_14; - PyObject *tmp_args_name_5; - PyObject *tmp_kwargs_name_5; - CHECK_OBJECT(tmp_class_creation_3__metaclass); - tmp_expression_name_14 = tmp_class_creation_3__metaclass; - tmp_called_name_11 = LOOKUP_ATTRIBUTE(tmp_expression_name_14, mod_consts[129]); - if (tmp_called_name_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 140; - - goto try_except_handler_9; - } - tmp_args_name_5 = mod_consts[161]; - CHECK_OBJECT(tmp_class_creation_3__class_decl_dict); - tmp_kwargs_name_5 = tmp_class_creation_3__class_decl_dict; - frame_3da92d637f10e0e2fa696c97d85e96aa->m_frame.f_lineno = 140; - tmp_assign_source_35 = CALL_FUNCTION(tmp_called_name_11, tmp_args_name_5, tmp_kwargs_name_5); - Py_DECREF(tmp_called_name_11); - if (tmp_assign_source_35 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 140; - - goto try_except_handler_9; - } - assert(tmp_class_creation_3__prepared == NULL); - tmp_class_creation_3__prepared = tmp_assign_source_35; - } - { - nuitka_bool tmp_condition_result_20; - PyObject *tmp_operand_name_3; - PyObject *tmp_expression_name_15; - CHECK_OBJECT(tmp_class_creation_3__prepared); - tmp_expression_name_15 = tmp_class_creation_3__prepared; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_15, mod_consts[131]); - tmp_operand_name_3 = (tmp_result) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_3); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 140; - - goto try_except_handler_9; - } - tmp_condition_result_20 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_20 == NUITKA_BOOL_TRUE) { - goto branch_yes_11; - } else { - goto branch_no_11; - } - } - branch_yes_11:; - { - PyObject *tmp_raise_type_3; - PyObject *tmp_raise_value_3; - PyObject *tmp_left_name_3; - PyObject *tmp_right_name_3; - PyObject *tmp_tuple_element_9; - PyObject *tmp_getattr_target_3; - PyObject *tmp_getattr_attr_3; - PyObject *tmp_getattr_default_3; - tmp_raise_type_3 = PyExc_TypeError; - tmp_left_name_3 = mod_consts[132]; - CHECK_OBJECT(tmp_class_creation_3__metaclass); - tmp_getattr_target_3 = tmp_class_creation_3__metaclass; - tmp_getattr_attr_3 = mod_consts[133]; - tmp_getattr_default_3 = mod_consts[134]; - tmp_tuple_element_9 = BUILTIN_GETATTR(tmp_getattr_target_3, tmp_getattr_attr_3, tmp_getattr_default_3); - if (tmp_tuple_element_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 140; - - goto try_except_handler_9; - } - tmp_right_name_3 = PyTuple_New(2); - { - PyObject *tmp_expression_name_16; - PyObject *tmp_type_arg_5; - PyTuple_SET_ITEM(tmp_right_name_3, 0, tmp_tuple_element_9); - CHECK_OBJECT(tmp_class_creation_3__prepared); - tmp_type_arg_5 = tmp_class_creation_3__prepared; - tmp_expression_name_16 = BUILTIN_TYPE1(tmp_type_arg_5); - assert(!(tmp_expression_name_16 == NULL)); - tmp_tuple_element_9 = LOOKUP_ATTRIBUTE(tmp_expression_name_16, mod_consts[133]); - Py_DECREF(tmp_expression_name_16); - if (tmp_tuple_element_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 140; - - goto tuple_build_exception_3; - } - PyTuple_SET_ITEM(tmp_right_name_3, 1, tmp_tuple_element_9); - } - goto tuple_build_noexception_3; - // Exception handling pass through code for tuple_build: - tuple_build_exception_3:; - Py_DECREF(tmp_right_name_3); - goto try_except_handler_9; - // Finished with no exception for tuple_build: - tuple_build_noexception_3:; - tmp_raise_value_3 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_3, tmp_right_name_3); - Py_DECREF(tmp_right_name_3); - if (tmp_raise_value_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 140; - - goto try_except_handler_9; - } - exception_type = tmp_raise_type_3; - Py_INCREF(tmp_raise_type_3); - exception_value = tmp_raise_value_3; - exception_lineno = 140; - RAISE_EXCEPTION_IMPLICIT(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_9; - } - branch_no_11:; - goto branch_end_10; - branch_no_10:; - { - PyObject *tmp_assign_source_36; - tmp_assign_source_36 = PyDict_New(); - assert(tmp_class_creation_3__prepared == NULL); - tmp_class_creation_3__prepared = tmp_assign_source_36; - } - branch_end_10:; - { - PyObject *tmp_assign_source_37; - { - PyObject *tmp_set_locals_3; - CHECK_OBJECT(tmp_class_creation_3__prepared); - tmp_set_locals_3 = tmp_class_creation_3__prepared; - locals_models$base_model$$$class__3_SharedQueueMixin_140 = tmp_set_locals_3; - Py_INCREF(tmp_set_locals_3); - } - // Tried code: - // Tried code: - tmp_dictset_value = GET_STRING_DICT_VALUE(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[133]); - - if (unlikely(tmp_dictset_value == NULL)) { - tmp_dictset_value = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[133]); - } - - assert(!(tmp_dictset_value == NULL)); - tmp_res = PyObject_SetItem(locals_models$base_model$$$class__3_SharedQueueMixin_140, mod_consts[135], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 140; - - goto try_except_handler_11; - } - tmp_dictset_value = mod_consts[162]; - tmp_res = PyObject_SetItem(locals_models$base_model$$$class__3_SharedQueueMixin_140, mod_consts[137], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 140; - - goto try_except_handler_11; - } - if (isFrameUnusable(cache_frame_d71d7f2d6ffa38c985737620f54130a1_4)) { - Py_XDECREF(cache_frame_d71d7f2d6ffa38c985737620f54130a1_4); - -#if _DEBUG_REFCOUNTS - if (cache_frame_d71d7f2d6ffa38c985737620f54130a1_4 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_d71d7f2d6ffa38c985737620f54130a1_4 = MAKE_FUNCTION_FRAME(codeobj_d71d7f2d6ffa38c985737620f54130a1, module_models$base_model, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_d71d7f2d6ffa38c985737620f54130a1_4->m_type_description == NULL); - frame_d71d7f2d6ffa38c985737620f54130a1_4 = cache_frame_d71d7f2d6ffa38c985737620f54130a1_4; - - // Push the new frame as the currently active one. - pushFrameStack(frame_d71d7f2d6ffa38c985737620f54130a1_4); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_d71d7f2d6ffa38c985737620f54130a1_4) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_called_name_12; - PyObject *tmp_called_instance_1; - PyObject *tmp_args_element_name_7; - PyObject *tmp_defaults_2; - tmp_called_instance_1 = PyObject_GetItem(locals_models$base_model$$$class__3_SharedQueueMixin_140, mod_consts[2]); - - if (tmp_called_instance_1 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_called_instance_1 = GET_STRING_DICT_VALUE(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[2]); - - if (unlikely(tmp_called_instance_1 == NULL)) { - tmp_called_instance_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]); - } - - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 141; - type_description_2 = "o"; - goto frame_exception_exit_4; - } - Py_INCREF(tmp_called_instance_1); - } - } - - frame_d71d7f2d6ffa38c985737620f54130a1_4->m_frame.f_lineno = 141; - tmp_called_name_12 = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[163]); - Py_DECREF(tmp_called_instance_1); - if (tmp_called_name_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 141; - type_description_2 = "o"; - goto frame_exception_exit_4; - } - tmp_defaults_2 = mod_consts[164]; - Py_INCREF(tmp_defaults_2); - - - tmp_args_element_name_7 = MAKE_FUNCTION_models$base_model$$$function__12__dequeue_and_enqueue(tmp_defaults_2); - - frame_d71d7f2d6ffa38c985737620f54130a1_4->m_frame.f_lineno = 141; - tmp_dictset_value = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_12, tmp_args_element_name_7); - Py_DECREF(tmp_called_name_12); - Py_DECREF(tmp_args_element_name_7); - if (tmp_dictset_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 141; - type_description_2 = "o"; - goto frame_exception_exit_4; - } - tmp_res = PyObject_SetItem(locals_models$base_model$$$class__3_SharedQueueMixin_140, mod_consts[165], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 142; - type_description_2 = "o"; - goto frame_exception_exit_4; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_d71d7f2d6ffa38c985737620f54130a1_4); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_3; - - frame_exception_exit_4:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_d71d7f2d6ffa38c985737620f54130a1_4); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_d71d7f2d6ffa38c985737620f54130a1_4, exception_lineno); - } else if (exception_tb->tb_frame != &frame_d71d7f2d6ffa38c985737620f54130a1_4->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_d71d7f2d6ffa38c985737620f54130a1_4, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_d71d7f2d6ffa38c985737620f54130a1_4, - type_description_2, - outline_2_var___class__ - ); - - - // Release cached frame if used for exception. - if (frame_d71d7f2d6ffa38c985737620f54130a1_4 == cache_frame_d71d7f2d6ffa38c985737620f54130a1_4) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_d71d7f2d6ffa38c985737620f54130a1_4); - cache_frame_d71d7f2d6ffa38c985737620f54130a1_4 = NULL; - } - - assertFrameObject(frame_d71d7f2d6ffa38c985737620f54130a1_4); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_3; - - frame_no_exception_3:; - goto skip_nested_handling_3; - nested_frame_exit_3:; - - goto try_except_handler_11; - skip_nested_handling_3:; - { - PyObject *tmp_assign_source_38; - PyObject *tmp_called_name_13; - PyObject *tmp_args_name_6; - PyObject *tmp_tuple_element_10; - PyObject *tmp_kwargs_name_6; - CHECK_OBJECT(tmp_class_creation_3__metaclass); - tmp_called_name_13 = tmp_class_creation_3__metaclass; - tmp_tuple_element_10 = mod_consts[162]; - tmp_args_name_6 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_args_name_6, 0, tmp_tuple_element_10); - tmp_tuple_element_10 = mod_consts[160]; - PyTuple_SET_ITEM0(tmp_args_name_6, 1, tmp_tuple_element_10); - tmp_tuple_element_10 = locals_models$base_model$$$class__3_SharedQueueMixin_140; - PyTuple_SET_ITEM0(tmp_args_name_6, 2, tmp_tuple_element_10); - CHECK_OBJECT(tmp_class_creation_3__class_decl_dict); - tmp_kwargs_name_6 = tmp_class_creation_3__class_decl_dict; - frame_3da92d637f10e0e2fa696c97d85e96aa->m_frame.f_lineno = 140; - tmp_assign_source_38 = CALL_FUNCTION(tmp_called_name_13, tmp_args_name_6, tmp_kwargs_name_6); - Py_DECREF(tmp_args_name_6); - if (tmp_assign_source_38 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 140; - - goto try_except_handler_11; - } - assert(outline_2_var___class__ == NULL); - outline_2_var___class__ = tmp_assign_source_38; - } - CHECK_OBJECT(outline_2_var___class__); - tmp_assign_source_37 = outline_2_var___class__; - Py_INCREF(tmp_assign_source_37); - goto try_return_handler_11; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_11:; - Py_DECREF(locals_models$base_model$$$class__3_SharedQueueMixin_140); - locals_models$base_model$$$class__3_SharedQueueMixin_140 = NULL; - goto try_return_handler_10; - // Exception handler code: - try_except_handler_11:; - exception_keeper_type_9 = exception_type; - exception_keeper_value_9 = exception_value; - exception_keeper_tb_9 = exception_tb; - exception_keeper_lineno_9 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_DECREF(locals_models$base_model$$$class__3_SharedQueueMixin_140); - locals_models$base_model$$$class__3_SharedQueueMixin_140 = NULL; - // Re-raise. - exception_type = exception_keeper_type_9; - exception_value = exception_keeper_value_9; - exception_tb = exception_keeper_tb_9; - exception_lineno = exception_keeper_lineno_9; - - goto try_except_handler_10; - // End of try: - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_10:; - CHECK_OBJECT(outline_2_var___class__); - Py_DECREF(outline_2_var___class__); - outline_2_var___class__ = NULL; - goto outline_result_3; - // Exception handler code: - try_except_handler_10:; - exception_keeper_type_10 = exception_type; - exception_keeper_value_10 = exception_value; - exception_keeper_tb_10 = exception_tb; - exception_keeper_lineno_10 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - // Re-raise. - exception_type = exception_keeper_type_10; - exception_value = exception_keeper_value_10; - exception_tb = exception_keeper_tb_10; - exception_lineno = exception_keeper_lineno_10; - - goto outline_exception_3; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_3:; - exception_lineno = 140; - goto try_except_handler_9; - outline_result_3:; - UPDATE_STRING_DICT1(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[162], tmp_assign_source_37); - } - goto try_end_5; - // Exception handler code: - try_except_handler_9:; - exception_keeper_type_11 = exception_type; - exception_keeper_value_11 = exception_value; - exception_keeper_tb_11 = exception_tb; - exception_keeper_lineno_11 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_class_creation_3__class_decl_dict); - tmp_class_creation_3__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_3__metaclass); - tmp_class_creation_3__metaclass = NULL; - Py_XDECREF(tmp_class_creation_3__prepared); - tmp_class_creation_3__prepared = NULL; - // Re-raise. - exception_type = exception_keeper_type_11; - exception_value = exception_keeper_value_11; - exception_tb = exception_keeper_tb_11; - exception_lineno = exception_keeper_lineno_11; - - goto frame_exception_exit_1; - // End of try: - try_end_5:; - Py_XDECREF(tmp_class_creation_3__class_decl_dict); - tmp_class_creation_3__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_3__metaclass); - tmp_class_creation_3__metaclass = NULL; - CHECK_OBJECT(tmp_class_creation_3__prepared); - Py_DECREF(tmp_class_creation_3__prepared); - tmp_class_creation_3__prepared = NULL; - { - PyObject *tmp_assign_source_39; - tmp_assign_source_39 = PyDict_New(); - assert(tmp_class_creation_4__class_decl_dict == NULL); - tmp_class_creation_4__class_decl_dict = tmp_assign_source_39; - } - // Tried code: - { - PyObject *tmp_assign_source_40; - PyObject *tmp_metaclass_name_4; - nuitka_bool tmp_condition_result_21; - PyObject *tmp_key_name_10; - PyObject *tmp_dict_arg_name_10; - PyObject *tmp_dict_arg_name_11; - PyObject *tmp_key_name_11; - PyObject *tmp_bases_name_4; - tmp_key_name_10 = mod_consts[128]; - CHECK_OBJECT(tmp_class_creation_4__class_decl_dict); - tmp_dict_arg_name_10 = tmp_class_creation_4__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_10, tmp_key_name_10); - assert(!(tmp_res == -1)); - tmp_condition_result_21 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_21 == NUITKA_BOOL_TRUE) { - goto condexpr_true_10; - } else { - goto condexpr_false_10; - } - condexpr_true_10:; - CHECK_OBJECT(tmp_class_creation_4__class_decl_dict); - tmp_dict_arg_name_11 = tmp_class_creation_4__class_decl_dict; - tmp_key_name_11 = mod_consts[128]; - tmp_metaclass_name_4 = DICT_GET_ITEM_WITH_ERROR(tmp_dict_arg_name_11, tmp_key_name_11); - if (tmp_metaclass_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 164; - - goto try_except_handler_12; - } - goto condexpr_end_10; - condexpr_false_10:; - tmp_metaclass_name_4 = (PyObject *)&PyType_Type; - Py_INCREF(tmp_metaclass_name_4); - condexpr_end_10:; - tmp_bases_name_4 = mod_consts[160]; - tmp_assign_source_40 = SELECT_METACLASS(tmp_metaclass_name_4, tmp_bases_name_4); - Py_DECREF(tmp_metaclass_name_4); - if (tmp_assign_source_40 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 164; - - goto try_except_handler_12; - } - assert(tmp_class_creation_4__metaclass == NULL); - tmp_class_creation_4__metaclass = tmp_assign_source_40; - } - { - nuitka_bool tmp_condition_result_22; - PyObject *tmp_key_name_12; - PyObject *tmp_dict_arg_name_12; - tmp_key_name_12 = mod_consts[128]; - CHECK_OBJECT(tmp_class_creation_4__class_decl_dict); - tmp_dict_arg_name_12 = tmp_class_creation_4__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_12, tmp_key_name_12); - assert(!(tmp_res == -1)); - tmp_condition_result_22 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_22 == NUITKA_BOOL_TRUE) { - goto branch_yes_12; - } else { - goto branch_no_12; - } - } - branch_yes_12:; - CHECK_OBJECT(tmp_class_creation_4__class_decl_dict); - tmp_dictdel_dict = tmp_class_creation_4__class_decl_dict; - tmp_dictdel_key = mod_consts[128]; - tmp_result = DICT_REMOVE_ITEM(tmp_dictdel_dict, tmp_dictdel_key); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 164; - - goto try_except_handler_12; - } - branch_no_12:; - { - nuitka_bool tmp_condition_result_23; - PyObject *tmp_expression_name_17; - CHECK_OBJECT(tmp_class_creation_4__metaclass); - tmp_expression_name_17 = tmp_class_creation_4__metaclass; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_17, mod_consts[129]); - tmp_condition_result_23 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_23 == NUITKA_BOOL_TRUE) { - goto branch_yes_13; - } else { - goto branch_no_13; - } - } - branch_yes_13:; - { - PyObject *tmp_assign_source_41; - PyObject *tmp_called_name_14; - PyObject *tmp_expression_name_18; - PyObject *tmp_args_name_7; - PyObject *tmp_kwargs_name_7; - CHECK_OBJECT(tmp_class_creation_4__metaclass); - tmp_expression_name_18 = tmp_class_creation_4__metaclass; - tmp_called_name_14 = LOOKUP_ATTRIBUTE(tmp_expression_name_18, mod_consts[129]); - if (tmp_called_name_14 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 164; - - goto try_except_handler_12; - } - tmp_args_name_7 = mod_consts[167]; - CHECK_OBJECT(tmp_class_creation_4__class_decl_dict); - tmp_kwargs_name_7 = tmp_class_creation_4__class_decl_dict; - frame_3da92d637f10e0e2fa696c97d85e96aa->m_frame.f_lineno = 164; - tmp_assign_source_41 = CALL_FUNCTION(tmp_called_name_14, tmp_args_name_7, tmp_kwargs_name_7); - Py_DECREF(tmp_called_name_14); - if (tmp_assign_source_41 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 164; - - goto try_except_handler_12; - } - assert(tmp_class_creation_4__prepared == NULL); - tmp_class_creation_4__prepared = tmp_assign_source_41; - } - { - nuitka_bool tmp_condition_result_24; - PyObject *tmp_operand_name_4; - PyObject *tmp_expression_name_19; - CHECK_OBJECT(tmp_class_creation_4__prepared); - tmp_expression_name_19 = tmp_class_creation_4__prepared; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_19, mod_consts[131]); - tmp_operand_name_4 = (tmp_result) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_4); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 164; - - goto try_except_handler_12; - } - tmp_condition_result_24 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_24 == NUITKA_BOOL_TRUE) { - goto branch_yes_14; - } else { - goto branch_no_14; - } - } - branch_yes_14:; - { - PyObject *tmp_raise_type_4; - PyObject *tmp_raise_value_4; - PyObject *tmp_left_name_4; - PyObject *tmp_right_name_4; - PyObject *tmp_tuple_element_11; - PyObject *tmp_getattr_target_4; - PyObject *tmp_getattr_attr_4; - PyObject *tmp_getattr_default_4; - tmp_raise_type_4 = PyExc_TypeError; - tmp_left_name_4 = mod_consts[132]; - CHECK_OBJECT(tmp_class_creation_4__metaclass); - tmp_getattr_target_4 = tmp_class_creation_4__metaclass; - tmp_getattr_attr_4 = mod_consts[133]; - tmp_getattr_default_4 = mod_consts[134]; - tmp_tuple_element_11 = BUILTIN_GETATTR(tmp_getattr_target_4, tmp_getattr_attr_4, tmp_getattr_default_4); - if (tmp_tuple_element_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 164; - - goto try_except_handler_12; - } - tmp_right_name_4 = PyTuple_New(2); - { - PyObject *tmp_expression_name_20; - PyObject *tmp_type_arg_6; - PyTuple_SET_ITEM(tmp_right_name_4, 0, tmp_tuple_element_11); - CHECK_OBJECT(tmp_class_creation_4__prepared); - tmp_type_arg_6 = tmp_class_creation_4__prepared; - tmp_expression_name_20 = BUILTIN_TYPE1(tmp_type_arg_6); - assert(!(tmp_expression_name_20 == NULL)); - tmp_tuple_element_11 = LOOKUP_ATTRIBUTE(tmp_expression_name_20, mod_consts[133]); - Py_DECREF(tmp_expression_name_20); - if (tmp_tuple_element_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 164; - - goto tuple_build_exception_4; - } - PyTuple_SET_ITEM(tmp_right_name_4, 1, tmp_tuple_element_11); - } - goto tuple_build_noexception_4; - // Exception handling pass through code for tuple_build: - tuple_build_exception_4:; - Py_DECREF(tmp_right_name_4); - goto try_except_handler_12; - // Finished with no exception for tuple_build: - tuple_build_noexception_4:; - tmp_raise_value_4 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_4, tmp_right_name_4); - Py_DECREF(tmp_right_name_4); - if (tmp_raise_value_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 164; - - goto try_except_handler_12; - } - exception_type = tmp_raise_type_4; - Py_INCREF(tmp_raise_type_4); - exception_value = tmp_raise_value_4; - exception_lineno = 164; - RAISE_EXCEPTION_IMPLICIT(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_12; - } - branch_no_14:; - goto branch_end_13; - branch_no_13:; - { - PyObject *tmp_assign_source_42; - tmp_assign_source_42 = PyDict_New(); - assert(tmp_class_creation_4__prepared == NULL); - tmp_class_creation_4__prepared = tmp_assign_source_42; - } - branch_end_13:; - { - PyObject *tmp_assign_source_43; - { - PyObject *tmp_set_locals_4; - CHECK_OBJECT(tmp_class_creation_4__prepared); - tmp_set_locals_4 = tmp_class_creation_4__prepared; - locals_models$base_model$$$class__4_MomentumDistilationMixin_164 = tmp_set_locals_4; - Py_INCREF(tmp_set_locals_4); - } - // Tried code: - // Tried code: - tmp_dictset_value = GET_STRING_DICT_VALUE(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[133]); - - if (unlikely(tmp_dictset_value == NULL)) { - tmp_dictset_value = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[133]); - } - - assert(!(tmp_dictset_value == NULL)); - tmp_res = PyObject_SetItem(locals_models$base_model$$$class__4_MomentumDistilationMixin_164, mod_consts[135], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 164; - - goto try_except_handler_14; - } - tmp_dictset_value = mod_consts[168]; - tmp_res = PyObject_SetItem(locals_models$base_model$$$class__4_MomentumDistilationMixin_164, mod_consts[137], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 164; - - goto try_except_handler_14; - } - if (isFrameUnusable(cache_frame_922346e330baabd5dec3a0e5d0cef592_5)) { - Py_XDECREF(cache_frame_922346e330baabd5dec3a0e5d0cef592_5); - -#if _DEBUG_REFCOUNTS - if (cache_frame_922346e330baabd5dec3a0e5d0cef592_5 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_922346e330baabd5dec3a0e5d0cef592_5 = MAKE_FUNCTION_FRAME(codeobj_922346e330baabd5dec3a0e5d0cef592, module_models$base_model, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_922346e330baabd5dec3a0e5d0cef592_5->m_type_description == NULL); - frame_922346e330baabd5dec3a0e5d0cef592_5 = cache_frame_922346e330baabd5dec3a0e5d0cef592_5; - - // Push the new frame as the currently active one. - pushFrameStack(frame_922346e330baabd5dec3a0e5d0cef592_5); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_922346e330baabd5dec3a0e5d0cef592_5) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_called_name_15; - PyObject *tmp_called_instance_2; - PyObject *tmp_args_element_name_8; - tmp_called_instance_2 = PyObject_GetItem(locals_models$base_model$$$class__4_MomentumDistilationMixin_164, mod_consts[2]); - - if (tmp_called_instance_2 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_called_instance_2 = GET_STRING_DICT_VALUE(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[2]); - - if (unlikely(tmp_called_instance_2 == NULL)) { - tmp_called_instance_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]); - } - - if (tmp_called_instance_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 165; - type_description_2 = "o"; - goto frame_exception_exit_5; - } - Py_INCREF(tmp_called_instance_2); - } - } - - frame_922346e330baabd5dec3a0e5d0cef592_5->m_frame.f_lineno = 165; - tmp_called_name_15 = CALL_METHOD_NO_ARGS(tmp_called_instance_2, mod_consts[163]); - Py_DECREF(tmp_called_instance_2); - if (tmp_called_name_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 165; - type_description_2 = "o"; - goto frame_exception_exit_5; - } - - - tmp_args_element_name_8 = MAKE_FUNCTION_models$base_model$$$function__13_copy_params(); - - frame_922346e330baabd5dec3a0e5d0cef592_5->m_frame.f_lineno = 165; - tmp_dictset_value = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_15, tmp_args_element_name_8); - Py_DECREF(tmp_called_name_15); - Py_DECREF(tmp_args_element_name_8); - if (tmp_dictset_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 165; - type_description_2 = "o"; - goto frame_exception_exit_5; - } - tmp_res = PyObject_SetItem(locals_models$base_model$$$class__4_MomentumDistilationMixin_164, mod_consts[169], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 166; - type_description_2 = "o"; - goto frame_exception_exit_5; - } - } - { - PyObject *tmp_called_name_16; - PyObject *tmp_called_instance_3; - PyObject *tmp_args_element_name_9; - tmp_called_instance_3 = PyObject_GetItem(locals_models$base_model$$$class__4_MomentumDistilationMixin_164, mod_consts[2]); - - if (tmp_called_instance_3 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_called_instance_3 = GET_STRING_DICT_VALUE(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[2]); - - if (unlikely(tmp_called_instance_3 == NULL)) { - tmp_called_instance_3 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]); - } - - if (tmp_called_instance_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 174; - type_description_2 = "o"; - goto frame_exception_exit_5; - } - Py_INCREF(tmp_called_instance_3); - } - } - - frame_922346e330baabd5dec3a0e5d0cef592_5->m_frame.f_lineno = 174; - tmp_called_name_16 = CALL_METHOD_NO_ARGS(tmp_called_instance_3, mod_consts[163]); - Py_DECREF(tmp_called_instance_3); - if (tmp_called_name_16 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 174; - type_description_2 = "o"; - goto frame_exception_exit_5; - } - - - tmp_args_element_name_9 = MAKE_FUNCTION_models$base_model$$$function__14__momentum_update(); - - frame_922346e330baabd5dec3a0e5d0cef592_5->m_frame.f_lineno = 174; - tmp_dictset_value = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_16, tmp_args_element_name_9); - Py_DECREF(tmp_called_name_16); - Py_DECREF(tmp_args_element_name_9); - if (tmp_dictset_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 174; - type_description_2 = "o"; - goto frame_exception_exit_5; - } - tmp_res = PyObject_SetItem(locals_models$base_model$$$class__4_MomentumDistilationMixin_164, mod_consts[171], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 175; - type_description_2 = "o"; - goto frame_exception_exit_5; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_922346e330baabd5dec3a0e5d0cef592_5); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_4; - - frame_exception_exit_5:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_922346e330baabd5dec3a0e5d0cef592_5); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_922346e330baabd5dec3a0e5d0cef592_5, exception_lineno); - } else if (exception_tb->tb_frame != &frame_922346e330baabd5dec3a0e5d0cef592_5->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_922346e330baabd5dec3a0e5d0cef592_5, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_922346e330baabd5dec3a0e5d0cef592_5, - type_description_2, - outline_3_var___class__ - ); - - - // Release cached frame if used for exception. - if (frame_922346e330baabd5dec3a0e5d0cef592_5 == cache_frame_922346e330baabd5dec3a0e5d0cef592_5) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_922346e330baabd5dec3a0e5d0cef592_5); - cache_frame_922346e330baabd5dec3a0e5d0cef592_5 = NULL; - } - - assertFrameObject(frame_922346e330baabd5dec3a0e5d0cef592_5); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_4; - - frame_no_exception_4:; - goto skip_nested_handling_4; - nested_frame_exit_4:; - - goto try_except_handler_14; - skip_nested_handling_4:; - { - PyObject *tmp_assign_source_44; - PyObject *tmp_called_name_17; - PyObject *tmp_args_name_8; - PyObject *tmp_tuple_element_12; - PyObject *tmp_kwargs_name_8; - CHECK_OBJECT(tmp_class_creation_4__metaclass); - tmp_called_name_17 = tmp_class_creation_4__metaclass; - tmp_tuple_element_12 = mod_consts[168]; - tmp_args_name_8 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_args_name_8, 0, tmp_tuple_element_12); - tmp_tuple_element_12 = mod_consts[160]; - PyTuple_SET_ITEM0(tmp_args_name_8, 1, tmp_tuple_element_12); - tmp_tuple_element_12 = locals_models$base_model$$$class__4_MomentumDistilationMixin_164; - PyTuple_SET_ITEM0(tmp_args_name_8, 2, tmp_tuple_element_12); - CHECK_OBJECT(tmp_class_creation_4__class_decl_dict); - tmp_kwargs_name_8 = tmp_class_creation_4__class_decl_dict; - frame_3da92d637f10e0e2fa696c97d85e96aa->m_frame.f_lineno = 164; - tmp_assign_source_44 = CALL_FUNCTION(tmp_called_name_17, tmp_args_name_8, tmp_kwargs_name_8); - Py_DECREF(tmp_args_name_8); - if (tmp_assign_source_44 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 164; - - goto try_except_handler_14; - } - assert(outline_3_var___class__ == NULL); - outline_3_var___class__ = tmp_assign_source_44; - } - CHECK_OBJECT(outline_3_var___class__); - tmp_assign_source_43 = outline_3_var___class__; - Py_INCREF(tmp_assign_source_43); - goto try_return_handler_14; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_14:; - Py_DECREF(locals_models$base_model$$$class__4_MomentumDistilationMixin_164); - locals_models$base_model$$$class__4_MomentumDistilationMixin_164 = NULL; - goto try_return_handler_13; - // Exception handler code: - try_except_handler_14:; - exception_keeper_type_12 = exception_type; - exception_keeper_value_12 = exception_value; - exception_keeper_tb_12 = exception_tb; - exception_keeper_lineno_12 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_DECREF(locals_models$base_model$$$class__4_MomentumDistilationMixin_164); - locals_models$base_model$$$class__4_MomentumDistilationMixin_164 = NULL; - // Re-raise. - exception_type = exception_keeper_type_12; - exception_value = exception_keeper_value_12; - exception_tb = exception_keeper_tb_12; - exception_lineno = exception_keeper_lineno_12; - - goto try_except_handler_13; - // End of try: - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_13:; - CHECK_OBJECT(outline_3_var___class__); - Py_DECREF(outline_3_var___class__); - outline_3_var___class__ = NULL; - goto outline_result_4; - // Exception handler code: - try_except_handler_13:; - exception_keeper_type_13 = exception_type; - exception_keeper_value_13 = exception_value; - exception_keeper_tb_13 = exception_tb; - exception_keeper_lineno_13 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - // Re-raise. - exception_type = exception_keeper_type_13; - exception_value = exception_keeper_value_13; - exception_tb = exception_keeper_tb_13; - exception_lineno = exception_keeper_lineno_13; - - goto outline_exception_4; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_4:; - exception_lineno = 164; - goto try_except_handler_12; - outline_result_4:; - UPDATE_STRING_DICT1(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[168], tmp_assign_source_43); - } - goto try_end_6; - // Exception handler code: - try_except_handler_12:; - exception_keeper_type_14 = exception_type; - exception_keeper_value_14 = exception_value; - exception_keeper_tb_14 = exception_tb; - exception_keeper_lineno_14 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_class_creation_4__class_decl_dict); - tmp_class_creation_4__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_4__metaclass); - tmp_class_creation_4__metaclass = NULL; - Py_XDECREF(tmp_class_creation_4__prepared); - tmp_class_creation_4__prepared = NULL; - // Re-raise. - exception_type = exception_keeper_type_14; - exception_value = exception_keeper_value_14; - exception_tb = exception_keeper_tb_14; - exception_lineno = exception_keeper_lineno_14; - - goto frame_exception_exit_1; - // End of try: - try_end_6:; - Py_XDECREF(tmp_class_creation_4__class_decl_dict); - tmp_class_creation_4__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_4__metaclass); - tmp_class_creation_4__metaclass = NULL; - CHECK_OBJECT(tmp_class_creation_4__prepared); - Py_DECREF(tmp_class_creation_4__prepared); - tmp_class_creation_4__prepared = NULL; - // Tried code: - { - PyObject *tmp_assign_source_45; - PyObject *tmp_tuple_element_13; - PyObject *tmp_expression_name_21; - PyObject *tmp_expression_name_22; - tmp_expression_name_22 = GET_STRING_DICT_VALUE(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[2]); - - if (unlikely(tmp_expression_name_22 == NULL)) { - tmp_expression_name_22 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]); - } - - if (tmp_expression_name_22 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 185; - - goto try_except_handler_15; - } - tmp_expression_name_21 = LOOKUP_ATTRIBUTE(tmp_expression_name_22, mod_consts[173]); - if (tmp_expression_name_21 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 185; - - goto try_except_handler_15; - } - tmp_tuple_element_13 = LOOKUP_ATTRIBUTE(tmp_expression_name_21, mod_consts[174]); - Py_DECREF(tmp_expression_name_21); - if (tmp_tuple_element_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 185; - - goto try_except_handler_15; - } - tmp_assign_source_45 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_assign_source_45, 0, tmp_tuple_element_13); - assert(tmp_class_creation_5__bases_orig == NULL); - tmp_class_creation_5__bases_orig = tmp_assign_source_45; - } - { - PyObject *tmp_assign_source_46; - PyObject *tmp_dircall_arg1_3; - CHECK_OBJECT(tmp_class_creation_5__bases_orig); - tmp_dircall_arg1_3 = tmp_class_creation_5__bases_orig; - Py_INCREF(tmp_dircall_arg1_3); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_3}; - tmp_assign_source_46 = impl_models$$$function__1__mro_entries_conversion(dir_call_args); - } - if (tmp_assign_source_46 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 185; - - goto try_except_handler_15; - } - assert(tmp_class_creation_5__bases == NULL); - tmp_class_creation_5__bases = tmp_assign_source_46; - } - { - PyObject *tmp_assign_source_47; - tmp_assign_source_47 = PyDict_New(); - assert(tmp_class_creation_5__class_decl_dict == NULL); - tmp_class_creation_5__class_decl_dict = tmp_assign_source_47; - } - { - PyObject *tmp_assign_source_48; - PyObject *tmp_metaclass_name_5; - nuitka_bool tmp_condition_result_25; - PyObject *tmp_key_name_13; - PyObject *tmp_dict_arg_name_13; - PyObject *tmp_dict_arg_name_14; - PyObject *tmp_key_name_14; - nuitka_bool tmp_condition_result_26; - int tmp_truth_name_3; - PyObject *tmp_type_arg_7; - PyObject *tmp_expression_name_23; - PyObject *tmp_subscript_name_3; - PyObject *tmp_bases_name_5; - tmp_key_name_13 = mod_consts[128]; - CHECK_OBJECT(tmp_class_creation_5__class_decl_dict); - tmp_dict_arg_name_13 = tmp_class_creation_5__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_13, tmp_key_name_13); - assert(!(tmp_res == -1)); - tmp_condition_result_25 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_25 == NUITKA_BOOL_TRUE) { - goto condexpr_true_11; - } else { - goto condexpr_false_11; - } - condexpr_true_11:; - CHECK_OBJECT(tmp_class_creation_5__class_decl_dict); - tmp_dict_arg_name_14 = tmp_class_creation_5__class_decl_dict; - tmp_key_name_14 = mod_consts[128]; - tmp_metaclass_name_5 = DICT_GET_ITEM_WITH_ERROR(tmp_dict_arg_name_14, tmp_key_name_14); - if (tmp_metaclass_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 185; - - goto try_except_handler_15; - } - goto condexpr_end_11; - condexpr_false_11:; - CHECK_OBJECT(tmp_class_creation_5__bases); - tmp_truth_name_3 = CHECK_IF_TRUE(tmp_class_creation_5__bases); - if (tmp_truth_name_3 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 185; - - goto try_except_handler_15; - } - tmp_condition_result_26 = tmp_truth_name_3 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_26 == NUITKA_BOOL_TRUE) { - goto condexpr_true_12; - } else { - goto condexpr_false_12; - } - condexpr_true_12:; - CHECK_OBJECT(tmp_class_creation_5__bases); - tmp_expression_name_23 = tmp_class_creation_5__bases; - tmp_subscript_name_3 = mod_consts[45]; - tmp_type_arg_7 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_23, tmp_subscript_name_3, 0); - if (tmp_type_arg_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 185; - - goto try_except_handler_15; - } - tmp_metaclass_name_5 = BUILTIN_TYPE1(tmp_type_arg_7); - Py_DECREF(tmp_type_arg_7); - if (tmp_metaclass_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 185; - - goto try_except_handler_15; - } - goto condexpr_end_12; - condexpr_false_12:; - tmp_metaclass_name_5 = (PyObject *)&PyType_Type; - Py_INCREF(tmp_metaclass_name_5); - condexpr_end_12:; - condexpr_end_11:; - CHECK_OBJECT(tmp_class_creation_5__bases); - tmp_bases_name_5 = tmp_class_creation_5__bases; - tmp_assign_source_48 = SELECT_METACLASS(tmp_metaclass_name_5, tmp_bases_name_5); - Py_DECREF(tmp_metaclass_name_5); - if (tmp_assign_source_48 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 185; - - goto try_except_handler_15; - } - assert(tmp_class_creation_5__metaclass == NULL); - tmp_class_creation_5__metaclass = tmp_assign_source_48; - } - { - nuitka_bool tmp_condition_result_27; - PyObject *tmp_key_name_15; - PyObject *tmp_dict_arg_name_15; - tmp_key_name_15 = mod_consts[128]; - CHECK_OBJECT(tmp_class_creation_5__class_decl_dict); - tmp_dict_arg_name_15 = tmp_class_creation_5__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_15, tmp_key_name_15); - assert(!(tmp_res == -1)); - tmp_condition_result_27 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_27 == NUITKA_BOOL_TRUE) { - goto branch_yes_15; - } else { - goto branch_no_15; - } - } - branch_yes_15:; - CHECK_OBJECT(tmp_class_creation_5__class_decl_dict); - tmp_dictdel_dict = tmp_class_creation_5__class_decl_dict; - tmp_dictdel_key = mod_consts[128]; - tmp_result = DICT_REMOVE_ITEM(tmp_dictdel_dict, tmp_dictdel_key); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 185; - - goto try_except_handler_15; - } - branch_no_15:; - { - nuitka_bool tmp_condition_result_28; - PyObject *tmp_expression_name_24; - CHECK_OBJECT(tmp_class_creation_5__metaclass); - tmp_expression_name_24 = tmp_class_creation_5__metaclass; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_24, mod_consts[129]); - tmp_condition_result_28 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_28 == NUITKA_BOOL_TRUE) { - goto branch_yes_16; - } else { - goto branch_no_16; - } - } - branch_yes_16:; - { - PyObject *tmp_assign_source_49; - PyObject *tmp_called_name_18; - PyObject *tmp_expression_name_25; - PyObject *tmp_args_name_9; - PyObject *tmp_tuple_element_14; - PyObject *tmp_kwargs_name_9; - CHECK_OBJECT(tmp_class_creation_5__metaclass); - tmp_expression_name_25 = tmp_class_creation_5__metaclass; - tmp_called_name_18 = LOOKUP_ATTRIBUTE(tmp_expression_name_25, mod_consts[129]); - if (tmp_called_name_18 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 185; - - goto try_except_handler_15; - } - tmp_tuple_element_14 = mod_consts[86]; - tmp_args_name_9 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_9, 0, tmp_tuple_element_14); - CHECK_OBJECT(tmp_class_creation_5__bases); - tmp_tuple_element_14 = tmp_class_creation_5__bases; - PyTuple_SET_ITEM0(tmp_args_name_9, 1, tmp_tuple_element_14); - CHECK_OBJECT(tmp_class_creation_5__class_decl_dict); - tmp_kwargs_name_9 = tmp_class_creation_5__class_decl_dict; - frame_3da92d637f10e0e2fa696c97d85e96aa->m_frame.f_lineno = 185; - tmp_assign_source_49 = CALL_FUNCTION(tmp_called_name_18, tmp_args_name_9, tmp_kwargs_name_9); - Py_DECREF(tmp_called_name_18); - Py_DECREF(tmp_args_name_9); - if (tmp_assign_source_49 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 185; - - goto try_except_handler_15; - } - assert(tmp_class_creation_5__prepared == NULL); - tmp_class_creation_5__prepared = tmp_assign_source_49; - } - { - nuitka_bool tmp_condition_result_29; - PyObject *tmp_operand_name_5; - PyObject *tmp_expression_name_26; - CHECK_OBJECT(tmp_class_creation_5__prepared); - tmp_expression_name_26 = tmp_class_creation_5__prepared; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_26, mod_consts[131]); - tmp_operand_name_5 = (tmp_result) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_5); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 185; - - goto try_except_handler_15; - } - tmp_condition_result_29 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_29 == NUITKA_BOOL_TRUE) { - goto branch_yes_17; - } else { - goto branch_no_17; - } - } - branch_yes_17:; - { - PyObject *tmp_raise_type_5; - PyObject *tmp_raise_value_5; - PyObject *tmp_left_name_5; - PyObject *tmp_right_name_5; - PyObject *tmp_tuple_element_15; - PyObject *tmp_getattr_target_5; - PyObject *tmp_getattr_attr_5; - PyObject *tmp_getattr_default_5; - tmp_raise_type_5 = PyExc_TypeError; - tmp_left_name_5 = mod_consts[132]; - CHECK_OBJECT(tmp_class_creation_5__metaclass); - tmp_getattr_target_5 = tmp_class_creation_5__metaclass; - tmp_getattr_attr_5 = mod_consts[133]; - tmp_getattr_default_5 = mod_consts[134]; - tmp_tuple_element_15 = BUILTIN_GETATTR(tmp_getattr_target_5, tmp_getattr_attr_5, tmp_getattr_default_5); - if (tmp_tuple_element_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 185; - - goto try_except_handler_15; - } - tmp_right_name_5 = PyTuple_New(2); - { - PyObject *tmp_expression_name_27; - PyObject *tmp_type_arg_8; - PyTuple_SET_ITEM(tmp_right_name_5, 0, tmp_tuple_element_15); - CHECK_OBJECT(tmp_class_creation_5__prepared); - tmp_type_arg_8 = tmp_class_creation_5__prepared; - tmp_expression_name_27 = BUILTIN_TYPE1(tmp_type_arg_8); - assert(!(tmp_expression_name_27 == NULL)); - tmp_tuple_element_15 = LOOKUP_ATTRIBUTE(tmp_expression_name_27, mod_consts[133]); - Py_DECREF(tmp_expression_name_27); - if (tmp_tuple_element_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 185; - - goto tuple_build_exception_5; - } - PyTuple_SET_ITEM(tmp_right_name_5, 1, tmp_tuple_element_15); - } - goto tuple_build_noexception_5; - // Exception handling pass through code for tuple_build: - tuple_build_exception_5:; - Py_DECREF(tmp_right_name_5); - goto try_except_handler_15; - // Finished with no exception for tuple_build: - tuple_build_noexception_5:; - tmp_raise_value_5 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_5, tmp_right_name_5); - Py_DECREF(tmp_right_name_5); - if (tmp_raise_value_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 185; - - goto try_except_handler_15; - } - exception_type = tmp_raise_type_5; - Py_INCREF(tmp_raise_type_5); - exception_value = tmp_raise_value_5; - exception_lineno = 185; - RAISE_EXCEPTION_IMPLICIT(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_15; - } - branch_no_17:; - goto branch_end_16; - branch_no_16:; - { - PyObject *tmp_assign_source_50; - tmp_assign_source_50 = PyDict_New(); - assert(tmp_class_creation_5__prepared == NULL); - tmp_class_creation_5__prepared = tmp_assign_source_50; - } - branch_end_16:; - { - PyObject *tmp_assign_source_51; - { - PyObject *tmp_set_locals_5; - CHECK_OBJECT(tmp_class_creation_5__prepared); - tmp_set_locals_5 = tmp_class_creation_5__prepared; - locals_models$base_model$$$class__5_GatherLayer_185 = tmp_set_locals_5; - Py_INCREF(tmp_set_locals_5); - } - // Tried code: - // Tried code: - tmp_dictset_value = GET_STRING_DICT_VALUE(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[133]); - - if (unlikely(tmp_dictset_value == NULL)) { - tmp_dictset_value = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[133]); - } - - assert(!(tmp_dictset_value == NULL)); - tmp_res = PyObject_SetItem(locals_models$base_model$$$class__5_GatherLayer_185, mod_consts[135], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 185; - - goto try_except_handler_17; - } - tmp_dictset_value = mod_consts[175]; - tmp_res = PyObject_SetItem(locals_models$base_model$$$class__5_GatherLayer_185, mod_consts[111], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 185; - - goto try_except_handler_17; - } - tmp_dictset_value = mod_consts[86]; - tmp_res = PyObject_SetItem(locals_models$base_model$$$class__5_GatherLayer_185, mod_consts[137], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 185; - - goto try_except_handler_17; - } - if (isFrameUnusable(cache_frame_6bb53d881ab90d043e76e8acd0c190e8_6)) { - Py_XDECREF(cache_frame_6bb53d881ab90d043e76e8acd0c190e8_6); - -#if _DEBUG_REFCOUNTS - if (cache_frame_6bb53d881ab90d043e76e8acd0c190e8_6 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_6bb53d881ab90d043e76e8acd0c190e8_6 = MAKE_FUNCTION_FRAME(codeobj_6bb53d881ab90d043e76e8acd0c190e8, module_models$base_model, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_6bb53d881ab90d043e76e8acd0c190e8_6->m_type_description == NULL); - frame_6bb53d881ab90d043e76e8acd0c190e8_6 = cache_frame_6bb53d881ab90d043e76e8acd0c190e8_6; - - // Push the new frame as the currently active one. - pushFrameStack(frame_6bb53d881ab90d043e76e8acd0c190e8_6); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_6bb53d881ab90d043e76e8acd0c190e8_6) == 2); // Frame stack - - // Framed code: - { - nuitka_bool tmp_condition_result_30; - PyObject *tmp_called_name_19; - PyObject *tmp_args_element_name_10; - PyObject *tmp_staticmethod_arg_1; - tmp_res = MAPPING_HAS_ITEM(locals_models$base_model$$$class__5_GatherLayer_185, mod_consts[176]); - - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 191; - type_description_2 = "o"; - goto frame_exception_exit_6; - } - tmp_condition_result_30 = (tmp_res == 1) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_30 == NUITKA_BOOL_TRUE) { - goto condexpr_true_13; - } else { - goto condexpr_false_13; - } - condexpr_true_13:; - tmp_called_name_19 = PyObject_GetItem(locals_models$base_model$$$class__5_GatherLayer_185, mod_consts[176]); - - if (unlikely(tmp_called_name_19 == NULL && CHECK_AND_CLEAR_KEY_ERROR_OCCURRED())) { - - FORMAT_NAME_ERROR(&exception_type, &exception_value, mod_consts[176]); - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 191; - type_description_2 = "o"; - goto frame_exception_exit_6; - } - - if (tmp_called_name_19 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 191; - type_description_2 = "o"; - goto frame_exception_exit_6; - } - - - tmp_args_element_name_10 = MAKE_FUNCTION_models$base_model$$$function__15_forward(); - - frame_6bb53d881ab90d043e76e8acd0c190e8_6->m_frame.f_lineno = 191; - tmp_dictset_value = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_19, tmp_args_element_name_10); - Py_DECREF(tmp_called_name_19); - Py_DECREF(tmp_args_element_name_10); - if (tmp_dictset_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 191; - type_description_2 = "o"; - goto frame_exception_exit_6; - } - goto condexpr_end_13; - condexpr_false_13:; - - - tmp_staticmethod_arg_1 = MAKE_FUNCTION_models$base_model$$$function__15_forward(); - - tmp_dictset_value = BUILTIN_STATICMETHOD(tmp_staticmethod_arg_1); - Py_DECREF(tmp_staticmethod_arg_1); - assert(!(tmp_dictset_value == NULL)); - condexpr_end_13:; - tmp_res = PyObject_SetItem(locals_models$base_model$$$class__5_GatherLayer_185, mod_consts[177], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 192; - type_description_2 = "o"; - goto frame_exception_exit_6; - } - } - { - nuitka_bool tmp_condition_result_31; - PyObject *tmp_called_name_20; - PyObject *tmp_args_element_name_11; - PyObject *tmp_staticmethod_arg_2; - tmp_res = MAPPING_HAS_ITEM(locals_models$base_model$$$class__5_GatherLayer_185, mod_consts[176]); - - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 199; - type_description_2 = "o"; - goto frame_exception_exit_6; - } - tmp_condition_result_31 = (tmp_res == 1) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_31 == NUITKA_BOOL_TRUE) { - goto condexpr_true_14; - } else { - goto condexpr_false_14; - } - condexpr_true_14:; - tmp_called_name_20 = PyObject_GetItem(locals_models$base_model$$$class__5_GatherLayer_185, mod_consts[176]); - - if (unlikely(tmp_called_name_20 == NULL && CHECK_AND_CLEAR_KEY_ERROR_OCCURRED())) { - - FORMAT_NAME_ERROR(&exception_type, &exception_value, mod_consts[176]); - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 199; - type_description_2 = "o"; - goto frame_exception_exit_6; - } - - if (tmp_called_name_20 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 199; - type_description_2 = "o"; - goto frame_exception_exit_6; - } - - - tmp_args_element_name_11 = MAKE_FUNCTION_models$base_model$$$function__16_backward(); - - frame_6bb53d881ab90d043e76e8acd0c190e8_6->m_frame.f_lineno = 199; - tmp_dictset_value = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_20, tmp_args_element_name_11); - Py_DECREF(tmp_called_name_20); - Py_DECREF(tmp_args_element_name_11); - if (tmp_dictset_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 199; - type_description_2 = "o"; - goto frame_exception_exit_6; - } - goto condexpr_end_14; - condexpr_false_14:; - - - tmp_staticmethod_arg_2 = MAKE_FUNCTION_models$base_model$$$function__16_backward(); - - tmp_dictset_value = BUILTIN_STATICMETHOD(tmp_staticmethod_arg_2); - Py_DECREF(tmp_staticmethod_arg_2); - assert(!(tmp_dictset_value == NULL)); - condexpr_end_14:; - tmp_res = PyObject_SetItem(locals_models$base_model$$$class__5_GatherLayer_185, mod_consts[179], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 200; - type_description_2 = "o"; - goto frame_exception_exit_6; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_6bb53d881ab90d043e76e8acd0c190e8_6); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_5; - - frame_exception_exit_6:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_6bb53d881ab90d043e76e8acd0c190e8_6); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_6bb53d881ab90d043e76e8acd0c190e8_6, exception_lineno); - } else if (exception_tb->tb_frame != &frame_6bb53d881ab90d043e76e8acd0c190e8_6->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_6bb53d881ab90d043e76e8acd0c190e8_6, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_6bb53d881ab90d043e76e8acd0c190e8_6, - type_description_2, - outline_4_var___class__ - ); - - - // Release cached frame if used for exception. - if (frame_6bb53d881ab90d043e76e8acd0c190e8_6 == cache_frame_6bb53d881ab90d043e76e8acd0c190e8_6) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_6bb53d881ab90d043e76e8acd0c190e8_6); - cache_frame_6bb53d881ab90d043e76e8acd0c190e8_6 = NULL; - } - - assertFrameObject(frame_6bb53d881ab90d043e76e8acd0c190e8_6); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_5; - - frame_no_exception_5:; - goto skip_nested_handling_5; - nested_frame_exit_5:; - - goto try_except_handler_17; - skip_nested_handling_5:; - { - nuitka_bool tmp_condition_result_32; - PyObject *tmp_compexpr_left_3; - PyObject *tmp_compexpr_right_3; - CHECK_OBJECT(tmp_class_creation_5__bases); - tmp_compexpr_left_3 = tmp_class_creation_5__bases; - CHECK_OBJECT(tmp_class_creation_5__bases_orig); - tmp_compexpr_right_3 = tmp_class_creation_5__bases_orig; - tmp_condition_result_32 = RICH_COMPARE_NE_NBOOL_OBJECT_TUPLE(tmp_compexpr_left_3, tmp_compexpr_right_3); - if (tmp_condition_result_32 == NUITKA_BOOL_EXCEPTION) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 185; - - goto try_except_handler_17; - } - if (tmp_condition_result_32 == NUITKA_BOOL_TRUE) { - goto branch_yes_18; - } else { - goto branch_no_18; - } - assert(tmp_condition_result_32 != NUITKA_BOOL_UNASSIGNED); - } - branch_yes_18:; - CHECK_OBJECT(tmp_class_creation_5__bases_orig); - tmp_dictset_value = tmp_class_creation_5__bases_orig; - tmp_res = PyObject_SetItem(locals_models$base_model$$$class__5_GatherLayer_185, mod_consts[153], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 185; - - goto try_except_handler_17; - } - branch_no_18:; - { - PyObject *tmp_assign_source_52; - PyObject *tmp_called_name_21; - PyObject *tmp_args_name_10; - PyObject *tmp_tuple_element_16; - PyObject *tmp_kwargs_name_10; - CHECK_OBJECT(tmp_class_creation_5__metaclass); - tmp_called_name_21 = tmp_class_creation_5__metaclass; - tmp_tuple_element_16 = mod_consts[86]; - tmp_args_name_10 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_args_name_10, 0, tmp_tuple_element_16); - CHECK_OBJECT(tmp_class_creation_5__bases); - tmp_tuple_element_16 = tmp_class_creation_5__bases; - PyTuple_SET_ITEM0(tmp_args_name_10, 1, tmp_tuple_element_16); - tmp_tuple_element_16 = locals_models$base_model$$$class__5_GatherLayer_185; - PyTuple_SET_ITEM0(tmp_args_name_10, 2, tmp_tuple_element_16); - CHECK_OBJECT(tmp_class_creation_5__class_decl_dict); - tmp_kwargs_name_10 = tmp_class_creation_5__class_decl_dict; - frame_3da92d637f10e0e2fa696c97d85e96aa->m_frame.f_lineno = 185; - tmp_assign_source_52 = CALL_FUNCTION(tmp_called_name_21, tmp_args_name_10, tmp_kwargs_name_10); - Py_DECREF(tmp_args_name_10); - if (tmp_assign_source_52 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 185; - - goto try_except_handler_17; - } - assert(outline_4_var___class__ == NULL); - outline_4_var___class__ = tmp_assign_source_52; - } - CHECK_OBJECT(outline_4_var___class__); - tmp_assign_source_51 = outline_4_var___class__; - Py_INCREF(tmp_assign_source_51); - goto try_return_handler_17; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_17:; - Py_DECREF(locals_models$base_model$$$class__5_GatherLayer_185); - locals_models$base_model$$$class__5_GatherLayer_185 = NULL; - goto try_return_handler_16; - // Exception handler code: - try_except_handler_17:; - exception_keeper_type_15 = exception_type; - exception_keeper_value_15 = exception_value; - exception_keeper_tb_15 = exception_tb; - exception_keeper_lineno_15 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_DECREF(locals_models$base_model$$$class__5_GatherLayer_185); - locals_models$base_model$$$class__5_GatherLayer_185 = NULL; - // Re-raise. - exception_type = exception_keeper_type_15; - exception_value = exception_keeper_value_15; - exception_tb = exception_keeper_tb_15; - exception_lineno = exception_keeper_lineno_15; - - goto try_except_handler_16; - // End of try: - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_16:; - CHECK_OBJECT(outline_4_var___class__); - Py_DECREF(outline_4_var___class__); - outline_4_var___class__ = NULL; - goto outline_result_5; - // Exception handler code: - try_except_handler_16:; - exception_keeper_type_16 = exception_type; - exception_keeper_value_16 = exception_value; - exception_keeper_tb_16 = exception_tb; - exception_keeper_lineno_16 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - // Re-raise. - exception_type = exception_keeper_type_16; - exception_value = exception_keeper_value_16; - exception_tb = exception_keeper_tb_16; - exception_lineno = exception_keeper_lineno_16; - - goto outline_exception_5; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_5:; - exception_lineno = 185; - goto try_except_handler_15; - outline_result_5:; - UPDATE_STRING_DICT1(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[86], tmp_assign_source_51); - } - goto try_end_7; - // Exception handler code: - try_except_handler_15:; - exception_keeper_type_17 = exception_type; - exception_keeper_value_17 = exception_value; - exception_keeper_tb_17 = exception_tb; - exception_keeper_lineno_17 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_class_creation_5__bases_orig); - tmp_class_creation_5__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_5__bases); - tmp_class_creation_5__bases = NULL; - Py_XDECREF(tmp_class_creation_5__class_decl_dict); - tmp_class_creation_5__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_5__metaclass); - tmp_class_creation_5__metaclass = NULL; - Py_XDECREF(tmp_class_creation_5__prepared); - tmp_class_creation_5__prepared = NULL; - // Re-raise. - exception_type = exception_keeper_type_17; - exception_value = exception_keeper_value_17; - exception_tb = exception_keeper_tb_17; - exception_lineno = exception_keeper_lineno_17; - - goto frame_exception_exit_1; - // End of try: - try_end_7:; - CHECK_OBJECT(tmp_class_creation_5__bases_orig); - Py_DECREF(tmp_class_creation_5__bases_orig); - tmp_class_creation_5__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_5__bases); - tmp_class_creation_5__bases = NULL; - Py_XDECREF(tmp_class_creation_5__class_decl_dict); - tmp_class_creation_5__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_5__metaclass); - tmp_class_creation_5__metaclass = NULL; - CHECK_OBJECT(tmp_class_creation_5__prepared); - Py_DECREF(tmp_class_creation_5__prepared); - tmp_class_creation_5__prepared = NULL; - { - PyObject *tmp_assign_source_53; - - - tmp_assign_source_53 = MAKE_FUNCTION_models$base_model$$$function__17_all_gather_with_grad(); - - UPDATE_STRING_DICT1(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[181], tmp_assign_source_53); - } - { - PyObject *tmp_assign_source_54; - PyObject *tmp_called_name_22; - PyObject *tmp_called_instance_4; - PyObject *tmp_args_element_name_12; - tmp_called_instance_4 = GET_STRING_DICT_VALUE(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[2]); - - if (unlikely(tmp_called_instance_4 == NULL)) { - tmp_called_instance_4 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]); - } - - if (tmp_called_instance_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 223; - - goto frame_exception_exit_1; - } - frame_3da92d637f10e0e2fa696c97d85e96aa->m_frame.f_lineno = 223; - tmp_called_name_22 = CALL_METHOD_NO_ARGS(tmp_called_instance_4, mod_consts[163]); - if (tmp_called_name_22 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 223; - - goto frame_exception_exit_1; - } - - - tmp_args_element_name_12 = MAKE_FUNCTION_models$base_model$$$function__18_concat_all_gather(); - - frame_3da92d637f10e0e2fa696c97d85e96aa->m_frame.f_lineno = 223; - tmp_assign_source_54 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_22, tmp_args_element_name_12); - Py_DECREF(tmp_called_name_22); - Py_DECREF(tmp_args_element_name_12); - if (tmp_assign_source_54 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 223; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[56], tmp_assign_source_54); - } - - // Restore frame exception if necessary. -#if 0 - RESTORE_FRAME_EXCEPTION(frame_3da92d637f10e0e2fa696c97d85e96aa); -#endif - popFrameStack(); - - assertFrameObject(frame_3da92d637f10e0e2fa696c97d85e96aa); - - goto frame_no_exception_6; - - frame_exception_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_3da92d637f10e0e2fa696c97d85e96aa); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_3da92d637f10e0e2fa696c97d85e96aa, exception_lineno); - } else if (exception_tb->tb_frame != &frame_3da92d637f10e0e2fa696c97d85e96aa->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_3da92d637f10e0e2fa696c97d85e96aa, exception_lineno); - } - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto module_exception_exit; - - frame_no_exception_6:; - { - PyObject *tmp_assign_source_55; - - - tmp_assign_source_55 = MAKE_FUNCTION_models$base_model$$$function__19_tile(); - - UPDATE_STRING_DICT1(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[182], tmp_assign_source_55); - } - - return module_models$base_model; - module_exception_exit: - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - return NULL; -} -