array C_nextFree183 integer C_firstFree221 integer C_maxIndex189 array C_typeId845 integer C_firstFree221 = 0 integer C_maxIndex189 = 0 function initGlobals104() { } function main188() { initGlobals104(); init_test155(); } function config119() { } function init_test155() { new_C534(); } IS_NATIVE function testSuccess767() { } function C_A_foo156(integer this185) { dispatch_C_test_C_A_bar107(this_185); } function C_A_bar445(integer this442) { testSuccess767(); } function C_init206(integer this126) { construct_C_A162(this_126); } function construct_C_A162(integer this151) { } function new_C534() returns integer { local integer this133 this_133 = alloc_C200(); construct_C103(this_133); return this_133; } function construct_C103(integer this133) { C_init206(this_133); dispatch_C_test_C_A_foo916(this_133); } function alloc_C200() returns integer { local integer this101 if (C_firstFree_221 == 0) { if (C_maxIndex_189 < 32768) { C_maxIndex_189 = (C_maxIndex_189 + 1); this_101 = C_maxIndex_189; C_typeId_845[this_101] = 1; } else { error593("Out of memory: Could not create C."); this_101 = 0; }; } else { C_firstFree_221 = (C_firstFree_221 - 1); this_101 = C_nextFree_183[C_firstFree_221]; C_typeId_845[this_101] = 1; }; return this_101; } function error593(string msg203) { $debugPrint152((msg_203 + (" " + #getStackTrace()))); } function dispatch_C_test_C_A_foo916(integer this198) { if (C_typeId_845[this_198] == 0) { if (this_198 == 0) { error593("Nullpointer exception when calling C.foo"); } else { error593("Called C.foo on invalid object."); }; } else { }; C_A_foo156(this_198); } function dispatch_C_test_C_A_bar107(integer this414) { if (C_typeId_845[this_414] == 0) { if (this_414 == 0) { error593("Nullpointer exception when calling C.bar"); } else { error593("Called C.bar on invalid object."); }; } else { }; C_A_bar445(this_414); }