array Cell_nextFree111 integer Cell_firstFree108 integer Cell_maxIndex836 array Cell_typeId600 array Cell_elem141 integer blaFromIndex_return_z190 integer blaFromIndex_return_y293 integer Cell_firstFree108 = 0 integer Cell_maxIndex836 = 0 function initGlobals507() { Cell_firstFree_108 = 0; Cell_maxIndex_836 = 0; } function main203() { initGlobals507(); init_test750(); } function config835() { } function init_test750() { local integer c139 c_139 = new_Cell131(); dispatch_Cell_test_Cell_set166(c_139, blaToIndex834(5, 3)); if ((blaFromIndex199(dispatch_Cell_test_Cell_get929(c_139)) == 5) and (blaFromIndex_return_y_293 == 2)) { testSuccess996(); } else { }; } function blaToIndex834(integer b_z726, integer b_y919) returns integer { return b_z_726; } function blaFromIndex199(integer i208) returns integer { blaFromIndex_return_z_190 = i_208; blaFromIndex_return_y_293 = 2; return blaFromIndex_return_z_190; } IS_NATIVE function testSuccess996() { } function Cell_set440(integer this187, any t569) { Cell_elem_141[this_187] = t_569; } function Cell_get134(integer this627) returns any { return Cell_elem_141[this_627]; } function Cell_init112(integer this938) { } function new_Cell131() returns integer { local integer this141 this_141 = alloc_Cell873(); construct_Cell180(this_141); return this_141; } function construct_Cell180(integer this197) { Cell_init112(this_197); } function alloc_Cell873() returns integer { local integer this152 if (Cell_firstFree_108 == 0) { if (Cell_maxIndex_836 < 32768) { Cell_maxIndex_836 = (Cell_maxIndex_836 + 1); this_152 = Cell_maxIndex_836; Cell_typeId_600[this_152] = 1; } else { error704("Out of memory: Could not create Cell."); this_152 = 0; }; } else { Cell_firstFree_108 = (Cell_firstFree_108 - 1); this_152 = Cell_nextFree_111[Cell_firstFree_108]; Cell_typeId_600[this_152] = 1; }; return this_152; } function error704(string msg817) { $debugPrint536((msg_817 + (" " + #getStackTrace()))); } function dispatch_Cell_test_Cell_set166(integer this202, any t197) { if (Cell_typeId_600[this_202] == 0) { if (this_202 == 0) { error704("Nullpointer exception when calling Cell.set"); } else { error704("Called Cell.set on invalid object."); }; } else { }; Cell_set440(this_202, t_197); } function dispatch_Cell_test_Cell_get929(integer this175) returns any { local any test_Cell_get_result908 if (Cell_typeId_600[this_175] == 0) { if (this_175 == 0) { error704("Nullpointer exception when calling Cell.get"); } else { error704("Called Cell.get on invalid object."); }; } else { }; test_Cell_get_result_908 = Cell_get134(this_175); return test_Cell_get_result_908; }