array C_nextFree428 integer C_firstFree360 integer C_maxIndex141 array C_typeId116 integer C_firstFree360 = 0 integer C_maxIndex141 = 0 function initGlobals143() { } function main789() { initGlobals143(); new_C158(); } function config210() { } IS_NATIVE function testSuccess127() { } function new_C158() returns integer { local integer this179 if (C_firstFree_360 == 0) { if (C_maxIndex_141 < 32768) { C_maxIndex_141 = (C_maxIndex_141 + 1); this_179 = C_maxIndex_141; C_typeId_116[this_179] = 1; } else { error192("Out of memory: Could not create C."); this_179 = 0; }; } else { C_firstFree_360 = (C_firstFree_360 - 1); this_179 = C_nextFree_428[C_firstFree_360]; C_typeId_116[this_179] = 1; }; dispatch_C_test_C_A_foo163(this_179); return this_179; } function error192(string msg198) { $debugPrint703((msg_198 + (" " + #getStackTrace()))); } function dispatch_C_test_C_A_foo163(integer this163) { if (C_typeId_116[this_163] == 0) { if (this_163 == 0) { error192("Nullpointer exception when calling C.foo"); } else { error192("Called C.foo on invalid object."); }; } else { }; if (C_typeId_116[this_163] == 0) { if (this_163 == 0) { error192("Nullpointer exception when calling C.bar"); } else { error192("Called C.bar on invalid object."); }; } else { }; testSuccess127(); }