integer test_i651 array A_nextFree331 integer A_firstFree149 integer A_maxIndex178 array A_typeId517 integer A_firstFree149 = 0 integer A_maxIndex178 = 0 function initGlobals592() { } function main170() { initGlobals592(); init_test822(); } function config173() { } function init_test822() { local integer b237 local integer this816 local integer test_A_foo_result991 b_237 = new_B174(); this_816 = b_237; if (A_typeId_517[this_816] == 0) { if (this_816 == 0) { error114("Nullpointer exception when calling A.foo"); } else { error114("Called A.foo on invalid object."); }; } else { }; test_i_651 = 8; test_A_foo_result_991 = test_i_651; if (test_A_foo_result_991 == 8) { testSuccess150(); } else { }; } IS_NATIVE function testSuccess150() { } function new_B174() returns integer { local integer this214 local integer this153 if (A_firstFree_149 == 0) { if (A_maxIndex_178 < 32768) { A_maxIndex_178 = (A_maxIndex_178 + 1); this_153 = A_maxIndex_178; A_typeId_517[this_153] = 2; } else { error114("Out of memory: Could not create B."); this_153 = 0; }; } else { A_firstFree_149 = (A_firstFree_149 - 1); this_153 = A_nextFree_331[A_firstFree_149]; A_typeId_517[this_153] = 2; }; this_214 = this_153; return this_214; } function error114(string msg167) { $debugPrint197((msg_167 + (" " + #getStackTrace()))); }