Construct CallCompiledFunctionPosArgsConstant

Performance Diagrams

Construct CallCompiledFunctionPosArgsConstant 002000000020000000400000004000000060000000600000008000000080000000100000000100000000120000000120000000140000000140000000160000000160000000180000000180000000200000000200000000220000000220000000CPython 2.7Nuitka (master)Nuitka (develop)Nuitka (factory)23908605488.11538461538461257.0CPython 2.761855414240.03846153846155440.18265342750095Nuitka (master)61855366391.96153846153845440.1827030395058Nuitka (develop)61855700543.8846153846154440.18235782263895Nuitka (factory)Construct CallCompiledFunctionPosArgsConstantTicks Construct CallCompiledFunctionPosArgsConstant 002000000020000000400000004000000060000000600000008000000080000000100000000100000000120000000120000000140000000140000000160000000160000000180000000180000000200000000200000000220000000220000000CPython 3.5Nuitka (master)Nuitka (develop)Nuitka (factory)22205770388.11538461538461257.0CPython 3.571256821240.03846153846155424.8177223861909Nuitka (master)70809245391.96153846153845425.3158042536081Nuitka (develop)70815428543.8846153846154425.3089235446643Nuitka (factory)Construct CallCompiledFunctionPosArgsConstantTicks

Source Code with Construct

from __future__ import print_function

def compiled_func(a,b,c,d,e,f):
    return a, b, c, d, e, f

def calledRepeatedly():
    # This is supposed to make a call to a non-compiled function, which is
    # being optimized separately.
