array Cell_nextFree739 integer Cell_firstFree280 integer Cell_maxIndex107 array Cell_typeId129 array Cell_elem782 integer Cell_firstFree280 = 0 integer Cell_maxIndex107 = 0 function initGlobals205() { } function main212() { initGlobals205(); init_test134(); } function config476() { } function init_test134() { local integer c587 c_587 = new_Cell192(); if (Cell_typeId_129[c_587] == 0) { if (c_587 == 0) { error973("Nullpointer exception when calling Cell.set"); } else { error973("Called Cell.set on invalid object."); }; } else { }; Cell_elem_782[c_587] = 5; if (Cell_typeId_129[c_587] == 0) { if (c_587 == 0) { error973("Nullpointer exception when calling Cell.get"); } else { error973("Called Cell.get on invalid object."); }; } else { }; if (Cell_elem_782[c_587] == 5) { testSuccess202(); } else { }; } IS_NATIVE function testSuccess202() { } function new_Cell192() returns integer { local integer this478 if (Cell_firstFree_280 == 0) { if (Cell_maxIndex_107 < 32768) { Cell_maxIndex_107 = (Cell_maxIndex_107 + 1); this_478 = Cell_maxIndex_107; Cell_typeId_129[this_478] = 1; } else { error973("Out of memory: Could not create Cell."); this_478 = 0; }; } else { Cell_firstFree_280 = (Cell_firstFree_280 - 1); this_478 = Cell_nextFree_739[Cell_firstFree_280]; Cell_typeId_129[this_478] = 1; }; return this_478; } function error973(string msg392) { $debugPrint159((msg_392 + (" " + #getStackTrace()))); }