array A_nextFree208 integer A_firstFree780 integer A_maxIndex323 array A_typeId131 array A_pos_x136 integer A_firstFree780 = 0 integer A_maxIndex323 = 0 function initGlobals361() { A_firstFree_780 = 0; A_maxIndex_323 = 0; } function main147() { initGlobals361(); init_test121(); } function config164() { } function init_test121() { local integer a204 a_204 = new_A807(); dispatch_A_test_A_foo674(a_204); if (A_pos_x_136[a_204] == 3.) { testSuccess160(); } else { }; } IS_NATIVE function testSuccess160() { } function A_foo183(integer this130) { A_pos_x_136[this_130] = 3.; } function A_init130(integer this202) { } function new_A807() returns integer { local integer this284 this_284 = alloc_A146(); construct_A442(this_284); return this_284; } function construct_A442(integer this160) { local real tuple_temp918 A_init130(this_160); tuple_temp_918 = 1.; A_pos_x_136[this_160] = tuple_temp_918; } function alloc_A146() returns integer { local integer this653 if (A_firstFree_780 == 0) { if (A_maxIndex_323 < 32768) { A_maxIndex_323 = (A_maxIndex_323 + 1); this_653 = A_maxIndex_323; A_typeId_131[this_653] = 1; } else { error152("Out of memory: Could not create A."); this_653 = 0; }; } else { A_firstFree_780 = (A_firstFree_780 - 1); this_653 = A_nextFree_208[A_firstFree_780]; A_typeId_131[this_653] = 1; }; return this_653; } function error152(string msg192) { $debugPrint208((msg_192 + (" " + #getStackTrace()))); } function dispatch_A_test_A_foo674(integer this576) { if (A_typeId_131[this_576] == 0) { if (this_576 == 0) { error152("Nullpointer exception when calling A.foo"); } else { error152("Called A.foo on invalid object."); }; } else { }; A_foo183(this_576); }