array A_nextFree185 integer A_firstFree340 integer A_maxIndex237 array Cell_nextFree150 integer Cell_firstFree532 integer Cell_maxIndex337 array Cell_typeId702 array A_x107 array Cell_x124 integer A_firstFree340 = 0 integer A_maxIndex237 = 0 integer Cell_firstFree532 = 0 integer Cell_maxIndex337 = 0 function initGlobals173() { } function main238() { initGlobals173(); init_test851(); } function config183() { } function init_test851() { local integer c172 local integer this287 if (A_firstFree_340 == 0) { if (A_maxIndex_237 < 32768) { A_maxIndex_237 = (A_maxIndex_237 + 1); this_287 = A_maxIndex_237; } else { error340("Out of memory: Could not create A."); this_287 = 0; }; } else { A_firstFree_340 = (A_firstFree_340 - 1); this_287 = A_nextFree_185[A_firstFree_340]; }; A_x_107[this_287] = 1; A_x_107[this_287] = 42; c_172 = new_Cell179(); if (Cell_typeId_702[c_172] == 0) { if (c_172 == 0) { error340("Nullpointer exception when calling Cell.set"); } else { error340("Called Cell.set on invalid object."); }; } else { }; Cell_x_124[c_172] = (this_287 castTo integer); if (Cell_typeId_702[c_172] == 0) { if (c_172 == 0) { error340("Nullpointer exception when calling Cell.get"); } else { error340("Called Cell.get on invalid object."); }; } else { }; if (A_x_107[(Cell_x_124[c_172] castTo any)] == 42) { testSuccess440(); } else { }; } IS_NATIVE function testSuccess440() { } function new_Cell179() returns integer { local integer this764 if (Cell_firstFree_532 == 0) { if (Cell_maxIndex_337 < 32768) { Cell_maxIndex_337 = (Cell_maxIndex_337 + 1); this_764 = Cell_maxIndex_337; Cell_typeId_702[this_764] = 2; } else { error340("Out of memory: Could not create Cell."); this_764 = 0; }; } else { Cell_firstFree_532 = (Cell_firstFree_532 - 1); this_764 = Cell_nextFree_150[Cell_firstFree_532]; Cell_typeId_702[this_764] = 2; }; return this_764; } function error340(string msg122) { $debugPrint525((msg_122 + (" " + #getStackTrace()))); }