Construct CallCompiledClassCreationPosArgsConstant6

Performance Diagrams

Construct CallCompiledClassCreationPosArgsConstant6 00100000000100000000200000000200000000300000000300000000400000000400000000500000000500000000600000000600000000CPython 2.7Nuitka (main)Nuitka (develop)Nuitka (factory)65176011388.11538461538461257.0CPython 2.7406717964240.03846153846155349.9079329791932Nuitka (main)406717941391.96153846153845349.90794169966216Nuitka (develop)406717941543.8846153846154349.90794169966216Nuitka (factory)Construct CallCompiledClassCreationPosArgsConstant6Ticks Construct CallCompiledClassCreationPosArgsConstant6 00100000000100000000200000000200000000300000000300000000400000000400000000500000000500000000600000000600000000CPython 3.8Nuitka (main)Nuitka (develop)Nuitka (factory)67999387588.11538461538461257.0CPython 3.8425983112240.03846153846155349.30960704637573Nuitka (main)425983492391.96153846153845349.30946895124043Nuitka (develop)425983492543.8846153846154349.30946895124043Nuitka (factory)Construct CallCompiledClassCreationPosArgsConstant6Ticks

Source Code with Construct

from __future__ import print_function

class C(object):
    def __init__(self, a,b,c,d,e,f):
        self.a = a
        self.b = b
        self.c = c
        self.d = d
        self.e = e
        self.f = f

def calledRepeatedly():
    # force frame
    C

    # This is supposed to make a call to a compiled method, which is
    # being optimized separately.
# construct_begin
    C("some", "random", "values", "to", "check", "call")
    C("some", "other", "values", "to", "check", "call")
    C("some", "new", "values", "to", "check", "call")

# construct_alternative



import itertools
for x in itertools.repeat(None, 50000):
    calledRepeatedly()

print("OK.")

Source Code without Construct

from __future__ import print_function

class C(object):
    def __init__(self, a,b,c,d,e,f):
        self.a = a
        self.b = b
        self.c = c
        self.d = d
        self.e = e
        self.f = f

def calledRepeatedly():
    # force frame
    C

    # This is supposed to make a call to a compiled method, which is
    # being optimized separately.
# construct_begin




# construct_alternative
    pass
# construct_end

import itertools
for x in itertools.repeat(None, 50000):
    calledRepeatedly()

print("OK.")

Context Diff of Source Code


Construct
Baseline
33     C 33     C
34 34
35     # This is supposed to make a call to a compiled method, which is 35     # This is supposed to make a call to a compiled method, which is
36     # being optimized separately. 36     # being optimized separately.
37 # construct_begin 37 # construct_begin
n 38     C("some", "random", "values", "to", "check", "call") n 38  
39     C("some", "other", "values", "to", "check", "call") 39  
40     C("some", "new", "values", "to", "check", "call") 40  
41 41
42 # construct_alternative 42 # construct_alternative
t 43   t 43     pass
44   44 # construct_end
45 45
46 import itertools 46 import itertools
47 for x in itertools.repeat(None, 50000): 47 for x in itertools.repeat(None, 50000):
48     calledRepeatedly() 48     calledRepeatedly()
49 49

Context Diff of Generated Code


