array A_nextFree126 integer A_firstFree201 integer A_maxIndex987 array A_typeId166 array A_pos_x107 integer A_firstFree201 = 0 integer A_maxIndex987 = 0 function initGlobals131() { } function main107() { initGlobals131(); init_test181(); } function config702() { } function init_test181() { local integer a200 local integer this186 local integer this189 a_200 = new_A205(); this_186 = a_200; if (A_typeId_166[this_186] == 0) { if (this_186 == 0) { error946("Nullpointer exception when calling A.foo"); } else { error946("Called A.foo on invalid object."); }; } else { }; this_189 = this_186; A_pos_x_107[this_189] = 3.; if (A_pos_x_107[a_200] == 3.) { testSuccess616(); } else { }; } IS_NATIVE function testSuccess616() { } function new_A205() returns integer { local integer this212 local integer this352 local integer this187 local real tuple_temp135 if (A_firstFree_201 == 0) { if (A_maxIndex_987 < 32768) { A_maxIndex_987 = (A_maxIndex_987 + 1); this_352 = A_maxIndex_987; A_typeId_166[this_352] = 1; } else { error946("Out of memory: Could not create A."); this_352 = 0; }; } else { A_firstFree_201 = (A_firstFree_201 - 1); this_352 = A_nextFree_126[A_firstFree_201]; A_typeId_166[this_352] = 1; }; this_212 = this_352; this_187 = this_212; tuple_temp_135 = 1.; A_pos_x_107[this_187] = tuple_temp_135; return this_212; } function error946(string msg175) { $debugPrint596((msg_175 + (" " + #getStackTrace()))); }