array C_nextFree118 integer C_firstFree106 integer C_maxIndex731 array C_typeId169 integer C_firstFree106 = 0 integer C_maxIndex731 = 0 function initGlobals193() { C_firstFree_106 = 0; C_maxIndex_731 = 0; } function main788() { initGlobals193(); init_test944(); } function config164() { } function init_test944() { local integer c328 local unit u490 c_328 = new_C881(); u_490 = null; dispatch_C_test_C_M_set151(c_328, u_490, 1.23); } function C_M_set285(integer this192, unit a135, real b102) returns real { local real temp738 temp_738 = b_102; return temp_738; } function C_init212(integer this114) { construct_C_M111(this_114); } function construct_C_M111(integer this102) { } function new_C881() returns integer { local integer this749 this_749 = alloc_C172(); construct_C456(this_749); return this_749; } function construct_C456(integer this181) { C_init212(this_181); } function alloc_C172() returns integer { local integer this103 if (C_firstFree_106 == 0) { if (C_maxIndex_731 < 32768) { C_maxIndex_731 = (C_maxIndex_731 + 1); this_103 = C_maxIndex_731; C_typeId_169[this_103] = 1; } else { error118("Out of memory: Could not create C."); this_103 = 0; }; } else { C_firstFree_106 = (C_firstFree_106 - 1); this_103 = C_nextFree_118[C_firstFree_106]; C_typeId_169[this_103] = 1; }; return this_103; } function error118(string msg119) { $debugPrint111((msg_119 + (" " + #getStackTrace()))); } function dispatch_C_test_C_M_set151(integer this281, unit a182, real b810) returns real { local real test_C_M_set_result176 if (C_typeId_169[this_281] == 0) { if (this_281 == 0) { error118("Nullpointer exception when calling C.set"); } else { error118("Called C.set on invalid object."); }; } else { }; test_C_M_set_result_176 = C_M_set285(this_281, a_182, b_810); return test_C_M_set_result_176; }