array C_nextFree156 integer C_firstFree903 integer C_maxIndex148 array C_typeId796 integer C_firstFree903 = 0 integer C_maxIndex148 = 0 function initGlobals257() { } function main107() { initGlobals257(); init_test185(); } function config167() { } function init_test185() { if (dispatch_C_test_C_BlubModule_foo241(new_C140()) == 3) { testSuccess148(); } else { }; } IS_NATIVE function testSuccess148() { } function C_BlubModule_foo166(integer this554) returns integer { return 3; } function C_init125(integer this198) { construct_C_BlubModule648(this_198); } function construct_C_BlubModule648(integer this131) { } function new_C140() returns integer { local integer this620 this_620 = alloc_C200(); construct_C726(this_620); return this_620; } function construct_C726(integer this954) { C_init125(this_954); } function alloc_C200() returns integer { local integer this344 if (C_firstFree_903 == 0) { if (C_maxIndex_148 < 32768) { C_maxIndex_148 = (C_maxIndex_148 + 1); this_344 = C_maxIndex_148; C_typeId_796[this_344] = 1; } else { error266("Out of memory: Could not create C."); this_344 = 0; }; } else { C_firstFree_903 = (C_firstFree_903 - 1); this_344 = C_nextFree_156[C_firstFree_903]; C_typeId_796[this_344] = 1; }; return this_344; } function error266(string msg100) { $debugPrint142((msg_100 + (" " + #getStackTrace()))); } function dispatch_C_test_C_BlubModule_foo241(integer this167) returns integer { if (C_typeId_796[this_167] == 0) { if (this_167 == 0) { error266("Nullpointer exception when calling C.foo"); } else { error266("Called C.foo on invalid object."); }; } else { }; return C_BlubModule_foo166(this_167); }