array A_nextFree499 integer A_firstFree548 integer A_maxIndex130 array A_typeId727 array B_nextFree719 integer B_firstFree430 integer B_maxIndex961 array B_typeId193 array A_b193 integer A_firstFree548 = 0 integer A_maxIndex130 = 0 integer B_firstFree430 = 0 integer B_maxIndex961 = 0 function initGlobals209() { } function main508() { initGlobals209(); init_test139(); } function config668() { } function init_test139() { if (dispatch_A_test_A_get321(new_A433()) == 1) { testSuccess484(); } else { }; } IS_NATIVE IS_EXTERN @extern function S2I197(string i104) returns integer { } IS_NATIVE function testSuccess484() { } function A_get158(integer this190) returns integer { return S2I197(dispatch_B_test_A_B_get769(A_b_193[this_190])); } function A_init200(integer this168) { A_b_193[this_168] = new_B140(); } function new_A433() returns integer { local integer this630 this_630 = alloc_A653(); construct_A318(this_630); return this_630; } function construct_A318(integer this144) { A_init200(this_144); } function B_get137(integer this820) returns string { return "1"; } function new_B140() returns integer { local integer this459 this_459 = alloc_B199(); construct_B452(this_459); return this_459; } function B_init761(integer this375) { } function construct_B452(integer this168) { B_init761(this_168); } function alloc_A653() returns integer { local integer this185 if (A_firstFree_548 == 0) { if (A_maxIndex_130 < 32768) { A_maxIndex_130 = (A_maxIndex_130 + 1); this_185 = A_maxIndex_130; A_typeId_727[this_185] = 1; } else { error210("Out of memory: Could not create A."); this_185 = 0; }; } else { A_firstFree_548 = (A_firstFree_548 - 1); this_185 = A_nextFree_499[A_firstFree_548]; A_typeId_727[this_185] = 1; }; return this_185; } function error210(string msg254) { $debugPrint504((msg_254 + (" " + #getStackTrace()))); } function alloc_B199() returns integer { local integer this614 if (B_firstFree_430 == 0) { if (B_maxIndex_961 < 32768) { B_maxIndex_961 = (B_maxIndex_961 + 1); this_614 = B_maxIndex_961; B_typeId_193[this_614] = 2; } else { error210("Out of memory: Could not create B."); this_614 = 0; }; } else { B_firstFree_430 = (B_firstFree_430 - 1); this_614 = B_nextFree_719[B_firstFree_430]; B_typeId_193[this_614] = 2; }; return this_614; } function dispatch_A_test_A_get321(integer this145) returns integer { if (A_typeId_727[this_145] == 0) { if (this_145 == 0) { error210("Nullpointer exception when calling A.get"); } else { error210("Called A.get on invalid object."); }; } else { }; return A_get158(this_145); } function dispatch_B_test_A_B_get769(integer this171) returns string { if (B_typeId_193[this_171] == 0) { if (this_171 == 0) { error210("Nullpointer exception when calling B.get"); } else { error210("Called B.get on invalid object."); }; } else { }; return B_get137(this_171); }