array A_nextFree148 integer A_firstFree703 integer A_maxIndex177 array A_typeId105 integer A_firstFree703 = 0 integer A_maxIndex177 = 0 function initGlobals499() { } function main159() { initGlobals499(); init_test177(); } function config703() { } function init_test177() { local integer b110 local integer a117 local integer this146 local integer test_A_f1_result991 b_110 = new_C126(); a_117 = b_110; this_146 = a_117; if (A_typeId_105[this_146] == 0) { if (this_146 == 0) { error165("Nullpointer exception when calling A.f1"); } else { error165("Called A.f1 on invalid object."); }; } else { }; test_A_f1_result_991 = 3; if (test_A_f1_result_991 == 3) { testSuccess502(); } else { }; } IS_NATIVE function testSuccess502() { } function new_C126() returns integer { local integer this206 local integer this698 if (A_firstFree_703 == 0) { if (A_maxIndex_177 < 32768) { A_maxIndex_177 = (A_maxIndex_177 + 1); this_698 = A_maxIndex_177; A_typeId_105[this_698] = 3; } else { error165("Out of memory: Could not create C."); this_698 = 0; }; } else { A_firstFree_703 = (A_firstFree_703 - 1); this_698 = A_nextFree_148[A_firstFree_703]; A_typeId_105[this_698] = 3; }; this_206 = this_698; return this_206; } function error165(string msg151) { $debugPrint354((msg_151 + (" " + #getStackTrace()))); }