array C_nextFree646 integer C_firstFree106 integer C_maxIndex144 array C_typeId167 integer C_firstFree106 = 0 integer C_maxIndex144 = 0 function initGlobals186() { } function main134() { initGlobals186(); init_test459(); } function config545() { } function init_test459() { local integer c120 local integer this854 local integer test_C_BlubModule_foo_result207 c_120 = new_C164(); this_854 = c_120; if (C_typeId_167[this_854] == 0) { if (this_854 == 0) { error175("Nullpointer exception when calling C.foo"); } else { error175("Called C.foo on invalid object."); }; } else { }; test_C_BlubModule_foo_result_207 = 3; if (test_C_BlubModule_foo_result_207 == 3) { testSuccess121(); } else { }; } IS_NATIVE function testSuccess121() { } function new_C164() returns integer { local integer this336 local integer this163 if (C_firstFree_106 == 0) { if (C_maxIndex_144 < 32768) { C_maxIndex_144 = (C_maxIndex_144 + 1); this_163 = C_maxIndex_144; C_typeId_167[this_163] = 1; } else { error175("Out of memory: Could not create C."); this_163 = 0; }; } else { C_firstFree_106 = (C_firstFree_106 - 1); this_163 = C_nextFree_646[C_firstFree_106]; C_typeId_167[this_163] = 1; }; this_336 = this_163; return this_336; } function error175(string msg262) { $debugPrint180((msg_262 + (" " + #getStackTrace()))); }