array C_nextFree102 integer C_firstFree336 integer C_maxIndex472 array C_typeId131 integer C_firstFree336 = 0 integer C_maxIndex472 = 0 function initGlobals108() { C_firstFree_336 = 0; C_maxIndex_472 = 0; } function random332() returns integer { return 3; } function main121() { initGlobals108(); init_test130(); } function config364() { } function init_test130() { local integer c118 c_118 = new_C467(); if (dispatch_C_test_C_BlubModule_foo156(c_118) == 3) { testSuccess192(); } else { }; } IS_NATIVE function testSuccess192() { } function C_BlubModule_foo206(integer this182) returns integer { return random332(); } function C_init195(integer this190) { construct_C_BlubModule214(this_190); } function construct_C_BlubModule214(integer this158) { } function new_C467() returns integer { local integer this153 this_153 = alloc_C724(); construct_C103(this_153); return this_153; } function construct_C103(integer this254) { C_init195(this_254); } function alloc_C724() returns integer { local integer this470 if (C_firstFree_336 == 0) { if (C_maxIndex_472 < 32768) { C_maxIndex_472 = (C_maxIndex_472 + 1); this_470 = C_maxIndex_472; C_typeId_131[this_470] = 1; } else { error691("Out of memory: Could not create C."); this_470 = 0; }; } else { C_firstFree_336 = (C_firstFree_336 - 1); this_470 = C_nextFree_102[C_firstFree_336]; C_typeId_131[this_470] = 1; }; return this_470; } function error691(string msg958) { $debugPrint131((msg_958 + (" " + #getStackTrace()))); } function dispatch_C_test_C_BlubModule_foo156(integer this115) returns integer { local integer test_C_BlubModule_foo_result141 if (C_typeId_131[this_115] == 0) { if (this_115 == 0) { error691("Nullpointer exception when calling C.foo"); } else { error691("Called C.foo on invalid object."); }; } else { }; test_C_BlubModule_foo_result_141 = C_BlubModule_foo206(this_115); return test_C_BlubModule_foo_result_141; }