array C_nextFree655 integer C_firstFree866 integer C_maxIndex441 array C_typeId426 integer C_firstFree866 = 0 integer C_maxIndex441 = 0 function initGlobals478() { C_firstFree_866 = 0; C_maxIndex_441 = 0; } function main160() { initGlobals478(); init_test207(); } function config512() { } function init_test207() { local integer c130 local unit u858 c_130 = new_C118(); u_858 = null; dispatch_C_test_C_M_set573(c_130, u_858, 1.23); } function C_M_set139(integer this136, unit a681, real b211) returns real { local real temp789 temp_789 = b_211; return temp_789; } function C_init353(integer this201) { construct_C_M210(this_201); } function construct_C_M210(integer this187) { } function new_C118() returns integer { local integer this133 this_133 = alloc_C554(); construct_C189(this_133); return this_133; } function construct_C189(integer this129) { C_init353(this_129); } function alloc_C554() returns integer { local integer this730 if (C_firstFree_866 == 0) { if (C_maxIndex_441 < 32768) { C_maxIndex_441 = (C_maxIndex_441 + 1); this_730 = C_maxIndex_441; C_typeId_426[this_730] = 1; } else { error829("Out of memory: Could not create C."); this_730 = 0; }; } else { C_firstFree_866 = (C_firstFree_866 - 1); this_730 = C_nextFree_655[C_firstFree_866]; C_typeId_426[this_730] = 1; }; return this_730; } function error829(string msg152) { $debugPrint152((msg_152 + (" " + #getStackTrace()))); } function dispatch_C_test_C_M_set573(integer this125, unit a143, real b116) returns real { local real test_C_M_set_result152 if (C_typeId_426[this_125] == 0) { if (this_125 == 0) { error829("Nullpointer exception when calling C.set"); } else { error829("Called C.set on invalid object."); }; } else { }; test_C_M_set_result_152 = C_M_set139(this_125, a_143, b_116); return test_C_M_set_result_152; }