array Cell_nextFree314 integer Cell_firstFree494 integer Cell_maxIndex916 array Cell_typeId214 array Cell_elem210 integer Cell_firstFree494 = 0 integer Cell_maxIndex916 = 0 function initGlobals125() { } function main148() { initGlobals125(); init_test146(); } function config152() { } function init_test146() { local integer c711 local integer this190 local any t393 local integer this817 local any t470 local integer b_z965 local integer this126 local any t121 local integer this139 local any t204 local integer this889 local any test_Cell_get_result129 local integer this158 local integer i104 local integer this191 local any test_Cell_get_result126 local integer this777 local integer tuple_temp201 c_711 = new_Cell170(); this_190 = c_711; tuple_temp_201 = 5; b_z_965 = tuple_temp_201; t_393 = b_z_965; if (Cell_typeId_214[this_190] == 0) { if (this_190 == 0) { error384("Nullpointer exception when calling Cell.set"); } else { error384("Called Cell.set on invalid object."); }; } else { }; this_817 = this_190; t_470 = t_393; Cell_elem_210[this_817] = t_470; this_126 = c_711; this_889 = c_711; if (Cell_typeId_214[this_889] == 0) { if (this_889 == 0) { error384("Nullpointer exception when calling Cell.get"); } else { error384("Called Cell.get on invalid object."); }; } else { }; this_158 = this_889; test_Cell_get_result_129 = Cell_elem_210[this_158]; t_121 = test_Cell_get_result_129; if (Cell_typeId_214[this_126] == 0) { if (this_126 == 0) { error384("Nullpointer exception when calling Cell.set"); } else { error384("Called Cell.set on invalid object."); }; } else { }; this_139 = this_126; t_204 = t_121; Cell_elem_210[this_139] = t_204; this_191 = c_711; if (Cell_typeId_214[this_191] == 0) { if (this_191 == 0) { error384("Nullpointer exception when calling Cell.get"); } else { error384("Called Cell.get on invalid object."); }; } else { }; this_777 = this_191; test_Cell_get_result_126 = Cell_elem_210[this_777]; i_104 = test_Cell_get_result_126; if ((i_104 == 5) and (2 == 2)) { testSuccess205(); } else { }; } IS_NATIVE function testSuccess205() { } function new_Cell170() returns integer { local integer this745 local integer this691 if (Cell_firstFree_494 == 0) { if (Cell_maxIndex_916 < 32768) { Cell_maxIndex_916 = (Cell_maxIndex_916 + 1); this_691 = Cell_maxIndex_916; Cell_typeId_214[this_691] = 1; } else { error384("Out of memory: Could not create Cell."); this_691 = 0; }; } else { Cell_firstFree_494 = (Cell_firstFree_494 - 1); this_691 = Cell_nextFree_314[Cell_firstFree_494]; Cell_typeId_214[this_691] = 1; }; this_745 = this_691; return this_745; } function error384(string msg129) { $debugPrint539((msg_129 + (" " + #getStackTrace()))); }