array A_nextFree800 integer A_firstFree130 integer A_maxIndex129 array Cell_nextFree101 integer Cell_firstFree177 integer Cell_maxIndex836 array Cell_typeId152 array A_x404 array Cell_x905 integer A_firstFree130 = 0 integer A_maxIndex129 = 0 integer Cell_firstFree177 = 0 integer Cell_maxIndex836 = 0 function initGlobals681() { } function main115() { initGlobals681(); init_test125(); } function config173() { } function init_test125() { local integer c120 local integer this380 if (A_firstFree_130 == 0) { if (A_maxIndex_129 < 32768) { A_maxIndex_129 = (A_maxIndex_129 + 1); this_380 = A_maxIndex_129; } else { error727("Out of memory: Could not create A."); this_380 = 0; }; } else { A_firstFree_130 = (A_firstFree_130 - 1); this_380 = A_nextFree_800[A_firstFree_130]; }; A_x_404[this_380] = 1; A_x_404[this_380] = 42; c_120 = new_Cell184(); if (Cell_typeId_152[c_120] == 0) { if (c_120 == 0) { error727("Nullpointer exception when calling Cell.set"); } else { error727("Called Cell.set on invalid object."); }; } else { }; Cell_x_905[c_120] = (this_380 castTo integer); if (Cell_typeId_152[c_120] == 0) { if (c_120 == 0) { error727("Nullpointer exception when calling Cell.get"); } else { error727("Called Cell.get on invalid object."); }; } else { }; if (A_x_404[(Cell_x_905[c_120] castTo any)] == 42) { testSuccess619(); } else { }; } IS_NATIVE function testSuccess619() { } function new_Cell184() returns integer { local integer this623 if (Cell_firstFree_177 == 0) { if (Cell_maxIndex_836 < 32768) { Cell_maxIndex_836 = (Cell_maxIndex_836 + 1); this_623 = Cell_maxIndex_836; Cell_typeId_152[this_623] = 2; } else { error727("Out of memory: Could not create Cell."); this_623 = 0; }; } else { Cell_firstFree_177 = (Cell_firstFree_177 - 1); this_623 = Cell_nextFree_101[Cell_firstFree_177]; Cell_typeId_152[this_623] = 2; }; return this_623; } function error727(string msg187) { $debugPrint166((msg_187 + (" " + #getStackTrace()))); }