array A_nextFree337 integer A_firstFree113 integer A_maxIndex765 array A_typeId155 integer A_firstFree113 = 0 integer A_maxIndex765 = 0 function initGlobals192() { } function main127() { initGlobals192(); init_test113(); } function config517() { } function init_test113() { local integer b153 local integer clVar188 local integer this173 local integer this843 if (A_firstFree_113 == 0) { if (A_maxIndex_765 < 32768) { A_maxIndex_765 = (A_maxIndex_765 + 1); this_173 = A_maxIndex_765; A_typeId_155[this_173] = 3; } else { error144("Out of memory: Could not create B_test."); this_173 = 0; }; } else { A_firstFree_113 = (A_firstFree_113 - 1); this_173 = A_nextFree_337[A_firstFree_113]; A_typeId_155[this_173] = 3; }; clVar_188 = this_173; b_153 = clVar_188; this_843 = b_153; if (A_typeId_155[this_843] == 0) { if (this_843 == 0) { error144("Nullpointer exception when calling B.bar"); } else { error144("Called B.bar on invalid object."); }; } else { }; testSuccess191(); } IS_NATIVE function testSuccess191() { } function error144(string msg199) { $debugPrint133((msg_199 + (" " + #getStackTrace()))); }