array C_nextFree145 integer C_firstFree752 integer C_maxIndex133 array C_typeId213 integer C_firstFree752 = 0 integer C_maxIndex133 = 0 function initGlobals130() { } function main180() { initGlobals130(); init_test190(); } function config117() { } function init_test190() { if (dispatch_C_test_C_BlubModule_foo103(new_C144()) == 3) { testSuccess168(); } else { }; } IS_NATIVE function testSuccess168() { } function C_BlubModule_foo693(integer this451) returns integer { return 3; } function C_init974(integer this208) { construct_C_BlubModule189(this_208); } function construct_C_BlubModule189(integer this125) { } function new_C144() returns integer { local integer this124 this_124 = alloc_C124(); construct_C147(this_124); return this_124; } function construct_C147(integer this278) { C_init974(this_278); } function alloc_C124() returns integer { local integer this101 if (C_firstFree_752 == 0) { if (C_maxIndex_133 < 32768) { C_maxIndex_133 = (C_maxIndex_133 + 1); this_101 = C_maxIndex_133; C_typeId_213[this_101] = 1; } else { error209("Out of memory: Could not create C."); this_101 = 0; }; } else { C_firstFree_752 = (C_firstFree_752 - 1); this_101 = C_nextFree_145[C_firstFree_752]; C_typeId_213[this_101] = 1; }; return this_101; } function error209(string msg623) { $debugPrint827((msg_623 + (" " + #getStackTrace()))); } function dispatch_C_test_C_BlubModule_foo103(integer this140) returns integer { if (C_typeId_213[this_140] == 0) { if (this_140 == 0) { error209("Nullpointer exception when calling C.foo"); } else { error209("Called C.foo on invalid object."); }; } else { }; return C_BlubModule_foo693(this_140); }