array D_nextFree178 integer D_firstFree157 integer D_maxIndex529 array D_typeId523 array D_B_A_x907 integer D_firstFree157 = 0 integer D_maxIndex529 = 0 function initGlobals100() { } function main131() { initGlobals100(); init_test117(); } function config214() { } function init_test117() { local integer d679 d_679 = new_D208(); if (D_typeId_523[d_679] == 0) { if (d_679 == 0) { error152("Nullpointer exception when calling D.setX"); } else { error152("Called D.setX on invalid object."); }; } else { }; D_B_A_x_907[d_679] = 4; if (D_typeId_523[d_679] == 0) { if (d_679 == 0) { error152("Nullpointer exception when calling D.getX"); } else { error152("Called D.getX on invalid object."); }; } else { }; if (D_B_A_x_907[d_679] != 4) { testFail197("foo fail"); } else { }; testSuccess680(); } IS_NATIVE function testFail197(string msg104) { } IS_NATIVE function testSuccess680() { } function new_D208() returns integer { local integer this110 if (D_firstFree_157 == 0) { if (D_maxIndex_529 < 32768) { D_maxIndex_529 = (D_maxIndex_529 + 1); this_110 = D_maxIndex_529; D_typeId_523[this_110] = 1; } else { error152("Out of memory: Could not create D."); this_110 = 0; }; } else { D_firstFree_157 = (D_firstFree_157 - 1); this_110 = D_nextFree_178[D_firstFree_157]; D_typeId_523[this_110] = 1; }; return this_110; } function error152(string msg844) { $debugPrint643((msg_844 + (" " + #getStackTrace()))); }