array C_nextFree497 integer C_firstFree417 integer C_maxIndex454 array C_typeId106 integer C_firstFree417 = 0 integer C_maxIndex454 = 0 function initGlobals678() { } function main120() { initGlobals678(); init_test166(); } function config941() { } function init_test166() { local integer c974 local integer this958 local any t188 local integer this151 local any t128 local integer this151 c_974 = new_C176(1); this_958 = c_974; t_188 = 1; if (C_typeId_106[this_958] == 0) { if (this_958 == 0) { error624("Nullpointer exception when calling C.foo"); } else { error624("Called C.foo on invalid object."); }; } else { }; this_151 = this_958; t_128 = t_188; this_151 = this_151; new_C176(t_128); if (C_typeId_106[this_151] == 0) { if (this_151 == 0) { error624("Nullpointer exception when calling C.foo"); } else { error624("Called C.foo on invalid object."); }; } else { }; testSuccess187(); } IS_NATIVE function testSuccess187() { } function new_C176(any x116) returns integer { local integer this407 local integer this958 if (C_firstFree_417 == 0) { if (C_maxIndex_454 < 32768) { C_maxIndex_454 = (C_maxIndex_454 + 1); this_958 = C_maxIndex_454; C_typeId_106[this_958] = 1; } else { error624("Out of memory: Could not create C."); this_958 = 0; }; } else { C_firstFree_417 = (C_firstFree_417 - 1); this_958 = C_nextFree_497[C_firstFree_417]; C_typeId_106[this_958] = 1; }; this_407 = this_958; return this_407; } function error624(string msg179) { $debugPrint214((msg_179 + (" " + #getStackTrace()))); }