array C_nextFree163 integer C_firstFree161 integer C_maxIndex572 array C_typeId647 integer C_firstFree161 = 0 integer C_maxIndex572 = 0 function initGlobals206() { } function main131() { initGlobals206(); init_test183(); } function config386() { } function init_test183() { local integer c148 c_148 = new_C342(); if (C_typeId_647[c_148] == 0) { if (c_148 == 0) { error102("Nullpointer exception when calling C.foo"); } else { error102("Called C.foo on invalid object."); }; } else { }; testSuccess554(); } IS_NATIVE function testSuccess554() { } function new_C342() returns integer { local integer this186 if (C_firstFree_161 == 0) { if (C_maxIndex_572 < 32768) { C_maxIndex_572 = (C_maxIndex_572 + 1); this_186 = C_maxIndex_572; C_typeId_647[this_186] = 1; } else { error102("Out of memory: Could not create C."); this_186 = 0; }; } else { C_firstFree_161 = (C_firstFree_161 - 1); this_186 = C_nextFree_163[C_firstFree_161]; C_typeId_647[this_186] = 1; }; return this_186; } function error102(string msg624) { $debugPrint463((msg_624 + (" " + #getStackTrace()))); }