array Cell_nextFree121 integer Cell_firstFree174 integer Cell_maxIndex778 array Cell_typeId800 array Cell_elem816 integer Cell_firstFree174 = 0 integer Cell_maxIndex778 = 0 function initGlobals618() { } function main142() { initGlobals618(); init_test143(); } function config167() { } function init_test143() { local integer c182 local any test_Cell_get_result134 c_182 = new_Cell772(); if (Cell_typeId_800[c_182] == 0) { if (c_182 == 0) { error433("Nullpointer exception when calling Cell.set"); } else { error433("Called Cell.set on invalid object."); }; } else { }; Cell_elem_816[c_182] = 5; if (Cell_typeId_800[c_182] == 0) { if (c_182 == 0) { error433("Nullpointer exception when calling Cell.get"); } else { error433("Called Cell.get on invalid object."); }; } else { }; test_Cell_get_result_134 = Cell_elem_816[c_182]; if (Cell_typeId_800[c_182] == 0) { if (c_182 == 0) { error433("Nullpointer exception when calling Cell.set"); } else { error433("Called Cell.set on invalid object."); }; } else { }; Cell_elem_816[c_182] = test_Cell_get_result_134; if (Cell_typeId_800[c_182] == 0) { if (c_182 == 0) { error433("Nullpointer exception when calling Cell.get"); } else { error433("Called Cell.get on invalid object."); }; } else { }; test_Cell_get_result_134 = Cell_elem_816[c_182]; if (test_Cell_get_result_134 == 5) { testSuccess125(); } else { }; } IS_NATIVE function testSuccess125() { } function new_Cell772() returns integer { local integer this847 if (Cell_firstFree_174 == 0) { if (Cell_maxIndex_778 < 32768) { Cell_maxIndex_778 = (Cell_maxIndex_778 + 1); this_847 = Cell_maxIndex_778; Cell_typeId_800[this_847] = 1; } else { error433("Out of memory: Could not create Cell."); this_847 = 0; }; } else { Cell_firstFree_174 = (Cell_firstFree_174 - 1); this_847 = Cell_nextFree_121[Cell_firstFree_174]; Cell_typeId_800[this_847] = 1; }; return this_847; } function error433(string msg318) { $debugPrint339((msg_318 + (" " + #getStackTrace()))); }