integer test_i729 array A_nextFree106 integer A_firstFree128 integer A_maxIndex212 array A_typeId203 integer A_firstFree128 = 0 integer A_maxIndex212 = 0 function initGlobals147() { } function main671() { initGlobals147(); dispatch_A_test_A_foo128(new_B966()); if (test_i_729 == 8) { testSuccess207(); } else { }; } function config269() { } IS_NATIVE function testSuccess207() { } function new_B966() returns integer { local integer this313 if (A_firstFree_128 == 0) { if (A_maxIndex_212 < 32768) { A_maxIndex_212 = (A_maxIndex_212 + 1); this_313 = A_maxIndex_212; A_typeId_203[this_313] = 2; } else { error379("Out of memory: Could not create B."); this_313 = 0; }; } else { A_firstFree_128 = (A_firstFree_128 - 1); this_313 = A_nextFree_106[A_firstFree_128]; A_typeId_203[this_313] = 2; }; return this_313; } function error379(string msg106) { $debugPrint108((msg_106 + (" " + #getStackTrace()))); } function dispatch_A_test_A_foo128(integer this128) { if (A_typeId_203[this_128] == 0) { if (this_128 == 0) { error379("Nullpointer exception when calling A.foo"); } else { error379("Called A.foo on invalid object."); }; } else { }; if (A_typeId_203[this_128] <= 1) { test_i_729 = 7; } else { test_i_729 = 8; }; }