array A_nextFree752 integer A_firstFree204 integer A_maxIndex125 array A_typeId329 array B_nextFree181 integer B_firstFree163 integer B_maxIndex196 array B_typeId159 array A_b730 integer A_firstFree204 = 0 integer A_maxIndex125 = 0 integer B_firstFree163 = 0 integer B_maxIndex196 = 0 function initGlobals555() { } function main222() { initGlobals555(); if (dispatch_A_test_A_get145(new_A202()) == 1) { testSuccess793(); } else { }; } function config168() { } IS_NATIVE IS_EXTERN @extern function S2I142(string i746) returns integer { } IS_NATIVE function testSuccess793() { } function new_A202() returns integer { local integer this197 if (A_firstFree_204 == 0) { if (A_maxIndex_125 < 32768) { A_maxIndex_125 = (A_maxIndex_125 + 1); this_197 = A_maxIndex_125; A_typeId_329[this_197] = 1; } else { error489("Out of memory: Could not create A."); this_197 = 0; }; } else { A_firstFree_204 = (A_firstFree_204 - 1); this_197 = A_nextFree_752[A_firstFree_204]; A_typeId_329[this_197] = 1; }; A_b_730[this_197] = new_B155(); return this_197; } function new_B155() returns integer { local integer this129 if (B_firstFree_163 == 0) { if (B_maxIndex_196 < 32768) { B_maxIndex_196 = (B_maxIndex_196 + 1); this_129 = B_maxIndex_196; B_typeId_159[this_129] = 2; } else { error489("Out of memory: Could not create B."); this_129 = 0; }; } else { B_firstFree_163 = (B_firstFree_163 - 1); this_129 = B_nextFree_181[B_firstFree_163]; B_typeId_159[this_129] = 2; }; return this_129; } function error489(string msg867) { $debugPrint571((msg_867 + (" " + #getStackTrace()))); } function dispatch_A_test_A_get145(integer this140) returns integer { if (A_typeId_329[this_140] == 0) { if (this_140 == 0) { error489("Nullpointer exception when calling A.get"); } else { error489("Called A.get on invalid object."); }; } else { }; this_140 = A_b_730[this_140]; if (B_typeId_159[this_140] == 0) { if (this_140 == 0) { error489("Nullpointer exception when calling B.get"); } else { error489("Called B.get on invalid object."); }; } else { }; return S2I142("1"); }