integer test_i126 array A_nextFree212 integer A_firstFree117 integer A_maxIndex169 array A_typeId102 integer A_firstFree117 = 0 integer A_maxIndex169 = 0 function initGlobals190() { } function main834() { local integer b120 initGlobals190(); b_120 = new_B275(); dispatch_A_test_A_foo740(b_120); if (test_i_126 == 8) { testSuccess904(); } else { }; } function config123() { } IS_NATIVE function testSuccess904() { } function new_B275() returns integer { local integer this106 local integer this190 if (A_firstFree_117 == 0) { if (A_maxIndex_169 < 32768) { A_maxIndex_169 = (A_maxIndex_169 + 1); this_190 = A_maxIndex_169; A_typeId_102[this_190] = 2; } else { error358("Out of memory: Could not create B."); this_190 = 0; }; } else { A_firstFree_117 = (A_firstFree_117 - 1); this_190 = A_nextFree_212[A_firstFree_117]; A_typeId_102[this_190] = 2; }; this_106 = this_190; return this_106; } function error358(string msg128) { $debugPrint130((msg_128 + (" " + #getStackTrace()))); } function dispatch_A_test_A_foo740(integer this164) { if (A_typeId_102[this_164] == 0) { if (this_164 == 0) { error358("Nullpointer exception when calling A.foo"); } else { error358("Called A.foo on invalid object."); }; } else { }; if (A_typeId_102[this_164] <= 1) { test_i_126 = 7; } else { test_i_126 = 8; }; }