array A_nextFree136 integer A_firstFree620 integer A_maxIndex178 array A_typeId156 array C_nextFree412 integer C_firstFree987 integer C_maxIndex126 integer A_firstFree620 = 0 integer A_maxIndex178 = 0 integer C_firstFree987 = 0 integer C_maxIndex126 = 0 function initGlobals128() { } function main145() { initGlobals128(); init_Test122(); } function config344() { } function init_Test122() { local integer b213 local integer this205 b_213 = new_B116(); this_205 = b_213; new_C202(); if (A_typeId_156[this_205] == 0) { if (this_205 == 0) { error101("Nullpointer exception when calling A.bla"); } else { error101("Called A.bla on invalid object."); }; } else { }; } function new_B116() returns integer { local integer this471 local integer this187 if (A_firstFree_620 == 0) { if (A_maxIndex_178 < 32768) { A_maxIndex_178 = (A_maxIndex_178 + 1); this_187 = A_maxIndex_178; A_typeId_156[this_187] = 2; } else { error101("Out of memory: Could not create B."); this_187 = 0; }; } else { A_firstFree_620 = (A_firstFree_620 - 1); this_187 = A_nextFree_136[A_firstFree_620]; A_typeId_156[this_187] = 2; }; this_471 = this_187; return this_471; } function new_C202() returns integer { local integer this166 local integer this196 if (C_firstFree_987 == 0) { if (C_maxIndex_126 < 32768) { C_maxIndex_126 = (C_maxIndex_126 + 1); this_196 = C_maxIndex_126; } else { error101("Out of memory: Could not create C."); this_196 = 0; }; } else { C_firstFree_987 = (C_firstFree_987 - 1); this_196 = C_nextFree_412[C_firstFree_987]; }; this_166 = this_196; return this_166; } function error101(string msg169) { $debugPrint117((msg_169 + (" " + #getStackTrace()))); }