array A_nextFree121 integer A_firstFree174 integer A_maxIndex145 array A_typeId687 integer A_firstFree174 = 0 integer A_maxIndex145 = 0 function initGlobals119() { } function main135() { initGlobals119(); init_test130(); } function config912() { } function init_test130() { if (dispatch_A_test_A_f1938(new_C514()) == 3) { testSuccess128(); } else { }; } IS_NATIVE function testSuccess128() { } function C_f1213(integer this142) returns integer { return 3; } function C_init338(integer this549) { } function new_C514() returns integer { local integer this205 this_205 = alloc_C686(); construct_C437(this_205); return this_205; } function construct_C437(integer this369) { C_init338(this_369); } function error104(string msg814) { $debugPrint148((msg_814 + (" " + #getStackTrace()))); } function alloc_C686() returns integer { local integer this193 if (A_firstFree_174 == 0) { if (A_maxIndex_145 < 32768) { A_maxIndex_145 = (A_maxIndex_145 + 1); this_193 = A_maxIndex_145; A_typeId_687[this_193] = 3; } else { error104("Out of memory: Could not create C."); this_193 = 0; }; } else { A_firstFree_174 = (A_firstFree_174 - 1); this_193 = A_nextFree_121[A_firstFree_174]; A_typeId_687[this_193] = 3; }; return this_193; } function dispatch_A_test_A_f1938(integer this170) returns integer { if (A_typeId_687[this_170] == 0) { if (this_170 == 0) { error104("Nullpointer exception when calling A.f1"); } else { error104("Called A.f1 on invalid object."); }; } else { }; return C_f1213(this_170); }