array E_nextFree989 integer E_firstFree178 integer E_maxIndex195 array E_typeId164 integer E_firstFree178 = 0 integer E_maxIndex195 = 0 function initGlobals153() { } function main105() { initGlobals153(); init_test652(); } function config740() { } function init_test652() { local integer e324 e_324 = new_E160(); if (E_typeId_164[e_324] == 0) { if (e_324 == 0) { error861("Nullpointer exception when calling E.foo"); } else { error861("Called E.foo on invalid object."); }; } else { }; if (E_typeId_164[e_324] == 0) { if (e_324 == 0) { error861("Nullpointer exception when calling E.bar"); } else { error861("Called E.bar on invalid object."); }; } else { }; testSuccess126(); } IS_NATIVE function testSuccess126() { } function new_E160() returns integer { local integer this198 if (E_firstFree_178 == 0) { if (E_maxIndex_195 < 32768) { E_maxIndex_195 = (E_maxIndex_195 + 1); this_198 = E_maxIndex_195; E_typeId_164[this_198] = 1; } else { error861("Out of memory: Could not create E."); this_198 = 0; }; } else { E_firstFree_178 = (E_firstFree_178 - 1); this_198 = E_nextFree_989[E_firstFree_178]; E_typeId_164[this_198] = 1; }; return this_198; } function error861(string msg475) { $debugPrint144((msg_475 + (" " + #getStackTrace()))); }