array A_nextFree780 integer A_firstFree158 integer A_maxIndex133 array A_typeId112 array A_pos_x182 integer A_firstFree158 = 0 integer A_maxIndex133 = 0 function initGlobals168() { } function main123() { initGlobals168(); init_test115(); } function config310() { } function init_test115() { local integer a896 a_896 = new_A101(); if (A_typeId_112[a_896] == 0) { if (a_896 == 0) { error236("Nullpointer exception when calling A.foo"); } else { error236("Called A.foo on invalid object."); }; } else { }; A_pos_x_182[a_896] = 3.; if (A_pos_x_182[a_896] == 3.) { testSuccess869(); } else { }; } IS_NATIVE function testSuccess869() { } function new_A101() returns integer { local integer this196 if (A_firstFree_158 == 0) { if (A_maxIndex_133 < 32768) { A_maxIndex_133 = (A_maxIndex_133 + 1); this_196 = A_maxIndex_133; A_typeId_112[this_196] = 1; } else { error236("Out of memory: Could not create A."); this_196 = 0; }; } else { A_firstFree_158 = (A_firstFree_158 - 1); this_196 = A_nextFree_780[A_firstFree_158]; A_typeId_112[this_196] = 1; }; A_pos_x_182[this_196] = 1.; return this_196; } function error236(string msg423) { $debugPrint210((msg_423 + (" " + #getStackTrace()))); }