array C_nextFree112 integer C_firstFree153 integer C_maxIndex148 array C_typeId198 integer C_firstFree153 = 0 integer C_maxIndex148 = 0 function initGlobals156() { } function random199() returns integer { return 3; } function main695() { initGlobals156(); init_test122(); } function config923() { } function init_test122() { if (dispatch_C_test_C_BlubModule_foo228(new_C587()) == 3) { testSuccess106(); } else { }; } IS_NATIVE function testSuccess106() { } function C_BlubModule_foo915(integer this213) returns integer { return random199(); } function C_init160(integer this101) { construct_C_BlubModule336(this_101); } function construct_C_BlubModule336(integer this129) { } function new_C587() returns integer { local integer this177 this_177 = alloc_C466(); construct_C209(this_177); return this_177; } function construct_C209(integer this103) { C_init160(this_103); } function alloc_C466() returns integer { local integer this376 if (C_firstFree_153 == 0) { if (C_maxIndex_148 < 32768) { C_maxIndex_148 = (C_maxIndex_148 + 1); this_376 = C_maxIndex_148; C_typeId_198[this_376] = 1; } else { error160("Out of memory: Could not create C."); this_376 = 0; }; } else { C_firstFree_153 = (C_firstFree_153 - 1); this_376 = C_nextFree_112[C_firstFree_153]; C_typeId_198[this_376] = 1; }; return this_376; } function error160(string msg201) { $debugPrint100((msg_201 + (" " + #getStackTrace()))); } function dispatch_C_test_C_BlubModule_foo228(integer this844) returns integer { if (C_typeId_198[this_844] == 0) { if (this_844 == 0) { error160("Nullpointer exception when calling C.foo"); } else { error160("Called C.foo on invalid object."); }; } else { }; return C_BlubModule_foo915(this_844); }