array C_nextFree153 integer C_firstFree397 integer C_maxIndex123 array C_typeId993 integer C_firstFree397 = 0 integer C_maxIndex123 = 0 function initGlobals319() { } function main847() { initGlobals319(); new_C163(); } function config246() { } IS_NATIVE function testSuccess170() { } function new_C163() returns integer { local integer this859 if (C_firstFree_397 == 0) { if (C_maxIndex_123 < 32768) { C_maxIndex_123 = (C_maxIndex_123 + 1); this_859 = C_maxIndex_123; C_typeId_993[this_859] = 1; } else { error143("Out of memory: Could not create C."); this_859 = 0; }; } else { C_firstFree_397 = (C_firstFree_397 - 1); this_859 = C_nextFree_153[C_firstFree_397]; C_typeId_993[this_859] = 1; }; dispatch_C_test_C_A_foo419(this_859); return this_859; } function error143(string msg140) { $debugPrint887((msg_140 + (" " + #getStackTrace()))); } function dispatch_C_test_C_A_foo419(integer this146) { if (C_typeId_993[this_146] == 0) { if (this_146 == 0) { error143("Nullpointer exception when calling C.foo"); } else { error143("Called C.foo on invalid object."); }; } else { }; if (C_typeId_993[this_146] == 0) { if (this_146 == 0) { error143("Nullpointer exception when calling C.bar"); } else { error143("Called C.bar on invalid object."); }; } else { }; testSuccess170(); }