array C_nextFree545 integer C_firstFree916 integer C_maxIndex626 array C_typeId161 integer C_firstFree916 = 0 integer C_maxIndex626 = 0 function initGlobals426() { } function main548() { initGlobals426(); init_test554(); } function config771() { } function init_test554() { local integer c197 local integer this119 local integer test_C_BlubModule_foo_result330 c_197 = new_C120(); this_119 = c_197; if (C_typeId_161[this_119] == 0) { if (this_119 == 0) { error466("Nullpointer exception when calling C.foo"); } else { error466("Called C.foo on invalid object."); }; } else { }; test_C_BlubModule_foo_result_330 = 3; if (test_C_BlubModule_foo_result_330 == 3) { testSuccess122(); } else { }; } IS_NATIVE function testSuccess122() { } function new_C120() returns integer { local integer this204 local integer this197 if (C_firstFree_916 == 0) { if (C_maxIndex_626 < 32768) { C_maxIndex_626 = (C_maxIndex_626 + 1); this_197 = C_maxIndex_626; C_typeId_161[this_197] = 1; } else { error466("Out of memory: Could not create C."); this_197 = 0; }; } else { C_firstFree_916 = (C_firstFree_916 - 1); this_197 = C_nextFree_545[C_firstFree_916]; C_typeId_161[this_197] = 1; }; this_204 = this_197; return this_204; } function error466(string msg109) { $debugPrint171((msg_109 + (" " + #getStackTrace()))); }