array A_nextFree446 integer A_firstFree116 integer A_maxIndex484 array A_typeId100 integer A_firstFree116 = 0 integer A_maxIndex484 = 0 function initGlobals633() { } function main585() { initGlobals633(); init_test921(); } function config192() { } function init_test921() { local integer b521 local integer clVar309 local integer this856 local integer this167 if (A_firstFree_116 == 0) { if (A_maxIndex_484 < 32768) { A_maxIndex_484 = (A_maxIndex_484 + 1); this_856 = A_maxIndex_484; A_typeId_100[this_856] = 3; } else { error149("Out of memory: Could not create B_test."); this_856 = 0; }; } else { A_firstFree_116 = (A_firstFree_116 - 1); this_856 = A_nextFree_446[A_firstFree_116]; A_typeId_100[this_856] = 3; }; clVar_309 = this_856; b_521 = clVar_309; this_167 = b_521; if (A_typeId_100[this_167] == 0) { if (this_167 == 0) { error149("Nullpointer exception when calling B.foo"); } else { error149("Called B.foo on invalid object."); }; } else { }; testSuccess153(); } IS_NATIVE function testSuccess153() { } function error149(string msg116) { $debugPrint100((msg_116 + (" " + #getStackTrace()))); }