Construct
Baseline
31 31
32 PyObject *module___main__; 32 PyObject *module___main__;
33 PyDictObject *moduledict___main__; 33 PyDictObject *moduledict___main__;
34 34
35 /* The declarations of module constants used, if any. */ 35 /* The declarations of module constants used, if any. */
n 36 static PyObject *mod_consts[42]; n 36 static PyObject *mod_consts[39];
37 #ifndef __NUITKA_NO_ASSERT__ 37 #ifndef __NUITKA_NO_ASSERT__
n 38 static Py_hash_t mod_consts_hash[42]; n 38 static Py_hash_t mod_consts_hash[39];
39 #endif 39 #endif
40 40
41 static PyObject *module_filename_obj = NULL; 41 static PyObject *module_filename_obj = NULL;
42 42
43 /* Indicator if this modules private constants were created yet. */ 43 /* Indicator if this modules private constants were created yet. */
48     if (constants_created == false) { 48     if (constants_created == false) {
49         loadConstantsBlob(&mod_consts[0], UNTRANSLATE("__main__")); 49         loadConstantsBlob(&mod_consts[0], UNTRANSLATE("__main__"));
50         constants_created = true; 50         constants_created = true;
51 51
52 #ifndef __NUITKA_NO_ASSERT__ 52 #ifndef __NUITKA_NO_ASSERT__
n 53         for(int i = 0; i < 42; i++) { n 53         for(int i = 0; i < 39; i++) {
54             mod_consts_hash[i] = DEEP_HASH(mod_consts[i]); 54             mod_consts_hash[i] = DEEP_HASH(mod_consts[i]);
55         } 55         }
56 #endif 56 #endif
57     } 57     }
58 } 58 }
68 #ifndef __NUITKA_NO_ASSERT__ 68 #ifndef __NUITKA_NO_ASSERT__
69 void checkModuleConstants___main__(void) { 69 void checkModuleConstants___main__(void) {
70     // The module may not have been used at all, then ignore this. 70     // The module may not have been used at all, then ignore this.
71     if (constants_created == false) return; 71     if (constants_created == false) return;
72 72
n 73     for(int i = 0; i < 42; i++) { n 73     for(int i = 0; i < 39; i++) {
74         assert(mod_consts_hash[i] == DEEP_HASH(mod_consts[i])); 74         assert(mod_consts_hash[i] == DEEP_HASH(mod_consts[i]));
75         CHECK_OBJECT_DEEP(mod_consts[i]); 75         CHECK_OBJECT_DEEP(mod_consts[i]);
76     } 76     }
77 } 77 }
78 #endif 78 #endif
84 static PyCodeObject *codeobj_99376c1deb1a385732e864860b20bed2; 84 static PyCodeObject *codeobj_99376c1deb1a385732e864860b20bed2;
85 /* For use in "MainProgram.c". */ 85 /* For use in "MainProgram.c". */
86 PyCodeObject *codeobj_main = NULL; 86 PyCodeObject *codeobj_main = NULL;
87 87
88 static void createModuleCodeObjects(void) { 88 static void createModuleCodeObjects(void) {
n 89     module_filename_obj = mod_consts[13]; CHECK_OBJECT(module_filename_obj); n 89     module_filename_obj = mod_consts[10]; CHECK_OBJECT(module_filename_obj);
90     codeobj_0b3cbd1a383725062ec5835762fedfe7 = MAKE_CODEOBJECT(module_filename_obj, 1, CO_NOFREE, mod_consts[39], NULL, NULL, 0, 0, 0); 90     codeobj_0b3cbd1a383725062ec5835762fedfe7 = MAKE_CODEOBJECT(module_filename_obj, 1, CO_NOFREE, mod_consts[36], NULL, NULL, 0, 0, 0);
91     codeobj_7a2369ca6efe4693ed4c5087334e4007 = MAKE_CODEOBJECT(module_filename_obj, 22, CO_NOFREE, mod_consts[8], mod_consts[40], NULL, 0, 0, 0); 91     codeobj_7a2369ca6efe4693ed4c5087334e4007 = MAKE_CODEOBJECT(module_filename_obj, 22, CO_NOFREE, mod_consts[8], mod_consts[37], NULL, 0, 0, 0);
92     codeobj_5843b5201db95919bb80a20272838378 = MAKE_CODEOBJECT(module_filename_obj, 23, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[29], mod_consts[41], NULL, 7, 0, 0); 92     codeobj_5843b5201db95919bb80a20272838378 = MAKE_CODEOBJECT(module_filename_obj, 23, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[26], mod_consts[38], NULL, 7, 0, 0);
93     codeobj_99376c1deb1a385732e864860b20bed2 = MAKE_CODEOBJECT(module_filename_obj, 31, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[32], NULL, NULL, 0, 0, 0); 93     codeobj_99376c1deb1a385732e864860b20bed2 = MAKE_CODEOBJECT(module_filename_obj, 31, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[29], NULL, NULL, 0, 0, 0);
94 } 94 }
95 95
96 // The module function declarations. 96 // The module function declarations.
97 NUITKA_LOCAL_MODULE PyObject *impl___main__$$$function__1__mro_entries_conversion(PyObject **python_pars); 97 NUITKA_LOCAL_MODULE PyObject *impl___main__$$$function__1__mro_entries_conversion(PyObject **python_pars);
98 98
742             exception_lineno = 33; 742             exception_lineno = 33;
743 743
744             goto frame_exception_exit_1; 744             goto frame_exception_exit_1;
745         } 745         }
746     } 746     }
n 747     { n
748         PyObject *tmp_called_value_1;
749         PyObject *tmp_call_result_1;
750         tmp_called_value_1 = GET_STRING_DICT_VALUE(moduledict___main__, (Nuitka_StringObject *)mod_consts[8]);
751  
752         if (unlikely(tmp_called_value_1 == NULL)) {
753             tmp_called_value_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[8]);
754         }
755  
756         if (tmp_called_value_1 == NULL) {
757             assert(ERROR_OCCURRED());
758  
759             FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
760  
761  
762             exception_lineno = 38;
763  
764             goto frame_exception_exit_1;
765         }
766         frame_99376c1deb1a385732e864860b20bed2->m_frame.f_lineno = 38;
767         tmp_call_result_1 = CALL_FUNCTION_WITH_POSARGS6(tmp_called_value_1, mod_consts[9]);
768  
769         if (tmp_call_result_1 == NULL) {
770             assert(ERROR_OCCURRED());
771  
772             FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
773  
774  
775             exception_lineno = 38;
776  
777             goto frame_exception_exit_1;
778         }
779         Py_DECREF(tmp_call_result_1);
780     }
781     {
782         PyObject *tmp_called_value_2;
783         PyObject *tmp_call_result_2;
784         tmp_called_value_2 = GET_STRING_DICT_VALUE(moduledict___main__, (Nuitka_StringObject *)mod_consts[8]);
785  
786         if (unlikely(tmp_called_value_2 == NULL)) {
787             tmp_called_value_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[8]);
788         }
789  
790         if (tmp_called_value_2 == NULL) {
791             assert(ERROR_OCCURRED());
792  
793             FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
794  
795  
796             exception_lineno = 39;
797  
798             goto frame_exception_exit_1;
799         }
800         frame_99376c1deb1a385732e864860b20bed2->m_frame.f_lineno = 39;
801         tmp_call_result_2 = CALL_FUNCTION_WITH_POSARGS6(tmp_called_value_2, mod_consts[10]);
802  
803         if (tmp_call_result_2 == NULL) {
804             assert(ERROR_OCCURRED());
805  
806             FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
807  
808  
809             exception_lineno = 39;
810  
811             goto frame_exception_exit_1;
812         }
813         Py_DECREF(tmp_call_result_2);
814     }
815     {
816         PyObject *tmp_called_value_3;
817         PyObject *tmp_call_result_3;
818         tmp_called_value_3 = GET_STRING_DICT_VALUE(moduledict___main__, (Nuitka_StringObject *)mod_consts[8]);
819  
820         if (unlikely(tmp_called_value_3 == NULL)) {
821             tmp_called_value_3 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[8]);
822         }
823  
824         if (tmp_called_value_3 == NULL) {
825             assert(ERROR_OCCURRED());
826  
827             FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
828  
829  
830             exception_lineno = 40;
831  
832             goto frame_exception_exit_1;
833         }
834         frame_99376c1deb1a385732e864860b20bed2->m_frame.f_lineno = 40;
835         tmp_call_result_3 = CALL_FUNCTION_WITH_POSARGS6(tmp_called_value_3, mod_consts[11]);
836  
837         if (tmp_call_result_3 == NULL) {
838             assert(ERROR_OCCURRED());
839  
840             FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
841  
842  
843             exception_lineno = 40;
844  
845             goto frame_exception_exit_1;
846         }
847         Py_DECREF(tmp_call_result_3);
848     }
849 747
850 #if 0 748 #if 0
851     RESTORE_FRAME_EXCEPTION(frame_99376c1deb1a385732e864860b20bed2); 749     RESTORE_FRAME_EXCEPTION(frame_99376c1deb1a385732e864860b20bed2);
852 #endif 750 #endif
853 751
922 820
923 821
924 static PyObject *MAKE_FUNCTION___main__$$$function__1___init__() { 822 static PyObject *MAKE_FUNCTION___main__$$$function__1___init__() {
925     struct Nuitka_FunctionObject *result = Nuitka_Function_New( 823     struct Nuitka_FunctionObject *result = Nuitka_Function_New(
926         impl___main__$$$function__1___init__, 824         impl___main__$$$function__1___init__,
n 927         mod_consts[29], n 825         mod_consts[26],
928 #if PYTHON_VERSION >= 0x300 826 #if PYTHON_VERSION >= 0x300
n 929         mod_consts[30], n 827         mod_consts[27],
930 #endif 828 #endif
931         codeobj_5843b5201db95919bb80a20272838378, 829         codeobj_5843b5201db95919bb80a20272838378,
932         NULL, 830         NULL,
933 #if PYTHON_VERSION >= 0x300 831 #if PYTHON_VERSION >= 0x300
934         NULL, 832         NULL,
947 845
948 846
949 static PyObject *MAKE_FUNCTION___main__$$$function__2_calledRepeatedly() { 847 static PyObject *MAKE_FUNCTION___main__$$$function__2_calledRepeatedly() {
950     struct Nuitka_FunctionObject *result = Nuitka_Function_New( 848     struct Nuitka_FunctionObject *result = Nuitka_Function_New(
951         impl___main__$$$function__2_calledRepeatedly, 849         impl___main__$$$function__2_calledRepeatedly,
n 952         mod_consts[32], n 850         mod_consts[29],
953 #if PYTHON_VERSION >= 0x300 851 #if PYTHON_VERSION >= 0x300
954         NULL, 852         NULL,
955 #endif 853 #endif
956         codeobj_99376c1deb1a385732e864860b20bed2, 854         codeobj_99376c1deb1a385732e864860b20bed2,
957         NULL, 855         NULL,
1359 1257
1360     // Module code. 1258     // Module code.
1361     { 1259     {
1362         PyObject *tmp_assign_source_1; 1260         PyObject *tmp_assign_source_1;
1363         tmp_assign_source_1 = Py_None; 1261         tmp_assign_source_1 = Py_None;
n 1364         UPDATE_STRING_DICT0(moduledict___main__, (Nuitka_StringObject *)mod_consts[12], tmp_assign_source_1); n 1262         UPDATE_STRING_DICT0(moduledict___main__, (Nuitka_StringObject *)mod_consts[9], tmp_assign_source_1);
1365     } 1263     }
1366     { 1264     {
1367         PyObject *tmp_assign_source_2; 1265         PyObject *tmp_assign_source_2;
n 1368         tmp_assign_source_2 = mod_consts[13]; n 1266         tmp_assign_source_2 = mod_consts[10];
1369         UPDATE_STRING_DICT0(moduledict___main__, (Nuitka_StringObject *)mod_consts[14], tmp_assign_source_2); 1267         UPDATE_STRING_DICT0(moduledict___main__, (Nuitka_StringObject *)mod_consts[11], tmp_assign_source_2);
1370     } 1268     }
1371     { 1269     {
1372         PyObject *tmp_assign_source_3; 1270         PyObject *tmp_assign_source_3;
1373         tmp_assign_source_3 = Py_None; 1271         tmp_assign_source_3 = Py_None;
n 1374         UPDATE_STRING_DICT0(moduledict___main__, (Nuitka_StringObject *)mod_consts[15], tmp_assign_source_3); n 1272         UPDATE_STRING_DICT0(moduledict___main__, (Nuitka_StringObject *)mod_consts[12], tmp_assign_source_3);
1375     } 1273     }
1376     { 1274     {
1377         PyObject *tmp_assign_source_4; 1275         PyObject *tmp_assign_source_4;
1378         tmp_assign_source_4 = PyDict_New(); 1276         tmp_assign_source_4 = PyDict_New();
n 1379         UPDATE_STRING_DICT1(moduledict___main__, (Nuitka_StringObject *)mod_consts[16], tmp_assign_source_4); n 1277         UPDATE_STRING_DICT1(moduledict___main__, (Nuitka_StringObject *)mod_consts[13], tmp_assign_source_4);
1380     } 1278     }
1381     { 1279     {
1382         PyObject *tmp_assign_source_5; 1280         PyObject *tmp_assign_source_5;
1383         { 1281         {
1384             PyObject *hard_module = IMPORT_HARD___FUTURE__(); 1282             PyObject *hard_module = IMPORT_HARD___FUTURE__();
n 1385             tmp_assign_source_5 = LOOKUP_ATTRIBUTE(hard_module, mod_consts[17]); n 1283             tmp_assign_source_5 = LOOKUP_ATTRIBUTE(hard_module, mod_consts[14]);
1386         } 1284         }
1387 1285
1388         assert(!(tmp_assign_source_5 == NULL)); 1286         assert(!(tmp_assign_source_5 == NULL));
n 1389         UPDATE_STRING_DICT0(moduledict___main__, (Nuitka_StringObject *)mod_consts[17], tmp_assign_source_5); n 1287         UPDATE_STRING_DICT0(moduledict___main__, (Nuitka_StringObject *)mod_consts[14], tmp_assign_source_5);
1390     } 1288     }
1391     // Frame without reuse. 1289     // Frame without reuse.
1392     frame_0b3cbd1a383725062ec5835762fedfe7 = MAKE_MODULE_FRAME(codeobj_0b3cbd1a383725062ec5835762fedfe7, module___main__); 1290     frame_0b3cbd1a383725062ec5835762fedfe7 = MAKE_MODULE_FRAME(codeobj_0b3cbd1a383725062ec5835762fedfe7, module___main__);
1393 1291
1394     // Push the new frame as the currently active one, and we should be exclusively 1292     // Push the new frame as the currently active one, and we should be exclusively
1399     // Framed code: 1297     // Framed code:
1400     // Tried code: 1298     // Tried code:
1401     { 1299     {
1402         PyObject *tmp_assign_source_6; 1300         PyObject *tmp_assign_source_6;
1403         PyObject *tmp_dircall_arg1_1; 1301         PyObject *tmp_dircall_arg1_1;
n 1404         tmp_dircall_arg1_1 = mod_consts[18]; n 1302         tmp_dircall_arg1_1 = mod_consts[15];
1405         Py_INCREF(tmp_dircall_arg1_1); 1303         Py_INCREF(tmp_dircall_arg1_1);
1406 1304
1407         { 1305         {
1408             PyObject *dir_call_args[] = {tmp_dircall_arg1_1}; 1306             PyObject *dir_call_args[] = {tmp_dircall_arg1_1};
1409             tmp_assign_source_6 = impl___main__$$$function__1__mro_entries_conversion(dir_call_args); 1307             tmp_assign_source_6 = impl___main__$$$function__1__mro_entries_conversion(dir_call_args);
1439         int tmp_truth_name_1; 1337         int tmp_truth_name_1;
1440         PyObject *tmp_type_arg_1; 1338         PyObject *tmp_type_arg_1;
1441         PyObject *tmp_expression_value_1; 1339         PyObject *tmp_expression_value_1;
1442         PyObject *tmp_subscript_value_1; 1340         PyObject *tmp_subscript_value_1;
1443         PyObject *tmp_bases_value_1; 1341         PyObject *tmp_bases_value_1;
n 1444         tmp_key_value_1 = mod_consts[19]; n 1342         tmp_key_value_1 = mod_consts[16];
1445         CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); 1343         CHECK_OBJECT(tmp_class_creation_1__class_decl_dict);
1446         tmp_dict_arg_value_1 = tmp_class_creation_1__class_decl_dict; 1344         tmp_dict_arg_value_1 = tmp_class_creation_1__class_decl_dict;
1447         tmp_res = DICT_HAS_ITEM(tmp_dict_arg_value_1, tmp_key_value_1); 1345         tmp_res = DICT_HAS_ITEM(tmp_dict_arg_value_1, tmp_key_value_1);
1448         assert(!(tmp_res == -1)); 1346         assert(!(tmp_res == -1));
1449         tmp_condition_result_1 = (tmp_res != 0) ? true : false; 1347         tmp_condition_result_1 = (tmp_res != 0) ? true : false;
1453             goto condexpr_false_1; 1351             goto condexpr_false_1;
1454         } 1352         }
1455         condexpr_true_1:; 1353         condexpr_true_1:;
1456         CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); 1354         CHECK_OBJECT(tmp_class_creation_1__class_decl_dict);
1457         tmp_dict_arg_value_2 = tmp_class_creation_1__class_decl_dict; 1355         tmp_dict_arg_value_2 = tmp_class_creation_1__class_decl_dict;
n 1458         tmp_key_value_2 = mod_consts[19]; n 1356         tmp_key_value_2 = mod_consts[16];
1459         tmp_metaclass_value_1 = DICT_GET_ITEM0(tmp_dict_arg_value_2, tmp_key_value_2); 1357         tmp_metaclass_value_1 = DICT_GET_ITEM0(tmp_dict_arg_value_2, tmp_key_value_2);
1460         if (tmp_metaclass_value_1 == NULL) { 1358         if (tmp_metaclass_value_1 == NULL) {
1461             tmp_metaclass_value_1 = Py_None; 1359             tmp_metaclass_value_1 = Py_None;
1462         } 1360         }
1463         assert(!(tmp_metaclass_value_1 == NULL)); 1361         assert(!(tmp_metaclass_value_1 == NULL));
1483             goto condexpr_false_2; 1381             goto condexpr_false_2;
1484         } 1382         }
1485         condexpr_true_2:; 1383         condexpr_true_2:;
1486         CHECK_OBJECT(tmp_class_creation_1__bases); 1384         CHECK_OBJECT(tmp_class_creation_1__bases);
1487         tmp_expression_value_1 = tmp_class_creation_1__bases; 1385         tmp_expression_value_1 = tmp_class_creation_1__bases;
n 1488         tmp_subscript_value_1 = mod_consts[20]; n 1386         tmp_subscript_value_1 = mod_consts[17];
1489         tmp_type_arg_1 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_value_1, tmp_subscript_value_1, 0); 1387         tmp_type_arg_1 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_value_1, tmp_subscript_value_1, 0);
1490         if (tmp_type_arg_1 == NULL) { 1388         if (tmp_type_arg_1 == NULL) {
1491             assert(ERROR_OCCURRED()); 1389             assert(ERROR_OCCURRED());
1492 1390
1493             FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); 1391             FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
1534     } 1432     }
1535     { 1433     {
1536         bool tmp_condition_result_3; 1434         bool tmp_condition_result_3;
1537         PyObject *tmp_key_value_3; 1435         PyObject *tmp_key_value_3;
1538         PyObject *tmp_dict_arg_value_3; 1436         PyObject *tmp_dict_arg_value_3;
n 1539         tmp_key_value_3 = mod_consts[19]; n 1437         tmp_key_value_3 = mod_consts[16];
1540         CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); 1438         CHECK_OBJECT(tmp_class_creation_1__class_decl_dict);
1541         tmp_dict_arg_value_3 = tmp_class_creation_1__class_decl_dict; 1439         tmp_dict_arg_value_3 = tmp_class_creation_1__class_decl_dict;
1542         tmp_res = DICT_HAS_ITEM(tmp_dict_arg_value_3, tmp_key_value_3); 1440         tmp_res = DICT_HAS_ITEM(tmp_dict_arg_value_3, tmp_key_value_3);
1543         assert(!(tmp_res == -1)); 1441         assert(!(tmp_res == -1));
1544         tmp_condition_result_3 = (tmp_res != 0) ? true : false; 1442         tmp_condition_result_3 = (tmp_res != 0) ? true : false;
1549         } 1447         }
1550     } 1448     }
1551     branch_yes_1:; 1449     branch_yes_1:;
1552     CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); 1450     CHECK_OBJECT(tmp_class_creation_1__class_decl_dict);
1553     tmp_dictdel_dict = tmp_class_creation_1__class_decl_dict; 1451     tmp_dictdel_dict = tmp_class_creation_1__class_decl_dict;
n 1554     tmp_dictdel_key = mod_consts[19]; n 1452     tmp_dictdel_key = mod_consts[16];
1555     tmp_result = DICT_REMOVE_ITEM(tmp_dictdel_dict, tmp_dictdel_key); 1453     tmp_result = DICT_REMOVE_ITEM(tmp_dictdel_dict, tmp_dictdel_key);
1556     if (tmp_result == false) { 1454     if (tmp_result == false) {
1557         assert(ERROR_OCCURRED()); 1455         assert(ERROR_OCCURRED());
1558 1456
1559         FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); 1457         FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
1567     { 1465     {
1568         nuitka_bool tmp_condition_result_4; 1466         nuitka_bool tmp_condition_result_4;
1569         PyObject *tmp_expression_value_2; 1467         PyObject *tmp_expression_value_2;
1570         CHECK_OBJECT(tmp_class_creation_1__metaclass); 1468         CHECK_OBJECT(tmp_class_creation_1__metaclass);
1571         tmp_expression_value_2 = tmp_class_creation_1__metaclass; 1469         tmp_expression_value_2 = tmp_class_creation_1__metaclass;
n 1572         tmp_result = HAS_ATTR_BOOL(tmp_expression_value_2, mod_consts[21]); n 1470         tmp_result = HAS_ATTR_BOOL(tmp_expression_value_2, mod_consts[18]);
1573         tmp_condition_result_4 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; 1471         tmp_condition_result_4 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
1574         if (tmp_condition_result_4 == NUITKA_BOOL_TRUE) { 1472         if (tmp_condition_result_4 == NUITKA_BOOL_TRUE) {
1575             goto branch_yes_2; 1473             goto branch_yes_2;
1576         } else { 1474         } else {
1577             goto branch_no_2; 1475             goto branch_no_2;
1585         PyObject *tmp_args_value_1; 1483         PyObject *tmp_args_value_1;
1586         PyObject *tmp_tuple_element_1; 1484         PyObject *tmp_tuple_element_1;
1587         PyObject *tmp_kwargs_value_1; 1485         PyObject *tmp_kwargs_value_1;
1588         CHECK_OBJECT(tmp_class_creation_1__metaclass); 1486         CHECK_OBJECT(tmp_class_creation_1__metaclass);
1589         tmp_expression_value_3 = tmp_class_creation_1__metaclass; 1487         tmp_expression_value_3 = tmp_class_creation_1__metaclass;
n 1590         tmp_called_value_1 = LOOKUP_ATTRIBUTE(tmp_expression_value_3, mod_consts[21]); n 1488         tmp_called_value_1 = LOOKUP_ATTRIBUTE(tmp_expression_value_3, mod_consts[18]);
1591         if (tmp_called_value_1 == NULL) { 1489         if (tmp_called_value_1 == NULL) {
1592             assert(ERROR_OCCURRED()); 1490             assert(ERROR_OCCURRED());
1593 1491
1594             FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); 1492             FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
1595 1493
1627         bool tmp_condition_result_5; 1525         bool tmp_condition_result_5;
1628         PyObject *tmp_operand_value_1; 1526         PyObject *tmp_operand_value_1;
1629         PyObject *tmp_expression_value_4; 1527         PyObject *tmp_expression_value_4;
1630         CHECK_OBJECT(tmp_class_creation_1__prepared); 1528         CHECK_OBJECT(tmp_class_creation_1__prepared);
1631         tmp_expression_value_4 = tmp_class_creation_1__prepared; 1529         tmp_expression_value_4 = tmp_class_creation_1__prepared;
n 1632         tmp_result = HAS_ATTR_BOOL(tmp_expression_value_4, mod_consts[22]); n 1530         tmp_result = HAS_ATTR_BOOL(tmp_expression_value_4, mod_consts[19]);
1633         tmp_operand_value_1 = (tmp_result) ? Py_True : Py_False; 1531         tmp_operand_value_1 = (tmp_result) ? Py_True : Py_False;
1634         tmp_res = CHECK_IF_TRUE(tmp_operand_value_1); 1532         tmp_res = CHECK_IF_TRUE(tmp_operand_value_1);
1635         if (tmp_res == -1) { 1533         if (tmp_res == -1) {
1636             assert(ERROR_OCCURRED()); 1534             assert(ERROR_OCCURRED());
1637 1535
1658         PyObject *tmp_tuple_element_2; 1556         PyObject *tmp_tuple_element_2;
1659         PyObject *tmp_getattr_target_1; 1557         PyObject *tmp_getattr_target_1;
1660         PyObject *tmp_getattr_attr_1; 1558         PyObject *tmp_getattr_attr_1;
1661         PyObject *tmp_getattr_default_1; 1559         PyObject *tmp_getattr_default_1;
1662         tmp_raise_type_1 = PyExc_TypeError; 1560         tmp_raise_type_1 = PyExc_TypeError;
n 1663         tmp_left_value_1 = mod_consts[23]; n 1561         tmp_left_value_1 = mod_consts[20];
1664         CHECK_OBJECT(tmp_class_creation_1__metaclass); 1562         CHECK_OBJECT(tmp_class_creation_1__metaclass);
1665         tmp_getattr_target_1 = tmp_class_creation_1__metaclass; 1563         tmp_getattr_target_1 = tmp_class_creation_1__metaclass;
n 1666         tmp_getattr_attr_1 = mod_consts[24]; n 1564         tmp_getattr_attr_1 = mod_consts[21];
1667         tmp_getattr_default_1 = mod_consts[25]; 1565         tmp_getattr_default_1 = mod_consts[22];
1668         tmp_tuple_element_2 = BUILTIN_GETATTR(tmp_getattr_target_1, tmp_getattr_attr_1, tmp_getattr_default_1); 1566         tmp_tuple_element_2 = BUILTIN_GETATTR(tmp_getattr_target_1, tmp_getattr_attr_1, tmp_getattr_default_1);
1669         if (tmp_tuple_element_2 == NULL) { 1567         if (tmp_tuple_element_2 == NULL) {
1670             assert(ERROR_OCCURRED()); 1568             assert(ERROR_OCCURRED());
1671 1569
1672             FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); 1570             FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
1683             PyTuple_SET_ITEM(tmp_right_value_1, 0, tmp_tuple_element_2); 1581             PyTuple_SET_ITEM(tmp_right_value_1, 0, tmp_tuple_element_2);
1684             CHECK_OBJECT(tmp_class_creation_1__prepared); 1582             CHECK_OBJECT(tmp_class_creation_1__prepared);
1685             tmp_type_arg_2 = tmp_class_creation_1__prepared; 1583             tmp_type_arg_2 = tmp_class_creation_1__prepared;
1686             tmp_expression_value_5 = BUILTIN_TYPE1(tmp_type_arg_2); 1584             tmp_expression_value_5 = BUILTIN_TYPE1(tmp_type_arg_2);
1687             assert(!(tmp_expression_value_5 == NULL)); 1585             assert(!(tmp_expression_value_5 == NULL));
n 1688             tmp_tuple_element_2 = LOOKUP_ATTRIBUTE(tmp_expression_value_5, mod_consts[24]); n 1586             tmp_tuple_element_2 = LOOKUP_ATTRIBUTE(tmp_expression_value_5, mod_consts[21]);
1689             Py_DECREF(tmp_expression_value_5); 1587             Py_DECREF(tmp_expression_value_5);
1690             if (tmp_tuple_element_2 == NULL) { 1588             if (tmp_tuple_element_2 == NULL) {
1691                 assert(ERROR_OCCURRED()); 1589                 assert(ERROR_OCCURRED());
1692 1590
1693                 FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); 1591                 FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
1745             locals___main__$$$class__1_C_22 = tmp_set_locals_1; 1643             locals___main__$$$class__1_C_22 = tmp_set_locals_1;
1746             Py_INCREF(tmp_set_locals_1); 1644             Py_INCREF(tmp_set_locals_1);
1747         } 1645         }
1748         // Tried code: 1646         // Tried code:
1749         // Tried code: 1647         // Tried code:
n 1750         tmp_dictset_value = mod_consts[26]; n 1648         tmp_dictset_value = mod_consts[23];
1751         tmp_res = PyObject_SetItem(locals___main__$$$class__1_C_22, mod_consts[27], tmp_dictset_value); 1649         tmp_res = PyObject_SetItem(locals___main__$$$class__1_C_22, mod_consts[24], tmp_dictset_value);
1752         if (tmp_res != 0) { 1650         if (tmp_res != 0) {
1753             assert(ERROR_OCCURRED()); 1651             assert(ERROR_OCCURRED());
1754 1652
1755             FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); 1653             FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
1756 1654
1758             exception_lineno = 22; 1656             exception_lineno = 22;
1759 1657
1760             goto try_except_handler_3; 1658             goto try_except_handler_3;
1761         } 1659         }
1762         tmp_dictset_value = mod_consts[8]; 1660         tmp_dictset_value = mod_consts[8];
n 1763         tmp_res = PyObject_SetItem(locals___main__$$$class__1_C_22, mod_consts[28], tmp_dictset_value); n 1661         tmp_res = PyObject_SetItem(locals___main__$$$class__1_C_22, mod_consts[25], tmp_dictset_value);
1764         if (tmp_res != 0) { 1662         if (tmp_res != 0) {
1765             assert(ERROR_OCCURRED()); 1663             assert(ERROR_OCCURRED());
1766 1664
1767             FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); 1665             FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
1768 1666
1800         // Framed code: 1698         // Framed code:
1801 1699
1802 1700
1803         tmp_dictset_value = MAKE_FUNCTION___main__$$$function__1___init__(); 1701         tmp_dictset_value = MAKE_FUNCTION___main__$$$function__1___init__();
1804 1702
n 1805         tmp_res = PyObject_SetItem(locals___main__$$$class__1_C_22, mod_consts[29], tmp_dictset_value); n 1703         tmp_res = PyObject_SetItem(locals___main__$$$class__1_C_22, mod_consts[26], tmp_dictset_value);
1806         Py_DECREF(tmp_dictset_value); 1704         Py_DECREF(tmp_dictset_value);
1807         if (tmp_res != 0) { 1705         if (tmp_res != 0) {
1808             assert(ERROR_OCCURRED()); 1706             assert(ERROR_OCCURRED());
1809 1707
1810             FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); 1708             FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
1873             nuitka_bool tmp_condition_result_6; 1771             nuitka_bool tmp_condition_result_6;
1874             PyObject *tmp_compexpr_left_1; 1772             PyObject *tmp_compexpr_left_1;
1875             PyObject *tmp_compexpr_right_1; 1773             PyObject *tmp_compexpr_right_1;
1876             CHECK_OBJECT(tmp_class_creation_1__bases); 1774             CHECK_OBJECT(tmp_class_creation_1__bases);
1877             tmp_compexpr_left_1 = tmp_class_creation_1__bases; 1775             tmp_compexpr_left_1 = tmp_class_creation_1__bases;
n 1878             tmp_compexpr_right_1 = mod_consts[18]; n 1776             tmp_compexpr_right_1 = mod_consts[15];
1879             tmp_condition_result_6 = RICH_COMPARE_NE_NBOOL_OBJECT_TUPLE(tmp_compexpr_left_1, tmp_compexpr_right_1); 1777             tmp_condition_result_6 = RICH_COMPARE_NE_NBOOL_OBJECT_TUPLE(tmp_compexpr_left_1, tmp_compexpr_right_1);
1880             if (tmp_condition_result_6 == NUITKA_BOOL_EXCEPTION) { 1778             if (tmp_condition_result_6 == NUITKA_BOOL_EXCEPTION) {
1881                 assert(ERROR_OCCURRED()); 1779                 assert(ERROR_OCCURRED());
1882 1780
1883                 FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); 1781                 FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
1893                 goto branch_no_4; 1791                 goto branch_no_4;
1894             } 1792             }
1895             assert(tmp_condition_result_6 != NUITKA_BOOL_UNASSIGNED); 1793             assert(tmp_condition_result_6 != NUITKA_BOOL_UNASSIGNED);
1896         } 1794         }
1897         branch_yes_4:; 1795         branch_yes_4:;
n 1898         tmp_dictset_value = mod_consts[18]; n 1796         tmp_dictset_value = mod_consts[15];
1899         tmp_res = PyObject_SetItem(locals___main__$$$class__1_C_22, mod_consts[31], tmp_dictset_value); 1797         tmp_res = PyObject_SetItem(locals___main__$$$class__1_C_22, mod_consts[28], tmp_dictset_value);
1900         if (tmp_res != 0) { 1798         if (tmp_res != 0) {
1901             assert(ERROR_OCCURRED()); 1799             assert(ERROR_OCCURRED());
1902 1800
1903             FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); 1801             FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
1904 1802
2054         PyObject *tmp_assign_source_13; 1952         PyObject *tmp_assign_source_13;
2055 1953
2056 1954
2057         tmp_assign_source_13 = MAKE_FUNCTION___main__$$$function__2_calledRepeatedly(); 1955         tmp_assign_source_13 = MAKE_FUNCTION___main__$$$function__2_calledRepeatedly();
2058 1956
n 2059         UPDATE_STRING_DICT1(moduledict___main__, (Nuitka_StringObject *)mod_consts[32], tmp_assign_source_13); n 1957         UPDATE_STRING_DICT1(moduledict___main__, (Nuitka_StringObject *)mod_consts[29], tmp_assign_source_13);
2060     } 1958     }
2061     { 1959     {
2062         PyObject *tmp_assign_source_14; 1960         PyObject *tmp_assign_source_14;
2063         PyObject *tmp_name_value_1; 1961         PyObject *tmp_name_value_1;
2064         PyObject *tmp_globals_arg_value_1; 1962         PyObject *tmp_globals_arg_value_1;
2065         PyObject *tmp_locals_arg_value_1; 1963         PyObject *tmp_locals_arg_value_1;
2066         PyObject *tmp_fromlist_value_1; 1964         PyObject *tmp_fromlist_value_1;
2067         PyObject *tmp_level_value_1; 1965         PyObject *tmp_level_value_1;
n 2068         tmp_name_value_1 = mod_consts[33]; n 1966         tmp_name_value_1 = mod_consts[30];
2069         tmp_globals_arg_value_1 = (PyObject *)moduledict___main__; 1967         tmp_globals_arg_value_1 = (PyObject *)moduledict___main__;
2070         tmp_locals_arg_value_1 = Py_None; 1968         tmp_locals_arg_value_1 = Py_None;
2071         tmp_fromlist_value_1 = Py_None; 1969         tmp_fromlist_value_1 = Py_None;
n 2072         tmp_level_value_1 = mod_consts[20]; n 1970         tmp_level_value_1 = mod_consts[17];
2073         frame_0b3cbd1a383725062ec5835762fedfe7->m_frame.f_lineno = 46; 1971         frame_0b3cbd1a383725062ec5835762fedfe7->m_frame.f_lineno = 46;
2074         tmp_assign_source_14 = IMPORT_MODULE5(tmp_name_value_1, tmp_globals_arg_value_1, tmp_locals_arg_value_1, tmp_fromlist_value_1, tmp_level_value_1); 1972         tmp_assign_source_14 = IMPORT_MODULE5(tmp_name_value_1, tmp_globals_arg_value_1, tmp_locals_arg_value_1, tmp_fromlist_value_1, tmp_level_value_1);
2075         assert(!(tmp_assign_source_14 == NULL)); 1973         assert(!(tmp_assign_source_14 == NULL));
n 2076         UPDATE_STRING_DICT1(moduledict___main__, (Nuitka_StringObject *)mod_consts[33], tmp_assign_source_14); n 1974         UPDATE_STRING_DICT1(moduledict___main__, (Nuitka_StringObject *)mod_consts[30], tmp_assign_source_14);
2077     } 1975     }
2078     { 1976     {
2079         PyObject *tmp_assign_source_15; 1977         PyObject *tmp_assign_source_15;
2080         PyObject *tmp_iter_arg_1; 1978         PyObject *tmp_iter_arg_1;
2081         PyObject *tmp_called_instance_1; 1979         PyObject *tmp_called_instance_1;
n 2082         tmp_called_instance_1 = GET_STRING_DICT_VALUE(moduledict___main__, (Nuitka_StringObject *)mod_consts[33]); n 1980         tmp_called_instance_1 = GET_STRING_DICT_VALUE(moduledict___main__, (Nuitka_StringObject *)mod_consts[30]);
2083 1981
2084         if (unlikely(tmp_called_instance_1 == NULL)) { 1982         if (unlikely(tmp_called_instance_1 == NULL)) {
n 2085             tmp_called_instance_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[33]); n 1983             tmp_called_instance_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[30]);
2086         } 1984         }
2087 1985
2088         assert(!(tmp_called_instance_1 == NULL)); 1986         assert(!(tmp_called_instance_1 == NULL));
2089         frame_0b3cbd1a383725062ec5835762fedfe7->m_frame.f_lineno = 47; 1987         frame_0b3cbd1a383725062ec5835762fedfe7->m_frame.f_lineno = 47;
2090         tmp_iter_arg_1 = CALL_METHOD_WITH_ARGS2( 1988         tmp_iter_arg_1 = CALL_METHOD_WITH_ARGS2(
2091             tmp_called_instance_1, 1989             tmp_called_instance_1,
n 2092             mod_consts[34], n 1990             mod_consts[31],
2093             &PyTuple_GET_ITEM(mod_consts[35], 0) 1991             &PyTuple_GET_ITEM(mod_consts[32], 0)
2094         ); 1992         );
2095 1993
2096         if (tmp_iter_arg_1 == NULL) { 1994         if (tmp_iter_arg_1 == NULL) {
2097             assert(ERROR_OCCURRED()); 1995             assert(ERROR_OCCURRED());
2098 1996
2148     } 2046     }
2149     { 2047     {
2150         PyObject *tmp_assign_source_17; 2048         PyObject *tmp_assign_source_17;
2151         CHECK_OBJECT(tmp_for_loop_1__iter_value); 2049         CHECK_OBJECT(tmp_for_loop_1__iter_value);
2152         tmp_assign_source_17 = tmp_for_loop_1__iter_value; 2050         tmp_assign_source_17 = tmp_for_loop_1__iter_value;
n 2153         UPDATE_STRING_DICT0(moduledict___main__, (Nuitka_StringObject *)mod_consts[36], tmp_assign_source_17); n 2051         UPDATE_STRING_DICT0(moduledict___main__, (Nuitka_StringObject *)mod_consts[33], tmp_assign_source_17);
2154     } 2052     }
2155     { 2053     {
2156         PyObject *tmp_called_value_3; 2054         PyObject *tmp_called_value_3;
2157         PyObject *tmp_call_result_1; 2055         PyObject *tmp_call_result_1;
n 2158         tmp_called_value_3 = GET_STRING_DICT_VALUE(moduledict___main__, (Nuitka_StringObject *)mod_consts[32]); n 2056         tmp_called_value_3 = GET_STRING_DICT_VALUE(moduledict___main__, (Nuitka_StringObject *)mod_consts[29]);
2159 2057
2160         if (unlikely(tmp_called_value_3 == NULL)) { 2058         if (unlikely(tmp_called_value_3 == NULL)) {
n 2161             tmp_called_value_3 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[32]); n 2059             tmp_called_value_3 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[29]);
2162         } 2060         }
2163 2061
2164         if (tmp_called_value_3 == NULL) { 2062         if (tmp_called_value_3 == NULL) {
2165             assert(ERROR_OCCURRED()); 2063             assert(ERROR_OCCURRED());
2166 2064
2229     Py_DECREF(tmp_for_loop_1__for_iterator); 2127     Py_DECREF(tmp_for_loop_1__for_iterator);
2230     tmp_for_loop_1__for_iterator = NULL; 2128     tmp_for_loop_1__for_iterator = NULL;
2231     { 2129     {
2232         PyObject *tmp_called_value_4; 2130         PyObject *tmp_called_value_4;
2233         PyObject *tmp_call_result_2; 2131         PyObject *tmp_call_result_2;
n 2234         tmp_called_value_4 = LOOKUP_BUILTIN(mod_consts[37]); n 2132         tmp_called_value_4 = LOOKUP_BUILTIN(mod_consts[34]);
2235         assert(tmp_called_value_4 != NULL); 2133         assert(tmp_called_value_4 != NULL);
2236         frame_0b3cbd1a383725062ec5835762fedfe7->m_frame.f_lineno = 50; 2134         frame_0b3cbd1a383725062ec5835762fedfe7->m_frame.f_lineno = 50;
t 2237         tmp_call_result_2 = CALL_FUNCTION_WITH_POSARGS1(tmp_called_value_4, mod_consts[38]); t 2135         tmp_call_result_2 = CALL_FUNCTION_WITH_POSARGS1(tmp_called_value_4, mod_consts[35]);
2238 2136
2239         if (tmp_call_result_2 == NULL) { 2137         if (tmp_call_result_2 == NULL) {
2240             assert(ERROR_OCCURRED()); 2138             assert(ERROR_OCCURRED());
2241 2139
2242             FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); 2140             FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);