array C_nextFree123 integer C_firstFree187 integer C_maxIndex134 array C_typeId151 integer C_firstFree187 = 0 integer C_maxIndex134 = 0 function initGlobals620() { } function main200() { initGlobals620(); init_test603(); } function config130() { } function init_test603() { local integer c268 c_268 = new_C453(1); if (C_typeId_151[c_268] == 0) { if (c_268 == 0) { error143("Nullpointer exception when calling C.foo"); } else { error143("Called C.foo on invalid object."); }; } else { }; new_C453(1); if (C_typeId_151[c_268] == 0) { if (c_268 == 0) { error143("Nullpointer exception when calling C.foo"); } else { error143("Called C.foo on invalid object."); }; } else { }; testSuccess789(); } IS_NATIVE function testSuccess789() { } function new_C453(any x319) returns integer { local integer this144 if (C_firstFree_187 == 0) { if (C_maxIndex_134 < 32768) { C_maxIndex_134 = (C_maxIndex_134 + 1); this_144 = C_maxIndex_134; C_typeId_151[this_144] = 1; } else { error143("Out of memory: Could not create C."); this_144 = 0; }; } else { C_firstFree_187 = (C_firstFree_187 - 1); this_144 = C_nextFree_123[C_firstFree_187]; C_typeId_151[this_144] = 1; }; return this_144; } function error143(string msg299) { $debugPrint607((msg_299 + (" " + #getStackTrace()))); }