array A_nextFree191 integer A_firstFree170 integer A_maxIndex176 array A_typeId835 array B_nextFree151 integer B_firstFree148 integer B_maxIndex165 array B_typeId254 array A_b204 integer A_firstFree170 = 0 integer A_maxIndex176 = 0 integer B_firstFree148 = 0 integer B_maxIndex165 = 0 function initGlobals113() { } function main169() { local integer a117 initGlobals113(); a_117 = new_A227(); if (dispatch_A_test_A_get655(a_117) == 1) { testSuccess552(); } else { }; } function config120() { } IS_NATIVE IS_EXTERN @extern function S2I157(string i985) returns integer { } IS_NATIVE function testSuccess552() { } function new_A227() returns integer { local integer this332 local integer this197 local integer this453 local integer this241 if (A_firstFree_170 == 0) { if (A_maxIndex_176 < 32768) { A_maxIndex_176 = (A_maxIndex_176 + 1); this_197 = A_maxIndex_176; A_typeId_835[this_197] = 1; } else { error823("Out of memory: Could not create A."); this_197 = 0; }; } else { A_firstFree_170 = (A_firstFree_170 - 1); this_197 = A_nextFree_191[A_firstFree_170]; A_typeId_835[this_197] = 1; }; this_332 = this_197; this_453 = this_332; this_241 = this_453; A_b_204[this_241] = new_B992(); return this_332; } function new_B992() returns integer { local integer this173 local integer this157 if (B_firstFree_148 == 0) { if (B_maxIndex_165 < 32768) { B_maxIndex_165 = (B_maxIndex_165 + 1); this_157 = B_maxIndex_165; B_typeId_254[this_157] = 2; } else { error823("Out of memory: Could not create B."); this_157 = 0; }; } else { B_firstFree_148 = (B_firstFree_148 - 1); this_157 = B_nextFree_151[B_firstFree_148]; B_typeId_254[this_157] = 2; }; this_173 = this_157; return this_173; } function error823(string msg107) { $debugPrint654((msg_107 + (" " + #getStackTrace()))); } function dispatch_A_test_A_get655(integer this153) returns integer { local integer test_A_get_result124 local integer this780 local integer this196 local string test_A_B_get_result128 if (A_typeId_835[this_153] == 0) { if (this_153 == 0) { error823("Nullpointer exception when calling A.get"); } else { error823("Called A.get on invalid object."); }; } else { }; this_780 = this_153; this_196 = A_b_204[this_780]; if (B_typeId_254[this_196] == 0) { if (this_196 == 0) { error823("Nullpointer exception when calling B.get"); } else { error823("Called B.get on invalid object."); }; } else { }; test_A_B_get_result_128 = "1"; test_A_get_result_124 = S2I157(test_A_B_get_result_128); return test_A_get_result_124; }