integer test_i210 array A_nextFree168 integer A_firstFree498 integer A_maxIndex153 array A_typeId149 integer A_firstFree498 = 0 integer A_maxIndex153 = 0 function initGlobals199() { } function main926() { initGlobals199(); init_test161(); } function config203() { } function init_test161() { local integer b420 local integer this186 local integer test_A_foo_result212 b_420 = new_B553(); this_186 = b_420; if (A_typeId_149[this_186] == 0) { if (this_186 == 0) { error155("Nullpointer exception when calling A.foo"); } else { error155("Called A.foo on invalid object."); }; } else { }; test_i_210 = 8; test_A_foo_result_212 = test_i_210; if (test_A_foo_result_212 == 8) { testSuccess729(); } else { }; } IS_NATIVE function testSuccess729() { } function new_B553() returns integer { local integer this171 local integer this175 if (A_firstFree_498 == 0) { if (A_maxIndex_153 < 32768) { A_maxIndex_153 = (A_maxIndex_153 + 1); this_175 = A_maxIndex_153; A_typeId_149[this_175] = 2; } else { error155("Out of memory: Could not create B."); this_175 = 0; }; } else { A_firstFree_498 = (A_firstFree_498 - 1); this_175 = A_nextFree_168[A_firstFree_498]; A_typeId_149[this_175] = 2; }; this_171 = this_175; return this_171; } function error155(string msg980) { $debugPrint165((msg_980 + (" " + #getStackTrace()))); }