array C_nextFree669 integer C_firstFree200 integer C_maxIndex136 array C_typeId180 integer C_firstFree200 = 0 integer C_maxIndex136 = 0 function initGlobals134() { } function main108() { initGlobals134(); init_test176(); } function config166() { } function init_test176() { local integer c111 local integer this133 local integer test_C_BlubModule_foo_result674 c_111 = new_C138(); this_133 = c_111; if (C_typeId_180[this_133] == 0) { if (this_133 == 0) { error141("Nullpointer exception when calling C.foo"); } else { error141("Called C.foo on invalid object."); }; } else { }; test_C_BlubModule_foo_result_674 = 3; if (test_C_BlubModule_foo_result_674 == 3) { testSuccess166(); } else { }; } IS_NATIVE function testSuccess166() { } function new_C138() returns integer { local integer this151 local integer this161 if (C_firstFree_200 == 0) { if (C_maxIndex_136 < 32768) { C_maxIndex_136 = (C_maxIndex_136 + 1); this_161 = C_maxIndex_136; C_typeId_180[this_161] = 1; } else { error141("Out of memory: Could not create C."); this_161 = 0; }; } else { C_firstFree_200 = (C_firstFree_200 - 1); this_161 = C_nextFree_669[C_firstFree_200]; C_typeId_180[this_161] = 1; }; this_151 = this_161; return this_151; } function error141(string msg771) { $debugPrint554((msg_771 + (" " + #getStackTrace()))); }