array A_nextFree204 integer A_firstFree124 integer A_maxIndex115 array A_typeId689 array A_pos_x199 integer A_firstFree124 = 0 integer A_maxIndex115 = 0 function initGlobals170() { A_firstFree_124 = 0; A_maxIndex_115 = 0; } function main634() { initGlobals170(); init_test342(); } function config181() { } function init_test342() { local integer a195 a_195 = new_A120(); dispatch_A_test_A_foo152(a_195); if (A_pos_x_199[a_195] == 3.) { testSuccess190(); } else { }; } IS_NATIVE function testSuccess190() { } function A_foo779(integer this992) { A_pos_x_199[this_992] = 3.; } function A_init184(integer this134) { } function new_A120() returns integer { local integer this115 this_115 = alloc_A344(); construct_A160(this_115); return this_115; } function construct_A160(integer this113) { local real tuple_temp156 A_init184(this_113); tuple_temp_156 = 1.; A_pos_x_199[this_113] = tuple_temp_156; } function alloc_A344() returns integer { local integer this106 if (A_firstFree_124 == 0) { if (A_maxIndex_115 < 32768) { A_maxIndex_115 = (A_maxIndex_115 + 1); this_106 = A_maxIndex_115; A_typeId_689[this_106] = 1; } else { error183("Out of memory: Could not create A."); this_106 = 0; }; } else { A_firstFree_124 = (A_firstFree_124 - 1); this_106 = A_nextFree_204[A_firstFree_124]; A_typeId_689[this_106] = 1; }; return this_106; } function error183(string msg752) { $debugPrint139((msg_752 + (" " + #getStackTrace()))); } function dispatch_A_test_A_foo152(integer this423) { if (A_typeId_689[this_423] == 0) { if (this_423 == 0) { error183("Nullpointer exception when calling A.foo"); } else { error183("Called A.foo on invalid object."); }; } else { }; A_foo779(this_423); }