array A_nextFree671 integer A_firstFree169 integer A_maxIndex238 array A_typeId923 array A_pos_x153 integer A_firstFree169 = 0 integer A_maxIndex238 = 0 function initGlobals205() { } function main102() { initGlobals205(); init_test890(); } function config133() { } function init_test890() { local integer a204 a_204 = new_A379(); dispatch_A_test_A_foo163(a_204); if (A_pos_x_153[a_204] == 3.) { testSuccess125(); } else { }; } IS_NATIVE function testSuccess125() { } function A_foo597(integer this918) { A_pos_x_153[this_918] = 3.; } function A_init753(integer this396) { } function new_A379() returns integer { local integer this496 this_496 = alloc_A118(); construct_A784(this_496); return this_496; } function construct_A784(integer this681) { A_init753(this_681); A_pos_x_153[this_681] = 1.; } function alloc_A118() returns integer { local integer this137 if (A_firstFree_169 == 0) { if (A_maxIndex_238 < 32768) { A_maxIndex_238 = (A_maxIndex_238 + 1); this_137 = A_maxIndex_238; A_typeId_923[this_137] = 1; } else { error124("Out of memory: Could not create A."); this_137 = 0; }; } else { A_firstFree_169 = (A_firstFree_169 - 1); this_137 = A_nextFree_671[A_firstFree_169]; A_typeId_923[this_137] = 1; }; return this_137; } function error124(string msg116) { $debugPrint142((msg_116 + (" " + #getStackTrace()))); } function dispatch_A_test_A_foo163(integer this252) { if (A_typeId_923[this_252] == 0) { if (this_252 == 0) { error124("Nullpointer exception when calling A.foo"); } else { error124("Called A.foo on invalid object."); }; } else { }; A_foo597(this_252); }