array A_nextFree195 integer A_firstFree297 integer A_maxIndex158 array A_typeId766 array A_pos_x107 integer A_firstFree297 = 0 integer A_maxIndex158 = 0 function initGlobals376() { } function main178() { initGlobals376(); init_test192(); } function config127() { } function init_test192() { local integer a935 local integer this535 local integer this560 a_935 = new_A378(); this_535 = a_935; if (A_typeId_766[this_535] == 0) { if (this_535 == 0) { error171("Nullpointer exception when calling A.foo"); } else { error171("Called A.foo on invalid object."); }; } else { }; this_560 = this_535; A_pos_x_107[this_560] = 3.; if (A_pos_x_107[a_935] == 3.) { testSuccess116(); } else { }; } IS_NATIVE function testSuccess116() { } function new_A378() returns integer { local integer this156 local integer this701 local integer this190 local real tuple_temp989 if (A_firstFree_297 == 0) { if (A_maxIndex_158 < 32768) { A_maxIndex_158 = (A_maxIndex_158 + 1); this_701 = A_maxIndex_158; A_typeId_766[this_701] = 1; } else { error171("Out of memory: Could not create A."); this_701 = 0; }; } else { A_firstFree_297 = (A_firstFree_297 - 1); this_701 = A_nextFree_195[A_firstFree_297]; A_typeId_766[this_701] = 1; }; this_156 = this_701; this_190 = this_156; tuple_temp_989 = 1.; A_pos_x_107[this_190] = tuple_temp_989; return this_156; } function error171(string msg169) { $debugPrint102((msg_169 + (" " + #getStackTrace()))); }