array C_nextFree173 integer C_firstFree200 integer C_maxIndex189 array C_typeId185 integer C_firstFree200 = 0 integer C_maxIndex189 = 0 function initGlobals150() { } function main846() { initGlobals150(); init_test511(); } function config211() { } function init_test511() { local integer c203 local integer this181 local any t729 local integer this277 local any t595 local integer this325 c_203 = new_C117(1); this_181 = c_203; t_729 = 1; if (C_typeId_185[this_181] == 0) { if (this_181 == 0) { error172("Nullpointer exception when calling C.foo"); } else { error172("Called C.foo on invalid object."); }; } else { }; this_277 = this_181; t_595 = t_729; this_325 = this_277; new_C117(t_595); if (C_typeId_185[this_325] == 0) { if (this_325 == 0) { error172("Nullpointer exception when calling C.foo"); } else { error172("Called C.foo on invalid object."); }; } else { }; testSuccess344(); } IS_NATIVE function testSuccess344() { } function new_C117(any x128) returns integer { local integer this104 local integer this137 if (C_firstFree_200 == 0) { if (C_maxIndex_189 < 32768) { C_maxIndex_189 = (C_maxIndex_189 + 1); this_137 = C_maxIndex_189; C_typeId_185[this_137] = 1; } else { error172("Out of memory: Could not create C."); this_137 = 0; }; } else { C_firstFree_200 = (C_firstFree_200 - 1); this_137 = C_nextFree_173[C_firstFree_200]; C_typeId_185[this_137] = 1; }; this_104 = this_137; return this_104; } function error172(string msg138) { $debugPrint160((msg_138 + (" " + #getStackTrace()))); }