array A_nextFree209 integer A_firstFree897 integer A_maxIndex180 array A_typeId914 array A_pos_x480 integer A_firstFree897 = 0 integer A_maxIndex180 = 0 function initGlobals434() { } function main129() { initGlobals434(); init_test104(); } function config172() { } function init_test104() { local integer a201 a_201 = new_A428(); dispatch_A_test_A_foo731(a_201); if (A_pos_x_480[a_201] == 3.) { testSuccess922(); } else { }; } IS_NATIVE function testSuccess922() { } function A_foo197(integer this587) { A_pos_x_480[this_587] = 3.; } function A_init261(integer this128) { } function new_A428() returns integer { local integer this134 this_134 = alloc_A797(); construct_A795(this_134); return this_134; } function construct_A795(integer this103) { A_init261(this_103); A_pos_x_480[this_103] = 1.; } function alloc_A797() returns integer { local integer this562 if (A_firstFree_897 == 0) { if (A_maxIndex_180 < 32768) { A_maxIndex_180 = (A_maxIndex_180 + 1); this_562 = A_maxIndex_180; A_typeId_914[this_562] = 1; } else { error185("Out of memory: Could not create A."); this_562 = 0; }; } else { A_firstFree_897 = (A_firstFree_897 - 1); this_562 = A_nextFree_209[A_firstFree_897]; A_typeId_914[this_562] = 1; }; return this_562; } function error185(string msg154) { $debugPrint112((msg_154 + (" " + #getStackTrace()))); } function dispatch_A_test_A_foo731(integer this164) { if (A_typeId_914[this_164] == 0) { if (this_164 == 0) { error185("Nullpointer exception when calling A.foo"); } else { error185("Called A.foo on invalid object."); }; } else { }; A_foo197(this_164); }