array A_nextFree112 integer A_firstFree749 integer A_maxIndex192 array A_typeId175 integer A_firstFree749 = 0 integer A_maxIndex192 = 0 function initGlobals184() { } function main789() { initGlobals184(); init_test642(); } function config727() { } function init_test642() { local integer b930 local integer clVar196 local integer this182 local integer this102 if (A_firstFree_749 == 0) { if (A_maxIndex_192 < 32768) { A_maxIndex_192 = (A_maxIndex_192 + 1); this_182 = A_maxIndex_192; A_typeId_175[this_182] = 3; } else { error342("Out of memory: Could not create B_test."); this_182 = 0; }; } else { A_firstFree_749 = (A_firstFree_749 - 1); this_182 = A_nextFree_112[A_firstFree_749]; A_typeId_175[this_182] = 3; }; clVar_196 = this_182; b_930 = clVar_196; this_102 = b_930; if (A_typeId_175[this_102] == 0) { if (this_102 == 0) { error342("Nullpointer exception when calling B.foo"); } else { error342("Called B.foo on invalid object."); }; } else { }; testSuccess131(); } IS_NATIVE function testSuccess131() { } function error342(string msg116) { $debugPrint321((msg_116 + (" " + #getStackTrace()))); }