array C_nextFree658 integer C_firstFree128 integer C_maxIndex193 array C_typeId657 integer C_firstFree128 = 0 integer C_maxIndex193 = 0 function initGlobals184() { } function main528() { local integer this643 initGlobals184(); this_643 = new_C693(1); if (C_typeId_657[this_643] == 0) { if (this_643 == 0) { error123("Nullpointer exception when calling C.test"); } else { error123("Called C.test on invalid object."); }; } else { }; C_test674(this_643); } function config125() { } IS_NATIVE function testSuccess138() { } function new_C693(any x363) returns integer { local integer this542 local integer this110 if (C_firstFree_128 == 0) { if (C_maxIndex_193 < 32768) { C_maxIndex_193 = (C_maxIndex_193 + 1); this_110 = C_maxIndex_193; C_typeId_657[this_110] = 1; } else { error123("Out of memory: Could not create C."); this_110 = 0; }; } else { C_firstFree_128 = (C_firstFree_128 - 1); this_110 = C_nextFree_658[C_firstFree_128]; C_typeId_657[this_110] = 1; }; this_542 = this_110; return this_542; } function C_test674(integer this376) { local integer c724 local integer this492 local any t444 local integer this199 local any t192 local integer this159 c_724 = new_C693(1); this_492 = c_724; t_444 = 1; if (C_typeId_657[this_492] == 0) { if (this_492 == 0) { error123("Nullpointer exception when calling C.foo"); } else { error123("Called C.foo on invalid object."); }; } else { }; this_199 = this_492; t_192 = t_444; this_159 = this_199; new_C693(t_192); if (C_typeId_657[this_159] == 0) { if (this_159 == 0) { error123("Nullpointer exception when calling C.foo"); } else { error123("Called C.foo on invalid object."); }; } else { }; testSuccess138(); } function error123(string msg144) { $debugPrint101((msg_144 + (" " + #getStackTrace()))); }