array C_nextFree680 integer C_firstFree756 integer C_maxIndex642 array C_typeId136 integer C_firstFree756 = 0 integer C_maxIndex642 = 0 function initGlobals795() { } function main684() { initGlobals795(); init_test341(); } function config177() { } function init_test341() { local integer c843 local string s150 local integer this213 local any xs_0736 local integer this193 local any xs_0114 local integer this138 c_843 = new_C813(); this_213 = c_843; xs_0_736 = 42; if (C_typeId_136[this_213] == 0) { if (this_213 == 0) { error613("Nullpointer exception when calling C.setX"); } else { error613("Called C.setX on invalid object."); }; } else { }; this_193 = this_213; xs_0_114 = xs_0_736; this_138 = c_843; if (C_typeId_136[this_138] == 0) { if (this_138 == 0) { error613("Nullpointer exception when calling C.getX"); } else { error613("Called C.getX on invalid object."); }; } else { }; s_150 = "42"; if (s_150 == "42") { testSuccess118(); } else { }; } IS_NATIVE function testSuccess118() { } function new_C813() returns integer { local integer this200 local integer this154 if (C_firstFree_756 == 0) { if (C_maxIndex_642 < 32768) { C_maxIndex_642 = (C_maxIndex_642 + 1); this_154 = C_maxIndex_642; C_typeId_136[this_154] = 1; } else { error613("Out of memory: Could not create C."); this_154 = 0; }; } else { C_firstFree_756 = (C_firstFree_756 - 1); this_154 = C_nextFree_680[C_firstFree_756]; C_typeId_136[this_154] = 1; }; this_200 = this_154; return this_200; } function error613(string msg379) { $debugPrint876((msg_379 + (" " + #getStackTrace()))); }