array A_nextFree185 integer A_firstFree173 integer A_maxIndex144 array A_typeId773 integer A_firstFree173 = 0 integer A_maxIndex144 = 0 function initGlobals154() { } function main483() { initGlobals154(); init_test129(); } function config168() { } function init_test129() { local integer b111 local integer a616 local integer this176 local integer test_A_f1_result138 b_111 = new_C596(); a_616 = b_111; this_176 = a_616; if (A_typeId_773[this_176] == 0) { if (this_176 == 0) { error209("Nullpointer exception when calling A.f1"); } else { error209("Called A.f1 on invalid object."); }; } else { }; test_A_f1_result_138 = 3; if (test_A_f1_result_138 == 3) { testSuccess500(); } else { }; } IS_NATIVE function testSuccess500() { } function new_C596() returns integer { local integer this650 local integer this184 if (A_firstFree_173 == 0) { if (A_maxIndex_144 < 32768) { A_maxIndex_144 = (A_maxIndex_144 + 1); this_184 = A_maxIndex_144; A_typeId_773[this_184] = 3; } else { error209("Out of memory: Could not create C."); this_184 = 0; }; } else { A_firstFree_173 = (A_firstFree_173 - 1); this_184 = A_nextFree_185[A_firstFree_173]; A_typeId_773[this_184] = 3; }; this_650 = this_184; return this_650; } function error209(string msg708) { $debugPrint189((msg_708 + (" " + #getStackTrace()))); }