array A_nextFree209 integer A_firstFree173 integer A_maxIndex100 array A_typeId766 integer A_firstFree173 = 0 integer A_maxIndex100 = 0 function initGlobals125() { A_firstFree_173 = 0; A_maxIndex_100 = 0; } function main201() { initGlobals125(); init_test210(); } function config135() { } function init_test210() { dispatch_A_test_A_foo104(new_A460(), handleToIndex521(null)); } function handleToIndex521(handle h376) returns integer { return 1; } function A_foo572(integer this586, any t409) { } function A_init173(integer this261) { } function new_A460() returns integer { local integer this731 this_731 = alloc_A621(); construct_A618(this_731); return this_731; } function construct_A618(integer this200) { A_init173(this_200); } function alloc_A621() returns integer { local integer this477 if (A_firstFree_173 == 0) { if (A_maxIndex_100 < 32768) { A_maxIndex_100 = (A_maxIndex_100 + 1); this_477 = A_maxIndex_100; A_typeId_766[this_477] = 1; } else { error152("Out of memory: Could not create A."); this_477 = 0; }; } else { A_firstFree_173 = (A_firstFree_173 - 1); this_477 = A_nextFree_209[A_firstFree_173]; A_typeId_766[this_477] = 1; }; return this_477; } function error152(string msg416) { $debugPrint924((msg_416 + (" " + #getStackTrace()))); } function dispatch_A_test_A_foo104(integer this275, any t134) { if (A_typeId_766[this_275] == 0) { if (this_275 == 0) { error152("Nullpointer exception when calling A.foo"); } else { error152("Called A.foo on invalid object."); }; } else { }; A_foo572(this_275, t_134); }