array C_nextFree153 integer C_firstFree120 integer C_maxIndex177 array C_typeId190 integer C_firstFree120 = 0 integer C_maxIndex177 = 0 function initGlobals247() { } function main111() { initGlobals247(); init_test889(); } function config611() { } function init_test889() { local integer c814 local string s147 local integer this621 local any xs_0207 local integer this141 local any xs_0719 local integer this547 c_814 = new_C118(); this_621 = c_814; xs_0_207 = 42; if (C_typeId_190[this_621] == 0) { if (this_621 == 0) { error154("Nullpointer exception when calling C.setX"); } else { error154("Called C.setX on invalid object."); }; } else { }; this_141 = this_621; xs_0_719 = xs_0_207; this_547 = c_814; if (C_typeId_190[this_547] == 0) { if (this_547 == 0) { error154("Nullpointer exception when calling C.getX"); } else { error154("Called C.getX on invalid object."); }; } else { }; s_147 = "42"; if (s_147 == "42") { testSuccess204(); } else { }; } IS_NATIVE function testSuccess204() { } function new_C118() returns integer { local integer this734 local integer this493 if (C_firstFree_120 == 0) { if (C_maxIndex_177 < 32768) { C_maxIndex_177 = (C_maxIndex_177 + 1); this_493 = C_maxIndex_177; C_typeId_190[this_493] = 1; } else { error154("Out of memory: Could not create C."); this_493 = 0; }; } else { C_firstFree_120 = (C_firstFree_120 - 1); this_493 = C_nextFree_153[C_firstFree_120]; C_typeId_190[this_493] = 1; }; this_734 = this_493; return this_734; } function error154(string msg192) { $debugPrint195((msg_192 + (" " + #getStackTrace()))); }