array C_nextFree132 integer C_firstFree381 integer C_maxIndex838 array C_typeId121 integer C_firstFree381 = 0 integer C_maxIndex838 = 0 function initGlobals139() { C_firstFree_381 = 0; C_maxIndex_838 = 0; } function main466() { initGlobals139(); init_test894(); } function config205() { } function init_test894() { local integer c170 local unit u193 c_170 = new_C778(); u_193 = null; dispatch_C_test_C_M_set129(c_170, u_193, 1.23); } function C_M_set760(integer this177, unit a204, real b167) returns real { local real temp203 temp_203 = b_167; return temp_203; } function C_init899(integer this143) { construct_C_M164(this_143); } function construct_C_M164(integer this132) { } function new_C778() returns integer { local integer this162 this_162 = alloc_C133(); construct_C104(this_162); return this_162; } function construct_C104(integer this177) { C_init899(this_177); } function alloc_C133() returns integer { local integer this108 if (C_firstFree_381 == 0) { if (C_maxIndex_838 < 32768) { C_maxIndex_838 = (C_maxIndex_838 + 1); this_108 = C_maxIndex_838; C_typeId_121[this_108] = 1; } else { error862("Out of memory: Could not create C."); this_108 = 0; }; } else { C_firstFree_381 = (C_firstFree_381 - 1); this_108 = C_nextFree_132[C_firstFree_381]; C_typeId_121[this_108] = 1; }; return this_108; } function error862(string msg203) { $debugPrint138((msg_203 + (" " + #getStackTrace()))); } function dispatch_C_test_C_M_set129(integer this466, unit a173, real b149) returns real { local real test_C_M_set_result180 if (C_typeId_121[this_466] == 0) { if (this_466 == 0) { error862("Nullpointer exception when calling C.set"); } else { error862("Called C.set on invalid object."); }; } else { }; test_C_M_set_result_180 = C_M_set760(this_466, a_173, b_149); return test_C_M_set_result_180; }