array C_nextFree247 integer C_firstFree718 integer C_maxIndex642 array C_typeId168 integer C_firstFree718 = 0 integer C_maxIndex642 = 0 function initGlobals458() { } function main319() { initGlobals458(); init_test475(); } function config194() { } function init_test475() { local integer c188 local integer this187 local integer test_C_foo_result771 c_188 = new_C150(); this_187 = c_188; if (C_typeId_168[this_187] == 0) { if (this_187 == 0) { error202("Nullpointer exception when calling C.foo"); } else { error202("Called C.foo on invalid object."); }; } else { }; test_C_foo_result_771 = 3; if (test_C_foo_result_771 == 3) { testSuccess128(); } else { }; } IS_NATIVE function testSuccess128() { } function new_C150() returns integer { local integer this144 local integer this201 if (C_firstFree_718 == 0) { if (C_maxIndex_642 < 32768) { C_maxIndex_642 = (C_maxIndex_642 + 1); this_201 = C_maxIndex_642; C_typeId_168[this_201] = 1; } else { error202("Out of memory: Could not create C."); this_201 = 0; }; } else { C_firstFree_718 = (C_firstFree_718 - 1); this_201 = C_nextFree_247[C_firstFree_718]; C_typeId_168[this_201] = 1; }; this_144 = this_201; return this_144; } function error202(string msg601) { $debugPrint369((msg_601 + (" " + #getStackTrace()))); }