array A_nextFree104 integer A_firstFree175 integer A_maxIndex102 array Cell_nextFree260 integer Cell_firstFree516 integer Cell_maxIndex111 array Cell_typeId159 array A_x152 array Cell_x166 integer A_firstFree175 = 0 integer A_maxIndex102 = 0 integer Cell_firstFree516 = 0 integer Cell_maxIndex111 = 0 function initGlobals145() { } function main131() { initGlobals145(); init_test597(); } function config148() { } function init_test597() { local integer a893 local integer c835 local integer x636 local integer this125 local integer this163 local integer this105 local integer x102 local integer this179 local integer this193 local any x140 local integer this151 local any x909 local integer this924 local any test_Cell_get_result209 local integer this199 x_636 = 42; if (A_firstFree_175 == 0) { if (A_maxIndex_102 < 32768) { A_maxIndex_102 = (A_maxIndex_102 + 1); this_163 = A_maxIndex_102; } else { error495("Out of memory: Could not create A."); this_163 = 0; }; } else { A_firstFree_175 = (A_firstFree_175 - 1); this_163 = A_nextFree_104[A_firstFree_175]; }; this_125 = this_163; this_105 = this_125; x_102 = x_636; this_179 = this_105; A_x_152[this_179] = 1; A_x_152[this_105] = x_102; a_893 = this_125; c_835 = new_Cell554(); this_193 = c_835; x_140 = a_893; if (Cell_typeId_159[this_193] == 0) { if (this_193 == 0) { error495("Nullpointer exception when calling Cell.set"); } else { error495("Called Cell.set on invalid object."); }; } else { }; this_151 = this_193; x_909 = x_140; Cell_x_166[this_151] = (x_909 castTo integer); this_924 = c_835; if (Cell_typeId_159[this_924] == 0) { if (this_924 == 0) { error495("Nullpointer exception when calling Cell.get"); } else { error495("Called Cell.get on invalid object."); }; } else { }; this_199 = this_924; test_Cell_get_result_209 = (Cell_x_166[this_199] castTo any); if (A_x_152[test_Cell_get_result_209] == 42) { testSuccess800(); } else { }; } IS_NATIVE function testSuccess800() { } function new_Cell554() returns integer { local integer this186 local integer this188 if (Cell_firstFree_516 == 0) { if (Cell_maxIndex_111 < 32768) { Cell_maxIndex_111 = (Cell_maxIndex_111 + 1); this_188 = Cell_maxIndex_111; Cell_typeId_159[this_188] = 2; } else { error495("Out of memory: Could not create Cell."); this_188 = 0; }; } else { Cell_firstFree_516 = (Cell_firstFree_516 - 1); this_188 = Cell_nextFree_260[Cell_firstFree_516]; Cell_typeId_159[this_188] = 2; }; this_186 = this_188; return this_186; } function error495(string msg381) { $debugPrint177((msg_381 + (" " + #getStackTrace()))); }