array F_nextFree138 integer F_firstFree145 integer F_maxIndex103 array F_typeId896 array X_t121 integer F_firstFree145 = 0 integer F_maxIndex103 = 0 function initGlobals103() { F_firstFree_145 = 0; F_maxIndex_103 = 0; } function main167() { initGlobals103(); init_test128(); } function config547() { } function init_test128() { local integer x732 x_732 = new_X141(42); if (dispatch_F_test_F_get186(x_732) == 42) { testSuccess762(); } else { }; } IS_NATIVE function testSuccess762() { } function F_init198(integer this418) { } function construct_F886(integer this880) { F_init198(this_880); } function X_get153(integer this948) returns any { return X_t_121[this_948]; } function X_init769(integer this999) { } function new_X141(any t780) returns integer { local integer this109 this_109 = alloc_X824(); construct_X204(this_109, t_780); return this_109; } function construct_X204(integer this612, any t950) { construct_F886(this_612); X_init769(this_612); X_t_121[this_612] = t_950; } function error171(string msg232) { $debugPrint178((msg_232 + (" " + #getStackTrace()))); } function alloc_X824() returns integer { local integer this191 if (F_firstFree_145 == 0) { if (F_maxIndex_103 < 32768) { F_maxIndex_103 = (F_maxIndex_103 + 1); this_191 = F_maxIndex_103; F_typeId_896[this_191] = 2; } else { error171("Out of memory: Could not create X."); this_191 = 0; }; } else { F_firstFree_145 = (F_firstFree_145 - 1); this_191 = F_nextFree_138[F_firstFree_145]; F_typeId_896[this_191] = 2; }; return this_191; } function dispatch_F_test_F_get186(integer this179) returns any { local any test_F_get_result136 if (F_typeId_896[this_179] == 0) { if (this_179 == 0) { error171("Nullpointer exception when calling F.get"); } else { error171("Called F.get on invalid object."); }; } else { }; test_F_get_result_136 = X_get153(this_179); return test_F_get_result_136; }