array A_nextFree983 integer A_firstFree205 integer A_maxIndex212 array A_typeId140 integer A_firstFree205 = 0 integer A_maxIndex212 = 0 function initGlobals106() { } function main128() { initGlobals106(); new_B105(); } function config131() { } IS_NATIVE function testSuccess183() { } function new_B105() returns integer { local integer this155 local integer this250 if (A_firstFree_205 == 0) { if (A_maxIndex_212 < 32768) { A_maxIndex_212 = (A_maxIndex_212 + 1); this_250 = A_maxIndex_212; A_typeId_140[this_250] = 2; } else { error565("Out of memory: Could not create B."); this_250 = 0; }; } else { A_firstFree_205 = (A_firstFree_205 - 1); this_250 = A_nextFree_983[A_firstFree_205]; A_typeId_140[this_250] = 2; }; this_155 = this_250; construct_B254(this_155); return this_155; } function construct_B254(integer this112) { local integer this195 this_195 = this_112; if (A_typeId_140[this_195] == 0) { if (this_195 == 0) { error565("Nullpointer exception when calling A.someInt"); } else { error565("Called A.someInt on invalid object."); }; } else { }; testSuccess183(); } function error565(string msg188) { $debugPrint639((msg_188 + (" " + #getStackTrace()))); }