array A_nextFree213 integer A_firstFree438 integer A_maxIndex259 array A_typeId725 array A_pos_x138 integer A_firstFree438 = 0 integer A_maxIndex259 = 0 function initGlobals103() { } function main182() { initGlobals103(); init_test715(); } function config715() { } function init_test715() { local integer a187 a_187 = new_A343(); if (A_typeId_725[a_187] == 0) { if (a_187 == 0) { error214("Nullpointer exception when calling A.foo"); } else { error214("Called A.foo on invalid object."); }; } else { }; A_pos_x_138[a_187] = 3.; if (A_pos_x_138[a_187] == 3.) { testSuccess149(); } else { }; } IS_NATIVE function testSuccess149() { } function new_A343() returns integer { local integer this141 if (A_firstFree_438 == 0) { if (A_maxIndex_259 < 32768) { A_maxIndex_259 = (A_maxIndex_259 + 1); this_141 = A_maxIndex_259; A_typeId_725[this_141] = 1; } else { error214("Out of memory: Could not create A."); this_141 = 0; }; } else { A_firstFree_438 = (A_firstFree_438 - 1); this_141 = A_nextFree_213[A_firstFree_438]; A_typeId_725[this_141] = 1; }; A_pos_x_138[this_141] = 1.; return this_141; } function error214(string msg168) { $debugPrint192((msg_168 + (" " + #getStackTrace()))); }