array A_nextFree398 integer A_firstFree126 integer A_maxIndex986 array A_typeId126 integer A_firstFree126 = 0 integer A_maxIndex986 = 0 function initGlobals219() { } function main985() { initGlobals219(); new_B136(); } function config643() { } IS_NATIVE function testSuccess864() { } function new_B136() returns integer { local integer this178 local integer this503 if (A_firstFree_126 == 0) { if (A_maxIndex_986 < 32768) { A_maxIndex_986 = (A_maxIndex_986 + 1); this_503 = A_maxIndex_986; A_typeId_126[this_503] = 2; } else { error202("Out of memory: Could not create B."); this_503 = 0; }; } else { A_firstFree_126 = (A_firstFree_126 - 1); this_503 = A_nextFree_398[A_firstFree_126]; A_typeId_126[this_503] = 2; }; this_178 = this_503; construct_B970(this_178); return this_178; } function construct_B970(integer this109) { local integer this168 this_168 = this_109; if (A_typeId_126[this_168] == 0) { if (this_168 == 0) { error202("Nullpointer exception when calling A.someInt"); } else { error202("Called A.someInt on invalid object."); }; } else { }; testSuccess864(); } function error202(string msg164) { $debugPrint156((msg_164 + (" " + #getStackTrace()))); }