array A_nextFree815 integer A_firstFree110 integer A_maxIndex107 array A_typeId122 array C_nextFree100 integer C_firstFree210 integer C_maxIndex936 integer A_firstFree110 = 0 integer A_maxIndex107 = 0 integer C_firstFree210 = 0 integer C_maxIndex936 = 0 function initGlobals200() { } function main194() { initGlobals200(); init_Test144(); } function config172() { } function init_Test144() { local integer b202 b_202 = new_B124(); new_C248(); if (A_typeId_122[b_202] == 0) { if (b_202 == 0) { error151("Nullpointer exception when calling A.bla"); } else { error151("Called A.bla on invalid object."); }; } else { }; } function new_B124() returns integer { local integer this154 if (A_firstFree_110 == 0) { if (A_maxIndex_107 < 32768) { A_maxIndex_107 = (A_maxIndex_107 + 1); this_154 = A_maxIndex_107; A_typeId_122[this_154] = 2; } else { error151("Out of memory: Could not create B."); this_154 = 0; }; } else { A_firstFree_110 = (A_firstFree_110 - 1); this_154 = A_nextFree_815[A_firstFree_110]; A_typeId_122[this_154] = 2; }; return this_154; } function new_C248() returns integer { local integer this114 if (C_firstFree_210 == 0) { if (C_maxIndex_936 < 32768) { C_maxIndex_936 = (C_maxIndex_936 + 1); this_114 = C_maxIndex_936; } else { error151("Out of memory: Could not create C."); this_114 = 0; }; } else { C_firstFree_210 = (C_firstFree_210 - 1); this_114 = C_nextFree_100[C_firstFree_210]; }; return this_114; } function error151(string msg142) { $debugPrint128((msg_142 + (" " + #getStackTrace()))); }