array A_nextFree130 integer A_firstFree896 integer A_maxIndex130 array A_typeId178 array B_nextFree593 integer B_firstFree307 integer B_maxIndex503 array B_typeId313 array A_b169 integer A_firstFree896 = 0 integer A_maxIndex130 = 0 integer B_firstFree307 = 0 integer B_maxIndex503 = 0 function initGlobals122() { } function main911() { initGlobals122(); if (dispatch_A_test_A_get126(new_A407()) == 1) { testSuccess210(); } else { }; } function config280() { } IS_NATIVE function testSuccess210() { } function new_A407() returns integer { local integer this169 if (A_firstFree_896 == 0) { if (A_maxIndex_130 < 32768) { A_maxIndex_130 = (A_maxIndex_130 + 1); this_169 = A_maxIndex_130; A_typeId_178[this_169] = 1; } else { error429("Out of memory: Could not create A."); this_169 = 0; }; } else { A_firstFree_896 = (A_firstFree_896 - 1); this_169 = A_nextFree_130[A_firstFree_896]; A_typeId_178[this_169] = 1; }; A_b_169[this_169] = new_B393(); return this_169; } function new_B393() returns integer { local integer this136 if (B_firstFree_307 == 0) { if (B_maxIndex_503 < 32768) { B_maxIndex_503 = (B_maxIndex_503 + 1); this_136 = B_maxIndex_503; B_typeId_313[this_136] = 2; } else { error429("Out of memory: Could not create B."); this_136 = 0; }; } else { B_firstFree_307 = (B_firstFree_307 - 1); this_136 = B_nextFree_593[B_firstFree_307]; B_typeId_313[this_136] = 2; }; return this_136; } function error429(string msg157) { $debugPrint455((msg_157 + (" " + #getStackTrace()))); } function dispatch_A_test_A_get126(integer this149) returns integer { if (A_typeId_178[this_149] == 0) { if (this_149 == 0) { error429("Nullpointer exception when calling A.get"); } else { error429("Called A.get on invalid object."); }; } else { }; this_149 = A_b_169[this_149]; if (B_typeId_313[this_149] == 0) { if (this_149 == 0) { error429("Nullpointer exception when calling B.get"); } else { error429("Called B.get on invalid object."); }; } else { }; return 1; }