array D_nextFree997 integer D_firstFree614 integer D_maxIndex324 array D_typeId159 array D_B_A_x169 integer D_firstFree614 = 0 integer D_maxIndex324 = 0 function initGlobals176() { } function main147() { initGlobals176(); init_test150(); } function config724() { } function init_test150() { local integer d191 local integer this212 local integer x881 local integer this203 local integer x182 local integer this114 local integer x134 local integer this194 local integer test_D_getX_result105 local integer this103 local integer this243 d_191 = new_D117(); this_212 = d_191; x_881 = 4; if (D_typeId_159[this_212] == 0) { if (this_212 == 0) { error138("Nullpointer exception when calling D.setX"); } else { error138("Called D.setX on invalid object."); }; } else { }; this_203 = this_212; x_182 = x_881; this_114 = this_203; x_134 = x_182; D_B_A_x_169[this_114] = x_134; this_194 = d_191; if (D_typeId_159[this_194] == 0) { if (this_194 == 0) { error138("Nullpointer exception when calling D.getX"); } else { error138("Called D.getX on invalid object."); }; } else { }; this_103 = this_194; this_243 = this_103; test_D_getX_result_105 = D_B_A_x_169[this_243]; if (test_D_getX_result_105 != 4) { testFail143("foo fail"); } else { }; testSuccess169(); } IS_NATIVE function testFail143(string msg933) { } IS_NATIVE function testSuccess169() { } function new_D117() returns integer { local integer this160 local integer this497 local integer this107 if (D_firstFree_614 == 0) { if (D_maxIndex_324 < 32768) { D_maxIndex_324 = (D_maxIndex_324 + 1); this_497 = D_maxIndex_324; D_typeId_159[this_497] = 1; } else { error138("Out of memory: Could not create D."); this_497 = 0; }; } else { D_firstFree_614 = (D_firstFree_614 - 1); this_497 = D_nextFree_997[D_firstFree_614]; D_typeId_159[this_497] = 1; }; this_160 = this_497; this_107 = this_160; return this_160; } function error138(string msg630) { $debugPrint521((msg_630 + (" " + #getStackTrace()))); }