integer test_x960 array B_nextFree160 integer B_firstFree592 integer B_maxIndex168 array B_typeId143 array B_y178 integer test_x960 = 2 integer B_firstFree592 = 0 integer B_maxIndex168 = 0 function initGlobals173() { } function main353() { initGlobals173(); init_test998(); } function config108() { } function init_test998() { test_x_960 = 2; dispatch_A_test_A_foo166(new_A138()); if (test_x_960 == 8) { testSuccess418(); } else { }; } IS_NATIVE function testSuccess418() { } function A_foo177(integer this118) { test_x_960 = (test_x_960 + B_y_178[this_118]); B_foo595(this_118); } function A_init131(integer this309) { } function new_A138() returns integer { local integer this134 this_134 = alloc_A116(); construct_A677(this_134); return this_134; } function construct_A677(integer this136) { construct_B484(this_136); A_init131(this_136); } function B_foo595(integer this608) { test_x_960 = (test_x_960 * B_y_178[this_608]); } function B_init474(integer this107) { B_y_178[this_107] = 2; } function construct_B484(integer this190) { B_init474(this_190); } function alloc_A116() returns integer { local integer this987 if (B_firstFree_592 == 0) { if (B_maxIndex_168 < 32768) { B_maxIndex_168 = (B_maxIndex_168 + 1); this_987 = B_maxIndex_168; B_typeId_143[this_987] = 2; } else { error794("Out of memory: Could not create A."); this_987 = 0; }; } else { B_firstFree_592 = (B_firstFree_592 - 1); this_987 = B_nextFree_160[B_firstFree_592]; B_typeId_143[this_987] = 2; }; return this_987; } function error794(string msg191) { $debugPrint103((msg_191 + (" " + #getStackTrace()))); } function dispatch_A_test_A_foo166(integer this130) { if (B_typeId_143[this_130] == 0) { if (this_130 == 0) { error794("Nullpointer exception when calling A.foo"); } else { error794("Called A.foo on invalid object."); }; } else { }; A_foo177(this_130); }