array C_nextFree582 integer C_firstFree617 integer C_maxIndex118 array C_typeId186 integer C_firstFree617 = 0 integer C_maxIndex118 = 0 function initGlobals124() { } function main103() { initGlobals124(); dispatch_C_Test_C_foo_4347(new_C664(), 1, 2, 3, 4); } function config189() { } IS_NATIVE function testSuccess127() { } function new_C664() returns integer { local integer this400 local integer this853 if (C_firstFree_617 == 0) { if (C_maxIndex_118 < 32768) { C_maxIndex_118 = (C_maxIndex_118 + 1); this_853 = C_maxIndex_118; C_typeId_186[this_853] = 1; } else { error141("Out of memory: Could not create C."); this_853 = 0; }; } else { C_firstFree_617 = (C_firstFree_617 - 1); this_853 = C_nextFree_582[C_firstFree_617]; C_typeId_186[this_853] = 1; }; this_400 = this_853; return this_400; } function error141(string msg417) { $debugPrint101((msg_417 + (" " + #getStackTrace()))); } function dispatch_C_Test_C_foo_4347(integer this547, integer ints_0318, integer ints_1350, integer ints_2150, integer ints_3565) { local integer ints_0155 local integer ints_1105 local integer ints_2819 local integer ints_3185 local integer sum753 local integer j161 if (C_typeId_186[this_547] == 0) { if (this_547 == 0) { error141("Nullpointer exception when calling C.foo"); } else { error141("Called C.foo on invalid object."); }; } else { }; ints_0_155 = ints_0_318; ints_1_105 = ints_1_350; ints_2_819 = ints_2_150; ints_3_185 = ints_3_565; sum_753 = 3; sum_753 = (sum_753 + ints_0_155); j_161 = 1; loop { exitwhen (j_161 > 4); sum_753 = (sum_753 + j_161); if (j_161 > 2) { exitwhen true; } else { }; j_161 = (j_161 + 1); }; sum_753 = (sum_753 + ints_1_105); j_161 = 1; loop { exitwhen (j_161 > 4); sum_753 = (sum_753 + j_161); if (j_161 > 2) { exitwhen true; } else { }; j_161 = (j_161 + 1); }; sum_753 = (sum_753 + ints_2_819); j_161 = 1; loop { exitwhen (j_161 > 4); sum_753 = (sum_753 + j_161); if (j_161 > 2) { exitwhen true; } else { }; j_161 = (j_161 + 1); }; sum_753 = (sum_753 + ints_3_185); j_161 = 1; loop { exitwhen (j_161 > 4); sum_753 = (sum_753 + j_161); if (j_161 > 2) { exitwhen true; } else { }; j_161 = (j_161 + 1); }; if (sum_753 == 37) { testSuccess127(); } else { }; }