array C_nextFree181 integer C_firstFree206 integer C_maxIndex443 array C_typeId994 integer C_firstFree206 = 0 integer C_maxIndex443 = 0 function initGlobals371() { } function main152() { initGlobals371(); init_test649(); } function config730() { } function init_test649() { if (dispatch_C_test_C_foo404(new_C300()) == 3) { testSuccess867(); } else { }; } IS_NATIVE function testSuccess867() { } function C_foo642(integer this151) returns integer { return 3; } function C_init792(integer this172) { construct_C_A171(this_172); } function construct_C_A171(integer this718) { } function new_C300() returns integer { local integer this676 this_676 = alloc_C128(); construct_C764(this_676); return this_676; } function construct_C764(integer this588) { C_init792(this_588); } function alloc_C128() returns integer { local integer this181 if (C_firstFree_206 == 0) { if (C_maxIndex_443 < 32768) { C_maxIndex_443 = (C_maxIndex_443 + 1); this_181 = C_maxIndex_443; C_typeId_994[this_181] = 1; } else { error289("Out of memory: Could not create C."); this_181 = 0; }; } else { C_firstFree_206 = (C_firstFree_206 - 1); this_181 = C_nextFree_181[C_firstFree_206]; C_typeId_994[this_181] = 1; }; return this_181; } function error289(string msg177) { $debugPrint158((msg_177 + (" " + #getStackTrace()))); } function dispatch_C_test_C_foo404(integer this315) returns integer { if (C_typeId_994[this_315] == 0) { if (this_315 == 0) { error289("Nullpointer exception when calling C.foo"); } else { error289("Called C.foo on invalid object."); }; } else { }; return C_foo642(this_315); }