array A_nextFree434 integer A_firstFree210 integer A_maxIndex660 array A_typeId692 integer A_firstFree210 = 0 integer A_maxIndex660 = 0 function initGlobals358() { } function main160() { initGlobals358(); init_test103(); } function config150() { } function init_test103() { local integer b999 b_999 = new_C176(); if (A_typeId_692[b_999] == 0) { if (b_999 == 0) { error885("Nullpointer exception when calling A.f1"); } else { error885("Called A.f1 on invalid object."); }; } else { }; testSuccess976(); } IS_NATIVE function testSuccess976() { } function new_C176() returns integer { local integer this306 if (A_firstFree_210 == 0) { if (A_maxIndex_660 < 32768) { A_maxIndex_660 = (A_maxIndex_660 + 1); this_306 = A_maxIndex_660; A_typeId_692[this_306] = 3; } else { error885("Out of memory: Could not create C."); this_306 = 0; }; } else { A_firstFree_210 = (A_firstFree_210 - 1); this_306 = A_nextFree_434[A_firstFree_210]; A_typeId_692[this_306] = 3; }; return this_306; } function error885(string msg211) { $debugPrint151((msg_211 + (" " + #getStackTrace()))); }