array C_nextFree213 integer C_firstFree367 integer C_maxIndex178 array C_typeId361 integer C_firstFree367 = 0 integer C_maxIndex178 = 0 function initGlobals403() { } function main679() { local integer this121 initGlobals403(); this_121 = new_C127(1); if (C_typeId_361[this_121] == 0) { if (this_121 == 0) { error118("Nullpointer exception when calling C.test"); } else { error118("Called C.test on invalid object."); }; } else { }; C_test148(this_121); } function config185() { } IS_NATIVE function testSuccess150() { } function new_C127(any x171) returns integer { local integer this139 if (C_firstFree_367 == 0) { if (C_maxIndex_178 < 32768) { C_maxIndex_178 = (C_maxIndex_178 + 1); this_139 = C_maxIndex_178; C_typeId_361[this_139] = 1; } else { error118("Out of memory: Could not create C."); this_139 = 0; }; } else { C_firstFree_367 = (C_firstFree_367 - 1); this_139 = C_nextFree_213[C_firstFree_367]; C_typeId_361[this_139] = 1; }; return this_139; } function C_test148(integer this720) { this_720 = new_C127(1); if (C_typeId_361[this_720] == 0) { if (this_720 == 0) { error118("Nullpointer exception when calling C.foo"); } else { error118("Called C.foo on invalid object."); }; } else { }; new_C127(1); if (C_typeId_361[this_720] == 0) { if (this_720 == 0) { error118("Nullpointer exception when calling C.foo"); } else { error118("Called C.foo on invalid object."); }; } else { }; testSuccess150(); } function error118(string msg409) { $debugPrint624((msg_409 + (" " + #getStackTrace()))); }