array D_nextFree690 integer D_firstFree193 integer D_maxIndex168 array D_typeId570 array D_B_A_x769 integer D_firstFree193 = 0 integer D_maxIndex168 = 0 function initGlobals243() { } function main929() { initGlobals243(); init_test107(); } function config188() { } function init_test107() { local integer d420 local integer this191 local integer x514 local integer this251 local integer x179 local integer this942 local integer x172 local integer this314 local integer test_D_getX_result117 local integer this211 local integer this170 d_420 = new_D136(); this_191 = d_420; x_514 = 4; if (D_typeId_570[this_191] == 0) { if (this_191 == 0) { error793("Nullpointer exception when calling D.setX"); } else { error793("Called D.setX on invalid object."); }; } else { }; this_251 = this_191; x_179 = x_514; this_942 = this_251; x_172 = x_179; D_B_A_x_769[this_942] = x_172; this_314 = d_420; if (D_typeId_570[this_314] == 0) { if (this_314 == 0) { error793("Nullpointer exception when calling D.getX"); } else { error793("Called D.getX on invalid object."); }; } else { }; this_211 = this_314; this_170 = this_211; test_D_getX_result_117 = D_B_A_x_769[this_170]; if (test_D_getX_result_117 != 4) { testFail439("foo fail"); } else { }; testSuccess891(); } IS_NATIVE function testFail439(string msg898) { } IS_NATIVE function testSuccess891() { } function new_D136() returns integer { local integer this157 local integer this212 local integer this150 if (D_firstFree_193 == 0) { if (D_maxIndex_168 < 32768) { D_maxIndex_168 = (D_maxIndex_168 + 1); this_212 = D_maxIndex_168; D_typeId_570[this_212] = 1; } else { error793("Out of memory: Could not create D."); this_212 = 0; }; } else { D_firstFree_193 = (D_firstFree_193 - 1); this_212 = D_nextFree_690[D_firstFree_193]; D_typeId_570[this_212] = 1; }; this_157 = this_212; this_150 = this_157; return this_157; } function error793(string msg103) { $debugPrint107((msg_103 + (" " + #getStackTrace()))); }