integer test_i584 array A_nextFree609 integer A_firstFree959 integer A_maxIndex196 array A_typeId443 integer A_firstFree959 = 0 integer A_maxIndex196 = 0 function initGlobals119() { } function main695() { initGlobals119(); init_test440(); } function config164() { } function init_test440() { local integer b101 local integer this448 b_101 = new_B126(); this_448 = b_101; if (A_typeId_443[this_448] == 0) { if (this_448 == 0) { error141("Nullpointer exception when calling A.foo"); } else { error141("Called A.foo on invalid object."); }; } else { }; test_i_584 = 8; if (test_i_584 == 8) { testSuccess158(); } else { }; } IS_NATIVE function testSuccess158() { } function new_B126() returns integer { local integer this117 local integer this676 if (A_firstFree_959 == 0) { if (A_maxIndex_196 < 32768) { A_maxIndex_196 = (A_maxIndex_196 + 1); this_676 = A_maxIndex_196; A_typeId_443[this_676] = 2; } else { error141("Out of memory: Could not create B."); this_676 = 0; }; } else { A_firstFree_959 = (A_firstFree_959 - 1); this_676 = A_nextFree_609[A_firstFree_959]; A_typeId_443[this_676] = 2; }; this_117 = this_676; return this_117; } function error141(string msg203) { $debugPrint565((msg_203 + (" " + #getStackTrace()))); }