array C_nextFree944 integer C_firstFree862 integer C_maxIndex112 array C_typeId175 integer C_firstFree862 = 0 integer C_maxIndex112 = 0 function initGlobals155() { } function main655() { initGlobals155(); init_test663(); } function config147() { } function init_test663() { if (dispatch_C_test_C_BlubModule_foo188(new_C126()) == 3) { testSuccess407(); } else { }; } IS_NATIVE function testSuccess407() { } function C_BlubModule_foo186(integer this212) returns integer { return 3; } function C_init843(integer this416) { construct_C_BlubModule526(this_416); } function construct_C_BlubModule526(integer this190) { } function new_C126() returns integer { local integer this124 this_124 = alloc_C267(); construct_C143(this_124); return this_124; } function construct_C143(integer this950) { C_init843(this_950); } function alloc_C267() returns integer { local integer this175 if (C_firstFree_862 == 0) { if (C_maxIndex_112 < 32768) { C_maxIndex_112 = (C_maxIndex_112 + 1); this_175 = C_maxIndex_112; C_typeId_175[this_175] = 1; } else { error154("Out of memory: Could not create C."); this_175 = 0; }; } else { C_firstFree_862 = (C_firstFree_862 - 1); this_175 = C_nextFree_944[C_firstFree_862]; C_typeId_175[this_175] = 1; }; return this_175; } function error154(string msg205) { $debugPrint133((msg_205 + (" " + #getStackTrace()))); } function dispatch_C_test_C_BlubModule_foo188(integer this384) returns integer { if (C_typeId_175[this_384] == 0) { if (this_384 == 0) { error154("Nullpointer exception when calling C.foo"); } else { error154("Called C.foo on invalid object."); }; } else { }; return C_BlubModule_foo186(this_384); }