array C_nextFree191 integer C_firstFree173 integer C_maxIndex634 array C_typeId184 integer C_firstFree173 = 0 integer C_maxIndex634 = 0 function initGlobals103() { } function main832() { initGlobals103(); init_test146(); } function config716() { } function init_test146() { local integer c625 c_625 = new_C205(1); if (C_typeId_184[c_625] == 0) { if (c_625 == 0) { error211("Nullpointer exception when calling C.foo"); } else { error211("Called C.foo on invalid object."); }; } else { }; new_C205(1); if (C_typeId_184[c_625] == 0) { if (c_625 == 0) { error211("Nullpointer exception when calling C.foo"); } else { error211("Called C.foo on invalid object."); }; } else { }; testSuccess256(); } IS_NATIVE function testSuccess256() { } function new_C205(any x688) returns integer { local integer this203 if (C_firstFree_173 == 0) { if (C_maxIndex_634 < 32768) { C_maxIndex_634 = (C_maxIndex_634 + 1); this_203 = C_maxIndex_634; C_typeId_184[this_203] = 1; } else { error211("Out of memory: Could not create C."); this_203 = 0; }; } else { C_firstFree_173 = (C_firstFree_173 - 1); this_203 = C_nextFree_191[C_firstFree_173]; C_typeId_184[this_203] = 1; }; return this_203; } function error211(string msg103) { $debugPrint211((msg_103 + (" " + #getStackTrace()))); }