array Cell_nextFree125 integer Cell_firstFree119 integer Cell_maxIndex147 array Cell_typeId163 array Cell_elem222 integer Cell_firstFree119 = 0 integer Cell_maxIndex147 = 0 function initGlobals492() { } function main146() { initGlobals492(); init_test549(); } function config151() { } function init_test549() { local integer c173 local any test_Cell_get_result172 c_173 = new_Cell175(); if (Cell_typeId_163[c_173] == 0) { if (c_173 == 0) { error439("Nullpointer exception when calling Cell.set"); } else { error439("Called Cell.set on invalid object."); }; } else { }; Cell_elem_222[c_173] = 5; if (Cell_typeId_163[c_173] == 0) { if (c_173 == 0) { error439("Nullpointer exception when calling Cell.get"); } else { error439("Called Cell.get on invalid object."); }; } else { }; test_Cell_get_result_172 = Cell_elem_222[c_173]; if (Cell_typeId_163[c_173] == 0) { if (c_173 == 0) { error439("Nullpointer exception when calling Cell.set"); } else { error439("Called Cell.set on invalid object."); }; } else { }; Cell_elem_222[c_173] = test_Cell_get_result_172; if (Cell_typeId_163[c_173] == 0) { if (c_173 == 0) { error439("Nullpointer exception when calling Cell.get"); } else { error439("Called Cell.get on invalid object."); }; } else { }; test_Cell_get_result_172 = Cell_elem_222[c_173]; if (test_Cell_get_result_172 == 5) { testSuccess123(); } else { }; } IS_NATIVE function testSuccess123() { } function new_Cell175() returns integer { local integer this191 if (Cell_firstFree_119 == 0) { if (Cell_maxIndex_147 < 32768) { Cell_maxIndex_147 = (Cell_maxIndex_147 + 1); this_191 = Cell_maxIndex_147; Cell_typeId_163[this_191] = 1; } else { error439("Out of memory: Could not create Cell."); this_191 = 0; }; } else { Cell_firstFree_119 = (Cell_firstFree_119 - 1); this_191 = Cell_nextFree_125[Cell_firstFree_119]; Cell_typeId_163[this_191] = 1; }; return this_191; } function error439(string msg213) { $debugPrint113((msg_213 + (" " + #getStackTrace()))); }