array C_nextFree967 integer C_firstFree943 integer C_maxIndex137 array C_typeId120 integer C_firstFree943 = 0 integer C_maxIndex137 = 0 function initGlobals987() { C_firstFree_943 = 0; C_maxIndex_137 = 0; } function main185() { initGlobals987(); init_Test126(); } function config177() { } function init_Test126() { dispatch_C_Test_C_foo_4192(new_C103(), 1, 2, 3, 4); } IS_NATIVE function testSuccess324() { } function C_init111(integer this533) { } function new_C103() returns integer { local integer this132 this_132 = alloc_C150(); construct_C136(this_132); return this_132; } function construct_C136(integer this214) { C_init111(this_214); } function alloc_C150() returns integer { local integer this154 if (C_firstFree_943 == 0) { if (C_maxIndex_137 < 32768) { C_maxIndex_137 = (C_maxIndex_137 + 1); this_154 = C_maxIndex_137; C_typeId_120[this_154] = 1; } else { error150("Out of memory: Could not create C."); this_154 = 0; }; } else { C_firstFree_943 = (C_firstFree_943 - 1); this_154 = C_nextFree_967[C_firstFree_943]; C_typeId_120[this_154] = 1; }; return this_154; } function error150(string msg141) { $debugPrint852((msg_141 + (" " + #getStackTrace()))); } function C_foo_4264(integer this139, integer ints_0194, integer ints_1209, integer ints_2477, integer ints_3732) { local integer sum485 local integer j908 sum_485 = 3; sum_485 = (sum_485 + ints_0_194); j_908 = 1; loop { exitwhen (j_908 > 4); sum_485 = (sum_485 + j_908); if (j_908 > 2) { exitwhen true; } else { }; j_908 = (j_908 + 1); }; sum_485 = (sum_485 + ints_1_209); j_908 = 1; loop { exitwhen (j_908 > 4); sum_485 = (sum_485 + j_908); if (j_908 > 2) { exitwhen true; } else { }; j_908 = (j_908 + 1); }; sum_485 = (sum_485 + ints_2_477); j_908 = 1; loop { exitwhen (j_908 > 4); sum_485 = (sum_485 + j_908); if (j_908 > 2) { exitwhen true; } else { }; j_908 = (j_908 + 1); }; sum_485 = (sum_485 + ints_3_732); j_908 = 1; loop { exitwhen (j_908 > 4); sum_485 = (sum_485 + j_908); if (j_908 > 2) { exitwhen true; } else { }; j_908 = (j_908 + 1); }; if (sum_485 == 37) { testSuccess324(); } else { }; } function dispatch_C_Test_C_foo_4192(integer this363, integer ints_0907, integer ints_1199, integer ints_2517, integer ints_3176) { if (C_typeId_120[this_363] == 0) { if (this_363 == 0) { error150("Nullpointer exception when calling C.foo"); } else { error150("Called C.foo on invalid object."); }; } else { }; C_foo_4264(this_363, ints_0_907, ints_1_199, ints_2_517, ints_3_176); }