array A_nextFree396 integer A_firstFree149 integer A_maxIndex131 array C_nextFree178 integer C_firstFree424 integer C_maxIndex212 array C_typeId194 integer A_firstFree149 = 0 integer A_maxIndex131 = 0 integer C_firstFree424 = 0 integer C_maxIndex212 = 0 function initGlobals143() { A_firstFree_149 = 0; A_maxIndex_131 = 0; C_firstFree_424 = 0; C_maxIndex_212 = 0; } function main145() { initGlobals143(); init_Test183(); } function config465() { } function init_Test183() { dispatch_C_Test_C_foo197(new_C111(), new_A205()); dispatch_C_Test_C_foo_4117(new_C111(), 1, 2, 3, 4); } IS_NATIVE function testSuccess873() { } function A_init194(integer this131) { } function new_A205() returns integer { local integer this160 this_160 = alloc_A135(); construct_A504(this_160); return this_160; } function construct_A504(integer this463) { A_init194(this_463); } function C_foo828(integer this210, integer s112) { } function C_init431(integer this411) { } function new_C111() returns integer { local integer this951 this_951 = alloc_C119(); construct_C101(this_951); return this_951; } function construct_C101(integer this211) { C_init431(this_211); } function alloc_A135() returns integer { local integer this545 if (A_firstFree_149 == 0) { if (A_maxIndex_131 < 32768) { A_maxIndex_131 = (A_maxIndex_131 + 1); this_545 = A_maxIndex_131; } else { error577("Out of memory: Could not create A."); this_545 = 0; }; } else { A_firstFree_149 = (A_firstFree_149 - 1); this_545 = A_nextFree_396[A_firstFree_149]; }; return this_545; } function error577(string msg132) { $debugPrint153((msg_132 + (" " + #getStackTrace()))); } function alloc_C119() returns integer { local integer this184 if (C_firstFree_424 == 0) { if (C_maxIndex_212 < 32768) { C_maxIndex_212 = (C_maxIndex_212 + 1); this_184 = C_maxIndex_212; C_typeId_194[this_184] = 2; } else { error577("Out of memory: Could not create C."); this_184 = 0; }; } else { C_firstFree_424 = (C_firstFree_424 - 1); this_184 = C_nextFree_178[C_firstFree_424]; C_typeId_194[this_184] = 2; }; return this_184; } function dispatch_C_Test_C_foo197(integer this549, integer s134) { if (C_typeId_194[this_549] == 0) { if (this_549 == 0) { error577("Nullpointer exception when calling C.foo"); } else { error577("Called C.foo on invalid object."); }; } else { }; C_foo828(this_549, s_134); } function C_foo_4725(integer this231, any ints_0122, any ints_1114, any ints_2192, any ints_3249) { local integer sum201 sum_201 = 3; sum_201 = (sum_201 + 1); sum_201 = (sum_201 + 1); sum_201 = (sum_201 + 1); sum_201 = (sum_201 + 1); if (sum_201 == 7) { testSuccess873(); } else { }; } function dispatch_C_Test_C_foo_4117(integer this506, any ints_0417, any ints_1176, any ints_2511, any ints_3526) { if (C_typeId_194[this_506] == 0) { if (this_506 == 0) { error577("Nullpointer exception when calling C.foo"); } else { error577("Called C.foo on invalid object."); }; } else { }; C_foo_4725(this_506, ints_0_417, ints_1_176, ints_2_511, ints_3_526); }