array A_nextFree468 integer A_firstFree116 integer A_maxIndex111 array A_typeId157 integer A_firstFree116 = 0 integer A_maxIndex111 = 0 function initGlobals688() { } function main248() { initGlobals688(); init_test897(); } function config156() { } function init_test897() { local integer b613 b_613 = new_C298(); if (A_typeId_157[b_613] == 0) { if (b_613 == 0) { error157("Nullpointer exception when calling A.f1"); } else { error157("Called A.f1 on invalid object."); }; } else { }; testSuccess695(); } IS_NATIVE function testSuccess695() { } function new_C298() returns integer { local integer this206 if (A_firstFree_116 == 0) { if (A_maxIndex_111 < 32768) { A_maxIndex_111 = (A_maxIndex_111 + 1); this_206 = A_maxIndex_111; A_typeId_157[this_206] = 3; } else { error157("Out of memory: Could not create C."); this_206 = 0; }; } else { A_firstFree_116 = (A_firstFree_116 - 1); this_206 = A_nextFree_468[A_firstFree_116]; A_typeId_157[this_206] = 3; }; return this_206; } function error157(string msg732) { $debugPrint129((msg_732 + (" " + #getStackTrace()))); }