array C_nextFree119 integer C_firstFree181 integer C_maxIndex169 array C_typeId857 integer C_firstFree181 = 0 integer C_maxIndex169 = 0 function initGlobals820() { } function main153() { initGlobals820(); init_test103(); } function config259() { } function init_test103() { if (dispatch_C_test_C_foo110(new_C769()) == 3) { testSuccess384(); } else { }; } IS_NATIVE function testSuccess384() { } function C_foo199(integer this128) returns integer { return 3; } function C_init189(integer this130) { construct_C_A688(this_130); } function construct_C_A688(integer this936) { } function new_C769() returns integer { local integer this360 this_360 = alloc_C102(); construct_C172(this_360); return this_360; } function construct_C172(integer this159) { C_init189(this_159); } function alloc_C102() returns integer { local integer this493 if (C_firstFree_181 == 0) { if (C_maxIndex_169 < 32768) { C_maxIndex_169 = (C_maxIndex_169 + 1); this_493 = C_maxIndex_169; C_typeId_857[this_493] = 1; } else { error174("Out of memory: Could not create C."); this_493 = 0; }; } else { C_firstFree_181 = (C_firstFree_181 - 1); this_493 = C_nextFree_119[C_firstFree_181]; C_typeId_857[this_493] = 1; }; return this_493; } function error174(string msg115) { $debugPrint835((msg_115 + (" " + #getStackTrace()))); } function dispatch_C_test_C_foo110(integer this530) returns integer { if (C_typeId_857[this_530] == 0) { if (this_530 == 0) { error174("Nullpointer exception when calling C.foo"); } else { error174("Called C.foo on invalid object."); }; } else { }; return C_foo199(this_530); }