array A_nextFree291 integer A_firstFree191 integer A_maxIndex141 array A_typeId206 integer A_firstFree191 = 0 integer A_maxIndex141 = 0 function initGlobals478() { } function main241() { initGlobals478(); new_B656(); } function config980() { } IS_NATIVE function testSuccess212() { } function new_B656() returns integer { local integer this586 local integer this240 if (A_firstFree_191 == 0) { if (A_maxIndex_141 < 32768) { A_maxIndex_141 = (A_maxIndex_141 + 1); this_240 = A_maxIndex_141; A_typeId_206[this_240] = 2; } else { error740("Out of memory: Could not create B."); this_240 = 0; }; } else { A_firstFree_191 = (A_firstFree_191 - 1); this_240 = A_nextFree_291[A_firstFree_191]; A_typeId_206[this_240] = 2; }; this_586 = this_240; construct_B297(this_586); return this_586; } function construct_B297(integer this210) { local integer this701 this_701 = this_210; if (A_typeId_206[this_701] == 0) { if (this_701 == 0) { error740("Nullpointer exception when calling A.someInt"); } else { error740("Called A.someInt on invalid object."); }; } else { }; testSuccess212(); } function error740(string msg380) { $debugPrint442((msg_380 + (" " + #getStackTrace()))); }