array C_nextFree467 integer C_firstFree954 integer C_maxIndex190 array C_typeId260 integer C_firstFree954 = 0 integer C_maxIndex190 = 0 function initGlobals112() { C_firstFree_954 = 0; C_maxIndex_190 = 0; } function main166() { initGlobals112(); init_Test180(); } function config200() { } function init_Test180() { dispatch_C_Test_C_foo_4698(new_C139(), 1, 2, 3, 4); } IS_NATIVE function testSuccess134() { } function C_init127(integer this657) { } function new_C139() returns integer { local integer this151 this_151 = alloc_C182(); construct_C198(this_151); return this_151; } function construct_C198(integer this197) { C_init127(this_197); } function alloc_C182() returns integer { local integer this168 if (C_firstFree_954 == 0) { if (C_maxIndex_190 < 32768) { C_maxIndex_190 = (C_maxIndex_190 + 1); this_168 = C_maxIndex_190; C_typeId_260[this_168] = 1; } else { error166("Out of memory: Could not create C."); this_168 = 0; }; } else { C_firstFree_954 = (C_firstFree_954 - 1); this_168 = C_nextFree_467[C_firstFree_954]; C_typeId_260[this_168] = 1; }; return this_168; } function error166(string msg474) { $debugPrint109((msg_474 + (" " + #getStackTrace()))); } function C_foo_4203(integer this117, integer ints_0483, integer ints_1165, integer ints_2108, integer ints_3123) { local integer sum785 local integer j386 sum_785 = 3; sum_785 = (sum_785 + ints_0_483); j_386 = 1; loop { exitwhen (j_386 > 4); sum_785 = (sum_785 + j_386); if (j_386 > 2) { exitwhen true; } else { }; j_386 = (j_386 + 1); }; sum_785 = (sum_785 + ints_1_165); j_386 = 1; loop { exitwhen (j_386 > 4); sum_785 = (sum_785 + j_386); if (j_386 > 2) { exitwhen true; } else { }; j_386 = (j_386 + 1); }; sum_785 = (sum_785 + ints_2_108); j_386 = 1; loop { exitwhen (j_386 > 4); sum_785 = (sum_785 + j_386); if (j_386 > 2) { exitwhen true; } else { }; j_386 = (j_386 + 1); }; sum_785 = (sum_785 + ints_3_123); j_386 = 1; loop { exitwhen (j_386 > 4); sum_785 = (sum_785 + j_386); if (j_386 > 2) { exitwhen true; } else { }; j_386 = (j_386 + 1); }; if (sum_785 == 37) { testSuccess134(); } else { }; } function dispatch_C_Test_C_foo_4698(integer this200, integer ints_0387, integer ints_1161, integer ints_2188, integer ints_3544) { if (C_typeId_260[this_200] == 0) { if (this_200 == 0) { error166("Nullpointer exception when calling C.foo"); } else { error166("Called C.foo on invalid object."); }; } else { }; C_foo_4203(this_200, ints_0_387, ints_1_161, ints_2_188, ints_3_544); }