array A_nextFree717 integer A_firstFree108 integer A_maxIndex213 array A_typeId972 array C_nextFree182 integer C_firstFree120 integer C_maxIndex112 integer A_firstFree108 = 0 integer A_maxIndex213 = 0 integer C_firstFree120 = 0 integer C_maxIndex112 = 0 function initGlobals441() { } function main917() { initGlobals441(); init_Test592(); } function config450() { } function init_Test592() { local integer b116 local integer this180 b_116 = new_B769(); this_180 = b_116; new_C199(); if (A_typeId_972[this_180] == 0) { if (this_180 == 0) { error201("Nullpointer exception when calling A.bla"); } else { error201("Called A.bla on invalid object."); }; } else { }; } function new_B769() returns integer { local integer this263 local integer this322 if (A_firstFree_108 == 0) { if (A_maxIndex_213 < 32768) { A_maxIndex_213 = (A_maxIndex_213 + 1); this_322 = A_maxIndex_213; A_typeId_972[this_322] = 2; } else { error201("Out of memory: Could not create B."); this_322 = 0; }; } else { A_firstFree_108 = (A_firstFree_108 - 1); this_322 = A_nextFree_717[A_firstFree_108]; A_typeId_972[this_322] = 2; }; this_263 = this_322; return this_263; } function new_C199() returns integer { local integer this163 local integer this426 if (C_firstFree_120 == 0) { if (C_maxIndex_112 < 32768) { C_maxIndex_112 = (C_maxIndex_112 + 1); this_426 = C_maxIndex_112; } else { error201("Out of memory: Could not create C."); this_426 = 0; }; } else { C_firstFree_120 = (C_firstFree_120 - 1); this_426 = C_nextFree_182[C_firstFree_120]; }; this_163 = this_426; return this_163; } function error201(string msg360) { $debugPrint188((msg_360 + (" " + #getStackTrace()))); }