array A_nextFree547 integer A_firstFree207 integer A_maxIndex184 array C_nextFree109 integer C_firstFree486 integer C_maxIndex685 array C_typeId181 integer A_firstFree207 = 0 integer A_maxIndex184 = 0 integer C_firstFree486 = 0 integer C_maxIndex685 = 0 function initGlobals854() { A_firstFree_207 = 0; A_maxIndex_184 = 0; C_firstFree_486 = 0; C_maxIndex_685 = 0; } function main146() { initGlobals854(); init_Test942(); } function config187() { } function init_Test942() { dispatch_C_Test_C_foo178(new_C126(), new_A177()); dispatch_C_Test_C_foo_4121(new_C126(), 1, 2, 3, 4); } IS_NATIVE function testSuccess177() { } function A_init152(integer this175) { } function new_A177() returns integer { local integer this809 this_809 = alloc_A132(); construct_A390(this_809); return this_809; } function construct_A390(integer this199) { A_init152(this_199); } function C_foo146(integer this498, integer s112) { } function C_init136(integer this259) { } function new_C126() returns integer { local integer this718 this_718 = alloc_C159(); construct_C698(this_718); return this_718; } function construct_C698(integer this126) { C_init136(this_126); } function alloc_A132() returns integer { local integer this190 if (A_firstFree_207 == 0) { if (A_maxIndex_184 < 32768) { A_maxIndex_184 = (A_maxIndex_184 + 1); this_190 = A_maxIndex_184; } else { error197("Out of memory: Could not create A."); this_190 = 0; }; } else { A_firstFree_207 = (A_firstFree_207 - 1); this_190 = A_nextFree_547[A_firstFree_207]; }; return this_190; } function error197(string msg175) { $debugPrint370((msg_175 + (" " + #getStackTrace()))); } function alloc_C159() returns integer { local integer this219 if (C_firstFree_486 == 0) { if (C_maxIndex_685 < 32768) { C_maxIndex_685 = (C_maxIndex_685 + 1); this_219 = C_maxIndex_685; C_typeId_181[this_219] = 2; } else { error197("Out of memory: Could not create C."); this_219 = 0; }; } else { C_firstFree_486 = (C_firstFree_486 - 1); this_219 = C_nextFree_109[C_firstFree_486]; C_typeId_181[this_219] = 2; }; return this_219; } function dispatch_C_Test_C_foo178(integer this538, integer s210) { if (C_typeId_181[this_538] == 0) { if (this_538 == 0) { error197("Nullpointer exception when calling C.foo"); } else { error197("Called C.foo on invalid object."); }; } else { }; C_foo146(this_538, s_210); } function C_foo_4166(integer this851, any ints_0188, any ints_1746, any ints_2111, any ints_3175) { local integer sum251 sum_251 = 3; sum_251 = (sum_251 + 1); sum_251 = (sum_251 + 1); sum_251 = (sum_251 + 1); sum_251 = (sum_251 + 1); if (sum_251 == 7) { testSuccess177(); } else { }; } function dispatch_C_Test_C_foo_4121(integer this412, any ints_0309, any ints_1596, any ints_2107, any ints_3520) { if (C_typeId_181[this_412] == 0) { if (this_412 == 0) { error197("Nullpointer exception when calling C.foo"); } else { error197("Called C.foo on invalid object."); }; } else { }; C_foo_4166(this_412, ints_0_309, ints_1_596, ints_2_107, ints_3_520); }