array C_nextFree153 integer C_firstFree137 integer C_maxIndex200 array C_typeId210 integer C_firstFree137 = 0 integer C_maxIndex200 = 0 function initGlobals389() { C_firstFree_137 = 0; C_maxIndex_200 = 0; } function main153() { initGlobals389(); init_Test538(); } function config527() { } function init_Test538() { dispatch_C_Test_C_foo_4945(new_C990(), 1, 2, 3, 4); } IS_NATIVE function testSuccess359() { } function C_init112(integer this188) { } function new_C990() returns integer { local integer this248 this_248 = alloc_C144(); construct_C121(this_248); return this_248; } function construct_C121(integer this766) { C_init112(this_766); } function alloc_C144() returns integer { local integer this713 if (C_firstFree_137 == 0) { if (C_maxIndex_200 < 32768) { C_maxIndex_200 = (C_maxIndex_200 + 1); this_713 = C_maxIndex_200; C_typeId_210[this_713] = 1; } else { error187("Out of memory: Could not create C."); this_713 = 0; }; } else { C_firstFree_137 = (C_firstFree_137 - 1); this_713 = C_nextFree_153[C_firstFree_137]; C_typeId_210[this_713] = 1; }; return this_713; } function error187(string msg595) { $debugPrint138((msg_595 + (" " + #getStackTrace()))); } function C_foo_4210(integer this197, integer ints_0371, integer ints_1579, integer ints_2194, integer ints_3489) { local integer sum195 local integer j247 sum_195 = 3; sum_195 = (sum_195 + ints_0_371); j_247 = 1; loop { exitwhen (j_247 > 4); sum_195 = (sum_195 + j_247); if (j_247 > 2) { exitwhen true; } else { }; j_247 = (j_247 + 1); }; sum_195 = (sum_195 + ints_1_579); j_247 = 1; loop { exitwhen (j_247 > 4); sum_195 = (sum_195 + j_247); if (j_247 > 2) { exitwhen true; } else { }; j_247 = (j_247 + 1); }; sum_195 = (sum_195 + ints_2_194); j_247 = 1; loop { exitwhen (j_247 > 4); sum_195 = (sum_195 + j_247); if (j_247 > 2) { exitwhen true; } else { }; j_247 = (j_247 + 1); }; sum_195 = (sum_195 + ints_3_489); j_247 = 1; loop { exitwhen (j_247 > 4); sum_195 = (sum_195 + j_247); if (j_247 > 2) { exitwhen true; } else { }; j_247 = (j_247 + 1); }; if (sum_195 == 37) { testSuccess359(); } else { }; } function dispatch_C_Test_C_foo_4945(integer this193, integer ints_0178, integer ints_1726, integer ints_2115, integer ints_3196) { if (C_typeId_210[this_193] == 0) { if (this_193 == 0) { error187("Nullpointer exception when calling C.foo"); } else { error187("Called C.foo on invalid object."); }; } else { }; C_foo_4210(this_193, ints_0_178, ints_1_726, ints_2_115, ints_3_196); }