# construct_begin
    compiled_func("some", "random", "values", "to", "check", "call")
    compiled_func("some", "other", "values", "to", "check", "call")
    compiled_func("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

def compiled_func(a,b,c,d,e,f):
    return a, b, c, d, e, f

def calledRepeatedly():
    # This is supposed to make a call to a non-compiled function, 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
24 24
25 def calledRepeatedly(): 25 def calledRepeatedly():
26     # This is supposed to make a call to a non-compiled function, which is 26     # This is supposed to make a call to a non-compiled function, which is
27     # being optimized separately. 27     # being optimized separately.
28 # construct_begin 28 # construct_begin
n 29     compiled_func("some", "random", "values", "to", "check", "call") n
30     compiled_func("some", "other", "values", "to", "check", "call")
31     compiled_func("some", "new", "values", "to", "check", "call")
32 # construct_alternative
33 29
34 30
t t 31  
32 # construct_alternative
33     pass
34 # construct_end
35 35
36 import itertools 36 import itertools
37 for x in itertools.repeat(None, 50000): 37 for x in itertools.repeat(None, 50000):
38     calledRepeatedly() 38     calledRepeatedly()
39 39

Context Diff of Generated Code


Construct
Baseline
29 29
30 PyObject *module___main__; 30 PyObject *module___main__;
31 PyDictObject *moduledict___main__; 31 PyDictObject *moduledict___main__;
32 32
33 /* The module constants used, if any. */ 33 /* The module constants used, if any. */
n 34 static PyObject *const_str_plain_to; n
35 static PyObject *const_str_plain_b; 34 static PyObject *const_str_plain_b;
36 static PyObject *const_str_plain_itertools; 35 static PyObject *const_str_plain_itertools;
37 static PyObject *const_tuple_d4571c3ff966778a8b3ba4a6bd66fdef_tuple; 36 static PyObject *const_tuple_d4571c3ff966778a8b3ba4a6bd66fdef_tuple;
n 38 static PyObject *const_tuple_4cee4124c8df2995a8a82b981e580f5e_tuple; n
39 static PyObject *const_str_plain_f; 37 static PyObject *const_str_plain_f;
n 40 static PyObject *const_str_plain_values; n
41 extern PyObject *const_str_plain___file__; 38 extern PyObject *const_str_plain___file__;
n 42 static PyObject *const_str_plain_other; n
43 extern PyObject *const_int_0; 39 extern PyObject *const_int_0;
n 44 static PyObject *const_str_plain_check; n
45 static PyObject *const_str_plain_compiled_func; 40 static PyObject *const_str_plain_compiled_func;
n n 41 static PyObject *const_str_plain_a;
46 extern PyObject *const_str_plain_print; 42 extern PyObject *const_str_plain_print;
n 47 static PyObject *const_str_plain_a; n
48 static PyObject *const_str_plain_call;
49 static PyObject *const_int_pos_50000; 43 static PyObject *const_int_pos_50000;
50 static PyObject *const_tuple_str_digest_5ed1392909ad16e6227b8230f4582352_tuple; 44 static PyObject *const_tuple_str_digest_5ed1392909ad16e6227b8230f4582352_tuple;
n 51 static PyObject *const_str_plain_random; n
52 static PyObject *const_str_digest_4925769da17b1dc11ca408c69116ca21; 45 static PyObject *const_str_digest_4925769da17b1dc11ca408c69116ca21;
53 static PyObject *const_str_plain_e; 46 static PyObject *const_str_plain_e;
54 static PyObject *const_str_plain_calledRepeatedly; 47 static PyObject *const_str_plain_calledRepeatedly;
55 static PyObject *const_str_angle_module; 48 static PyObject *const_str_angle_module;
56 static PyObject *const_str_plain_None; 49 static PyObject *const_str_plain_None;
57 static PyObject *const_str_plain_x; 50 static PyObject *const_str_plain_x;
58 extern PyObject *const_tuple_empty; 51 extern PyObject *const_tuple_empty;
59 static PyObject *const_str_plain_c; 52 static PyObject *const_str_plain_c;
60 static PyObject *const_str_digest_5ed1392909ad16e6227b8230f4582352; 53 static PyObject *const_str_digest_5ed1392909ad16e6227b8230f4582352;
n 61 static PyObject *const_str_plain_some; n
62 static PyObject *const_str_plain_repeat; 54 static PyObject *const_str_plain_repeat;
n 63 static PyObject *const_str_plain_new; n
64 static PyObject *const_tuple_none_int_pos_50000_tuple; 55 static PyObject *const_tuple_none_int_pos_50000_tuple;
65 extern PyObject *const_str_plain___main__; 56 extern PyObject *const_str_plain___main__;
n 66 static PyObject *const_tuple_78e2f1ad354bdb7db1a0fda186168ee0_tuple; n
67 static PyObject *const_tuple_ca2f155a28955fc472d4376e2721d689_tuple;
68 static PyObject *const_str_plain_d; 57 static PyObject *const_str_plain_d;
69 extern PyObject *const_str_plain___doc__; 58 extern PyObject *const_str_plain___doc__;
70 extern PyObject *const_str_plain___cached__; 59 extern PyObject *const_str_plain___cached__;
71 static PyObject *const_str_plain_print_function; 60 static PyObject *const_str_plain_print_function;
72 static PyObject *module_filename_obj; 61 static PyObject *module_filename_obj;
73 62
74 static bool constants_created = false; 63 static bool constants_created = false;
75 64
76 static void createModuleConstants( void ) 65 static void createModuleConstants( void )
77 { 66 {
n 78     const_str_plain_to = UNSTREAM_STRING_ASCII( &constant_bin[ 0 ], 2, 1 ); n
79     const_str_plain_b = UNSTREAM_STRING_ASCII( &constant_bin[ 2 ], 1, 1 ); 67     const_str_plain_b = UNSTREAM_STRING_ASCII( &constant_bin[ 0 ], 1, 1 );
80     const_str_plain_itertools = UNSTREAM_STRING_ASCII( &constant_bin[ 3 ], 9, 1 ); 68     const_str_plain_itertools = UNSTREAM_STRING_ASCII( &constant_bin[ 1 ], 9, 1 );
81     const_tuple_d4571c3ff966778a8b3ba4a6bd66fdef_tuple = PyTuple_New( 6 ); 69     const_tuple_d4571c3ff966778a8b3ba4a6bd66fdef_tuple = PyTuple_New( 6 );
n 82     const_str_plain_a = UNSTREAM_STRING_ASCII( &constant_bin[ 12 ], 1, 1 ); n 70     const_str_plain_a = UNSTREAM_STRING_ASCII( &constant_bin[ 10 ], 1, 1 );
83     PyTuple_SET_ITEM( const_tuple_d4571c3ff966778a8b3ba4a6bd66fdef_tuple, 0, const_str_plain_a ); Py_INCREF( const_str_plain_a ); 71     PyTuple_SET_ITEM( const_tuple_d4571c3ff966778a8b3ba4a6bd66fdef_tuple, 0, const_str_plain_a ); Py_INCREF( const_str_plain_a );
84     PyTuple_SET_ITEM( const_tuple_d4571c3ff966778a8b3ba4a6bd66fdef_tuple, 1, const_str_plain_b ); Py_INCREF( const_str_plain_b ); 72     PyTuple_SET_ITEM( const_tuple_d4571c3ff966778a8b3ba4a6bd66fdef_tuple, 1, const_str_plain_b ); Py_INCREF( const_str_plain_b );
n 85     const_str_plain_c = UNSTREAM_STRING_ASCII( &constant_bin[ 13 ], 1, 1 ); n 73     const_str_plain_c = UNSTREAM_STRING_ASCII( &constant_bin[ 11 ], 1, 1 );
86     PyTuple_SET_ITEM( const_tuple_d4571c3ff966778a8b3ba4a6bd66fdef_tuple, 2, const_str_plain_c ); Py_INCREF( const_str_plain_c ); 74     PyTuple_SET_ITEM( const_tuple_d4571c3ff966778a8b3ba4a6bd66fdef_tuple, 2, const_str_plain_c ); Py_INCREF( const_str_plain_c );
n 87     const_str_plain_d = UNSTREAM_STRING_ASCII( &constant_bin[ 14 ], 1, 1 ); n 75     const_str_plain_d = UNSTREAM_STRING_ASCII( &constant_bin[ 12 ], 1, 1 );
88     PyTuple_SET_ITEM( const_tuple_d4571c3ff966778a8b3ba4a6bd66fdef_tuple, 3, const_str_plain_d ); Py_INCREF( const_str_plain_d ); 76     PyTuple_SET_ITEM( const_tuple_d4571c3ff966778a8b3ba4a6bd66fdef_tuple, 3, const_str_plain_d ); Py_INCREF( const_str_plain_d );
n 89     const_str_plain_e = UNSTREAM_STRING_ASCII( &constant_bin[ 5 ], 1, 1 ); n 77     const_str_plain_e = UNSTREAM_STRING_ASCII( &constant_bin[ 3 ], 1, 1 );
90     PyTuple_SET_ITEM( const_tuple_d4571c3ff966778a8b3ba4a6bd66fdef_tuple, 4, const_str_plain_e ); Py_INCREF( const_str_plain_e ); 78     PyTuple_SET_ITEM( const_tuple_d4571c3ff966778a8b3ba4a6bd66fdef_tuple, 4, const_str_plain_e ); Py_INCREF( const_str_plain_e );
n 91     const_str_plain_f = UNSTREAM_STRING_ASCII( &constant_bin[ 15 ], 1, 1 ); n 79     const_str_plain_f = UNSTREAM_STRING_ASCII( &constant_bin[ 13 ], 1, 1 );
92     PyTuple_SET_ITEM( const_tuple_d4571c3ff966778a8b3ba4a6bd66fdef_tuple, 5, const_str_plain_f ); Py_INCREF( const_str_plain_f ); 80     PyTuple_SET_ITEM( const_tuple_d4571c3ff966778a8b3ba4a6bd66fdef_tuple, 5, const_str_plain_f ); Py_INCREF( const_str_plain_f );
n 93     const_tuple_4cee4124c8df2995a8a82b981e580f5e_tuple = PyTuple_New( 6 ); n
94     const_str_plain_some = UNSTREAM_STRING_ASCII( &constant_bin[ 16 ], 4, 1 );
95     PyTuple_SET_ITEM( const_tuple_4cee4124c8df2995a8a82b981e580f5e_tuple, 0, const_str_plain_some ); Py_INCREF( const_str_plain_some );
96     const_str_plain_new = UNSTREAM_STRING_ASCII( &constant_bin[ 20 ], 3, 1 );
97     PyTuple_SET_ITEM( const_tuple_4cee4124c8df2995a8a82b981e580f5e_tuple, 1, const_str_plain_new ); Py_INCREF( const_str_plain_new );
98     const_str_plain_values = UNSTREAM_STRING_ASCII( &constant_bin[ 23 ], 6, 1 );
99     PyTuple_SET_ITEM( const_tuple_4cee4124c8df2995a8a82b981e580f5e_tuple, 2, const_str_plain_values ); Py_INCREF( const_str_plain_values );
100     PyTuple_SET_ITEM( const_tuple_4cee4124c8df2995a8a82b981e580f5e_tuple, 3, const_str_plain_to ); Py_INCREF( const_str_plain_to );
101     const_str_plain_check = UNSTREAM_STRING_ASCII( &constant_bin[ 29 ], 5, 1 );
102     PyTuple_SET_ITEM( const_tuple_4cee4124c8df2995a8a82b981e580f5e_tuple, 4, const_str_plain_check ); Py_INCREF( const_str_plain_check );
103     const_str_plain_call = UNSTREAM_STRING_ASCII( &constant_bin[ 34 ], 4, 1 );
104     PyTuple_SET_ITEM( const_tuple_4cee4124c8df2995a8a82b981e580f5e_tuple, 5, const_str_plain_call ); Py_INCREF( const_str_plain_call );
105     const_str_plain_other = UNSTREAM_STRING_ASCII( &constant_bin[ 38 ], 5, 1 );
106     const_str_plain_compiled_func = UNSTREAM_STRING_ASCII( &constant_bin[ 43 ], 13, 1 ); 81     const_str_plain_compiled_func = UNSTREAM_STRING_ASCII( &constant_bin[ 14 ], 13, 1 );
107     const_int_pos_50000 = PyLong_FromUnsignedLong( 50000ul ); 82     const_int_pos_50000 = PyLong_FromUnsignedLong( 50000ul );
108     const_tuple_str_digest_5ed1392909ad16e6227b8230f4582352_tuple = PyTuple_New( 1 ); 83     const_tuple_str_digest_5ed1392909ad16e6227b8230f4582352_tuple = PyTuple_New( 1 );
n 109     const_str_digest_5ed1392909ad16e6227b8230f4582352 = UNSTREAM_STRING_ASCII( &constant_bin[ 56 ], 3, 0 ); n 84     const_str_digest_5ed1392909ad16e6227b8230f4582352 = UNSTREAM_STRING_ASCII( &constant_bin[ 27 ], 3, 0 );
110     PyTuple_SET_ITEM( const_tuple_str_digest_5ed1392909ad16e6227b8230f4582352_tuple, 0, const_str_digest_5ed1392909ad16e6227b8230f4582352 ); Py_INCREF( const_str_digest_5ed1392909ad16e6227b8230f4582352 ); 85     PyTuple_SET_ITEM( const_tuple_str_digest_5ed1392909ad16e6227b8230f4582352_tuple, 0, const_str_digest_5ed1392909ad16e6227b8230f4582352 ); Py_INCREF( const_str_digest_5ed1392909ad16e6227b8230f4582352 );
n 111     const_str_plain_random = UNSTREAM_STRING_ASCII( &constant_bin[ 59 ], 6, 1 ); n
112     const_str_digest_4925769da17b1dc11ca408c69116ca21 = UNSTREAM_STRING_ASCII( &constant_bin[ 65 ], 86, 0 ); 86     const_str_digest_4925769da17b1dc11ca408c69116ca21 = UNSTREAM_STRING_ASCII( &constant_bin[ 30 ], 86, 0 );
113     const_str_plain_calledRepeatedly = UNSTREAM_STRING_ASCII( &constant_bin[ 151 ], 16, 1 ); 87     const_str_plain_calledRepeatedly = UNSTREAM_STRING_ASCII( &constant_bin[ 116 ], 16, 1 );
114     const_str_angle_module = UNSTREAM_STRING_ASCII( &constant_bin[ 167 ], 8, 0 ); 88     const_str_angle_module = UNSTREAM_STRING_ASCII( &constant_bin[ 132 ], 8, 0 );
115     const_str_plain_None = UNSTREAM_STRING_ASCII( &constant_bin[ 175 ], 4, 1 ); 89     const_str_plain_None = UNSTREAM_STRING_ASCII( &constant_bin[ 140 ], 4, 1 );
116     const_str_plain_x = UNSTREAM_STRING_ASCII( &constant_bin[ 90 ], 1, 1 ); 90     const_str_plain_x = UNSTREAM_STRING_ASCII( &constant_bin[ 55 ], 1, 1 );
117     const_str_plain_repeat = UNSTREAM_STRING_ASCII( &constant_bin[ 179 ], 6, 1 ); 91     const_str_plain_repeat = UNSTREAM_STRING_ASCII( &constant_bin[ 144 ], 6, 1 );
118     const_tuple_none_int_pos_50000_tuple = PyTuple_New( 2 ); 92     const_tuple_none_int_pos_50000_tuple = PyTuple_New( 2 );
119     PyTuple_SET_ITEM( const_tuple_none_int_pos_50000_tuple, 0, Py_None ); Py_INCREF( Py_None ); 93     PyTuple_SET_ITEM( const_tuple_none_int_pos_50000_tuple, 0, Py_None ); Py_INCREF( Py_None );
120     PyTuple_SET_ITEM( const_tuple_none_int_pos_50000_tuple, 1, const_int_pos_50000 ); Py_INCREF( const_int_pos_50000 ); 94     PyTuple_SET_ITEM( const_tuple_none_int_pos_50000_tuple, 1, const_int_pos_50000 ); Py_INCREF( const_int_pos_50000 );
n 121     const_tuple_78e2f1ad354bdb7db1a0fda186168ee0_tuple = PyTuple_New( 6 ); n
122     PyTuple_SET_ITEM( const_tuple_78e2f1ad354bdb7db1a0fda186168ee0_tuple, 0, const_str_plain_some ); Py_INCREF( const_str_plain_some );
123     PyTuple_SET_ITEM( const_tuple_78e2f1ad354bdb7db1a0fda186168ee0_tuple, 1, const_str_plain_random ); Py_INCREF( const_str_plain_random );
124     PyTuple_SET_ITEM( const_tuple_78e2f1ad354bdb7db1a0fda186168ee0_tuple, 2, const_str_plain_values ); Py_INCREF( const_str_plain_values );
125     PyTuple_SET_ITEM( const_tuple_78e2f1ad354bdb7db1a0fda186168ee0_tuple, 3, const_str_plain_to ); Py_INCREF( const_str_plain_to );
126     PyTuple_SET_ITEM( const_tuple_78e2f1ad354bdb7db1a0fda186168ee0_tuple, 4, const_str_plain_check ); Py_INCREF( const_str_plain_check );
127     PyTuple_SET_ITEM( const_tuple_78e2f1ad354bdb7db1a0fda186168ee0_tuple, 5, const_str_plain_call ); Py_INCREF( const_str_plain_call );
128     const_tuple_ca2f155a28955fc472d4376e2721d689_tuple = PyTuple_New( 6 );
129     PyTuple_SET_ITEM( const_tuple_ca2f155a28955fc472d4376e2721d689_tuple, 0, const_str_plain_some ); Py_INCREF( const_str_plain_some );
130     PyTuple_SET_ITEM( const_tuple_ca2f155a28955fc472d4376e2721d689_tuple, 1, const_str_plain_other ); Py_INCREF( const_str_plain_other );
131     PyTuple_SET_ITEM( const_tuple_ca2f155a28955fc472d4376e2721d689_tuple, 2, const_str_plain_values ); Py_INCREF( const_str_plain_values );
132     PyTuple_SET_ITEM( const_tuple_ca2f155a28955fc472d4376e2721d689_tuple, 3, const_str_plain_to ); Py_INCREF( const_str_plain_to );
133     PyTuple_SET_ITEM( const_tuple_ca2f155a28955fc472d4376e2721d689_tuple, 4, const_str_plain_check ); Py_INCREF( const_str_plain_check );
134     PyTuple_SET_ITEM( const_tuple_ca2f155a28955fc472d4376e2721d689_tuple, 5, const_str_plain_call ); Py_INCREF( const_str_plain_call );
135     const_str_plain_print_function = UNSTREAM_STRING_ASCII( &constant_bin[ 185 ], 14, 1 ); 95     const_str_plain_print_function = UNSTREAM_STRING_ASCII( &constant_bin[ 150 ], 14, 1 );
136 96
137     constants_created = true; 97     constants_created = true;
138 } 98 }
139 99
140 #ifndef __NUITKA_NO_ASSERT__ 100 #ifndef __NUITKA_NO_ASSERT__
147 } 107 }
148 #endif 108 #endif
149 109
150 // The module code objects. 110 // The module code objects.
151 static PyCodeObject *codeobj_80b49e41a9cbdc01312b1eb89bc705b3; 111 static PyCodeObject *codeobj_80b49e41a9cbdc01312b1eb89bc705b3;
n 152 static PyCodeObject *codeobj_2fa9760e1f58ab8ebe99d9cc077b9513; n 112 static PyCodeObject *codeobj_e72103e90b0f7325a4b9a9e9b387806f;
153 static PyCodeObject *codeobj_8736e2956bf6c1cb06a53955020f81ed; 113 static PyCodeObject *codeobj_8736e2956bf6c1cb06a53955020f81ed;
154 /* For use in "MainProgram.c". */ 114 /* For use in "MainProgram.c". */
155 PyCodeObject *codeobj_main = NULL; 115 PyCodeObject *codeobj_main = NULL;
156 116
157 static void createModuleCodeObjects(void) 117 static void createModuleCodeObjects(void)
158 { 118 {
159     module_filename_obj = const_str_digest_4925769da17b1dc11ca408c69116ca21; 119     module_filename_obj = const_str_digest_4925769da17b1dc11ca408c69116ca21;
160     codeobj_80b49e41a9cbdc01312b1eb89bc705b3 = MAKE_CODEOBJ( module_filename_obj, const_str_angle_module, 1, const_tuple_empty, 0, 0, CO_NOFREE ); 120     codeobj_80b49e41a9cbdc01312b1eb89bc705b3 = MAKE_CODEOBJ( module_filename_obj, const_str_angle_module, 1, const_tuple_empty, 0, 0, CO_NOFREE );
161     codeobj_main = codeobj_80b49e41a9cbdc01312b1eb89bc705b3; 121     codeobj_main = codeobj_80b49e41a9cbdc01312b1eb89bc705b3;
n 162     codeobj_2fa9760e1f58ab8ebe99d9cc077b9513 = MAKE_CODEOBJ( module_filename_obj, const_str_plain_calledRepeatedly, 25, const_tuple_empty, 0, 0, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE ); n 122     codeobj_e72103e90b0f7325a4b9a9e9b387806f = MAKE_CODEOBJ( module_filename_obj, const_str_plain_calledRepeatedly, 25, const_tuple_empty, 0, 0, CO_NOFREE );
163     codeobj_8736e2956bf6c1cb06a53955020f81ed = MAKE_CODEOBJ( module_filename_obj, const_str_plain_compiled_func, 22, const_tuple_d4571c3ff966778a8b3ba4a6bd66fdef_tuple, 6, 0, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE ); 123     codeobj_8736e2956bf6c1cb06a53955020f81ed = MAKE_CODEOBJ( module_filename_obj, const_str_plain_compiled_func, 22, const_tuple_d4571c3ff966778a8b3ba4a6bd66fdef_tuple, 6, 0, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE );
164 } 124 }
165 125
166 // The module function declarations. 126 // The module function declarations.
167 static PyObject *MAKE_FUNCTION___main__$$$function_1_compiled_func(  ); 127 static PyObject *MAKE_FUNCTION___main__$$$function_1_compiled_func(  );
285 #ifndef __NUITKA_NO_ASSERT__ 245 #ifndef __NUITKA_NO_ASSERT__
286     NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); 246     NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED();
287 #endif 247 #endif
288 248
289     // Local variable declarations. 249     // Local variable declarations.
n 290     struct Nuitka_FrameObject *frame_2fa9760e1f58ab8ebe99d9cc077b9513; n
291     NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL;
292     PyObject *exception_type = NULL;
293     PyObject *exception_value = NULL;
294     PyTracebackObject *exception_tb = NULL;
295     NUITKA_MAY_BE_UNUSED int exception_lineno = 0;
296     static struct Nuitka_FrameObject *cache_frame_2fa9760e1f58ab8ebe99d9cc077b9513 = NULL;
297     PyObject *tmp_return_value = NULL; 250     PyObject *tmp_return_value = NULL;
298 251
299     // Actual function code. 252     // Actual function code.
n 300     MAKE_OR_REUSE_FRAME( cache_frame_2fa9760e1f58ab8ebe99d9cc077b9513, codeobj_2fa9760e1f58ab8ebe99d9cc077b9513, module___main__, 0 ); n
301     frame_2fa9760e1f58ab8ebe99d9cc077b9513 = cache_frame_2fa9760e1f58ab8ebe99d9cc077b9513;
302  
303     // Push the new frame as the currently active one.
304     pushFrameStack( frame_2fa9760e1f58ab8ebe99d9cc077b9513 );
305  
306     // Mark the frame object as in use, ref count 1 will be up for reuse.
307     assert( Py_REFCNT( frame_2fa9760e1f58ab8ebe99d9cc077b9513 ) == 2 ); // Frame stack
308  
309     // Framed code:
310     {
311     PyObject *tmp_called_name_1;
312     PyObject *tmp_mvar_value_1;
313     PyObject *tmp_call_result_1;
314     tmp_mvar_value_1 = GET_STRING_DICT_VALUE( moduledict___main__, (Nuitka_StringObject *)const_str_plain_compiled_func );
315  
316     if (unlikely( tmp_mvar_value_1 == NULL ))
317     {
318         tmp_mvar_value_1 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_compiled_func );
319     }
320  
321     if ( tmp_mvar_value_1 == NULL )
322     {
323  
324         exception_type = PyExc_NameError;
325         Py_INCREF( exception_type );
326         exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "compiled_func" );
327         exception_tb = NULL;
328         NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
329         CHAIN_EXCEPTION( exception_value );
330  
331         exception_lineno = 29;
332  
333         goto frame_exception_exit_1;
334     }
335  
336     tmp_called_name_1 = tmp_mvar_value_1;
337     frame_2fa9760e1f58ab8ebe99d9cc077b9513->m_frame.f_lineno = 29;
338     tmp_call_result_1 = CALL_FUNCTION_WITH_ARGS6( tmp_called_name_1, &PyTuple_GET_ITEM( const_tuple_78e2f1ad354bdb7db1a0fda186168ee0_tuple, 0 ) );
339  
340     if ( tmp_call_result_1 == NULL )
341     {
342         assert( ERROR_OCCURRED() );
343  
344         FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
345  
346  
347         exception_lineno = 29;
348  
349         goto frame_exception_exit_1;
350     }
351     Py_DECREF( tmp_call_result_1 );
352     }
353     {
354     PyObject *tmp_called_name_2;
355     PyObject *tmp_mvar_value_2;
356     PyObject *tmp_call_result_2;
357     tmp_mvar_value_2 = GET_STRING_DICT_VALUE( moduledict___main__, (Nuitka_StringObject *)const_str_plain_compiled_func );
358  
359     if (unlikely( tmp_mvar_value_2 == NULL ))
360     {
361         tmp_mvar_value_2 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_compiled_func );
362     }
363  
364     if ( tmp_mvar_value_2 == NULL )
365     {
366  
367         exception_type = PyExc_NameError;
368         Py_INCREF( exception_type );
369         exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "compiled_func" );
370         exception_tb = NULL;
371         NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
372         CHAIN_EXCEPTION( exception_value );
373  
374         exception_lineno = 30;
375  
376         goto frame_exception_exit_1;
377     }
378  
379     tmp_called_name_2 = tmp_mvar_value_2;
380     frame_2fa9760e1f58ab8ebe99d9cc077b9513->m_frame.f_lineno = 30;
381     tmp_call_result_2 = CALL_FUNCTION_WITH_ARGS6( tmp_called_name_2, &PyTuple_GET_ITEM( const_tuple_ca2f155a28955fc472d4376e2721d689_tuple, 0 ) );
382  
383     if ( tmp_call_result_2 == NULL )
384     {
385         assert( ERROR_OCCURRED() );
386  
387         FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
388  
389  
390         exception_lineno = 30;
391  
392         goto frame_exception_exit_1;
393     }
394     Py_DECREF( tmp_call_result_2 );
395     }
396     {
397     PyObject *tmp_called_name_3;
398     PyObject *tmp_mvar_value_3;
399     PyObject *tmp_call_result_3;
400     tmp_mvar_value_3 = GET_STRING_DICT_VALUE( moduledict___main__, (Nuitka_StringObject *)const_str_plain_compiled_func );
401  
402     if (unlikely( tmp_mvar_value_3 == NULL ))
403     {
404         tmp_mvar_value_3 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_compiled_func );
405     }
406  
407     if ( tmp_mvar_value_3 == NULL )
408     {
409  
410         exception_type = PyExc_NameError;
411         Py_INCREF( exception_type );
412         exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "compiled_func" );
413         exception_tb = NULL;
414         NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
415         CHAIN_EXCEPTION( exception_value );
416  
417         exception_lineno = 31;
418  
419         goto frame_exception_exit_1;
420     }
421  
422     tmp_called_name_3 = tmp_mvar_value_3;
423     frame_2fa9760e1f58ab8ebe99d9cc077b9513->m_frame.f_lineno = 31;
424     tmp_call_result_3 = CALL_FUNCTION_WITH_ARGS6( tmp_called_name_3, &PyTuple_GET_ITEM( const_tuple_4cee4124c8df2995a8a82b981e580f5e_tuple, 0 ) );
425  
426     if ( tmp_call_result_3 == NULL )
427     {
428         assert( ERROR_OCCURRED() );
429  
430         FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
431  
432  
433         exception_lineno = 31;
434  
435         goto frame_exception_exit_1;
436     }
437     Py_DECREF( tmp_call_result_3 );
438     }
439  
440 #if 0
441     RESTORE_FRAME_EXCEPTION( frame_2fa9760e1f58ab8ebe99d9cc077b9513 );
442 #endif
443  
444     // Put the previous frame back on top.
445     popFrameStack();
446  
447     goto frame_no_exception_1;
448  
449     frame_exception_exit_1:;
450  
451 #if 0
452     RESTORE_FRAME_EXCEPTION( frame_2fa9760e1f58ab8ebe99d9cc077b9513 );
453 #endif
454  
455     if ( exception_tb == NULL )
456     {
457         exception_tb = MAKE_TRACEBACK( frame_2fa9760e1f58ab8ebe99d9cc077b9513, exception_lineno );
458     }
459     else if ( exception_tb->tb_frame != &frame_2fa9760e1f58ab8ebe99d9cc077b9513->m_frame )
460     {
461         exception_tb = ADD_TRACEBACK( exception_tb, frame_2fa9760e1f58ab8ebe99d9cc077b9513, exception_lineno );
462     }
463  
464     // Attachs locals to frame if any.
465     Nuitka_Frame_AttachLocals(
466         (struct Nuitka_FrameObject *)frame_2fa9760e1f58ab8ebe99d9cc077b9513,
467         type_description_1
468     );
469  
470  
471     // Release cached frame.
472     if ( frame_2fa9760e1f58ab8ebe99d9cc077b9513 == cache_frame_2fa9760e1f58ab8ebe99d9cc077b9513 )
473     {
474         Py_DECREF( frame_2fa9760e1f58ab8ebe99d9cc077b9513 );
475     }
476     cache_frame_2fa9760e1f58ab8ebe99d9cc077b9513 = NULL;
477  
478     assertFrameObject( frame_2fa9760e1f58ab8ebe99d9cc077b9513 );
479  
480     // Put the previous frame back on top.
481     popFrameStack();
482  
483     // Return the error.
484     goto function_exception_exit;
485  
486     frame_no_exception_1:;
487     { 253     {
488     tmp_return_value = Py_None; 254     tmp_return_value = Py_None;
489     Py_INCREF( tmp_return_value ); 255     Py_INCREF( tmp_return_value );
490     goto function_return_exit; 256     goto function_return_exit;
491     } 257     }
492 258
493     // Return statement must have exited already. 259     // Return statement must have exited already.
494     NUITKA_CANNOT_GET_HERE( __main__$$$function_2_calledRepeatedly ); 260     NUITKA_CANNOT_GET_HERE( __main__$$$function_2_calledRepeatedly );
495     return NULL; 261     return NULL;
496 262
n 497 function_exception_exit: n
498     assert( exception_type );
499     RESTORE_ERROR_OCCURRED( exception_type, exception_value, exception_tb );
500  
501     return NULL;
502 function_return_exit: 263 function_return_exit:
503 264
504 CHECK_OBJECT( tmp_return_value ); 265 CHECK_OBJECT( tmp_return_value );
505 assert( had_error || !ERROR_OCCURRED() ); 266 assert( had_error || !ERROR_OCCURRED() );
506 return tmp_return_value; 267 return tmp_return_value;
539         impl___main__$$$function_2_calledRepeatedly, 300         impl___main__$$$function_2_calledRepeatedly,
540         const_str_plain_calledRepeatedly, 301         const_str_plain_calledRepeatedly,
541 #if PYTHON_VERSION >= 300 302 #if PYTHON_VERSION >= 300
542         NULL, 303         NULL,
543 #endif 304 #endif
t 544         codeobj_2fa9760e1f58ab8ebe99d9cc077b9513, t 305         codeobj_e72103e90b0f7325a4b9a9e9b387806f,
545         NULL, 306         NULL,
546 #if PYTHON_VERSION >= 300 307 #if PYTHON_VERSION >= 300
547         NULL, 308         NULL,
548         NULL, 309         NULL,
549 #endif 310 #endif