array A_nextFree982 integer A_firstFree497 integer A_maxIndex148 array A_typeId135 integer A_firstFree497 = 0 integer A_maxIndex148 = 0 function initGlobals186() { } function main202() { initGlobals186(); dispatch_B_B_B_blub174(new_B465()); } function config347() { } IS_NATIVE function testSuccess194() { } function new_B465() returns integer { local integer this998 local integer this553 if (A_firstFree_497 == 0) { if (A_maxIndex_148 < 32768) { A_maxIndex_148 = (A_maxIndex_148 + 1); this_553 = A_maxIndex_148; A_typeId_135[this_553] = 2; } else { error801("Out of memory: Could not create B."); this_553 = 0; }; } else { A_firstFree_497 = (A_firstFree_497 - 1); this_553 = A_nextFree_982[A_firstFree_497]; A_typeId_135[this_553] = 2; }; this_998 = this_553; return this_998; } function error801(string msg120) { $debugPrint183((msg_120 + (" " + #getStackTrace()))); } function dispatch_B_B_B_blub174(integer this458) { local integer this349 local integer this114 if (A_typeId_135[this_458] == 0) { if (this_458 == 0) { error801("Nullpointer exception when calling B.blub"); } else { error801("Called B.blub on invalid object."); }; } else { }; this_349 = this_458; this_114 = this_349; if (A_typeId_135[this_114] == 0) { if (this_114 == 0) { error801("Nullpointer exception when calling A.show"); } else { error801("Called A.show on invalid object."); }; } else { }; testSuccess194(); }