integer test_i231 array A_nextFree117 integer A_firstFree114 integer A_maxIndex179 array A_typeId729 integer A_firstFree114 = 0 integer A_maxIndex179 = 0 function initGlobals932() { } function main574() { initGlobals932(); dispatch_A_test_A_foo151(new_B338()); if (test_i_231 == 8) { testSuccess153(); } else { }; } function config240() { } IS_NATIVE function testSuccess153() { } function new_B338() returns integer { local integer this206 if (A_firstFree_114 == 0) { if (A_maxIndex_179 < 32768) { A_maxIndex_179 = (A_maxIndex_179 + 1); this_206 = A_maxIndex_179; A_typeId_729[this_206] = 2; } else { error132("Out of memory: Could not create B."); this_206 = 0; }; } else { A_firstFree_114 = (A_firstFree_114 - 1); this_206 = A_nextFree_117[A_firstFree_114]; A_typeId_729[this_206] = 2; }; return this_206; } function error132(string msg132) { $debugPrint549((msg_132 + (" " + #getStackTrace()))); } function dispatch_A_test_A_foo151(integer this920) { if (A_typeId_729[this_920] == 0) { if (this_920 == 0) { error132("Nullpointer exception when calling A.foo"); } else { error132("Called A.foo on invalid object."); }; } else { }; if (A_typeId_729[this_920] <= 1) { test_i_231 = 7; } else { test_i_231 = 8; }; }