array C_nextFree203 integer C_firstFree184 integer C_maxIndex705 array C_typeId780 integer C_firstFree184 = 0 integer C_maxIndex705 = 0 function initGlobals193() { } function main167() { initGlobals193(); init_test125(); } function config165() { } function init_test125() { local integer c307 c_307 = new_C534(); if (C_typeId_780[c_307] == 0) { if (c_307 == 0) { error139("Nullpointer exception when calling C.set"); } else { error139("Called C.set on invalid object."); }; } else { }; } function new_C534() returns integer { local integer this953 if (C_firstFree_184 == 0) { if (C_maxIndex_705 < 32768) { C_maxIndex_705 = (C_maxIndex_705 + 1); this_953 = C_maxIndex_705; C_typeId_780[this_953] = 1; } else { error139("Out of memory: Could not create C."); this_953 = 0; }; } else { C_firstFree_184 = (C_firstFree_184 - 1); this_953 = C_nextFree_203[C_firstFree_184]; C_typeId_780[this_953] = 1; }; return this_953; } function error139(string msg168) { $debugPrint233((msg_168 + (" " + #getStackTrace()))); }