array D_nextFree101 integer D_firstFree132 integer D_maxIndex333 array D_typeId212 array D_B_A_x521 integer D_firstFree132 = 0 integer D_maxIndex333 = 0 function initGlobals319() { } function main190() { initGlobals319(); init_test516(); } function config883() { } function init_test516() { local integer d205 d_205 = new_D204(); dispatch_D_test_D_setX110(d_205, 4); if (dispatch_D_test_D_getX495(d_205) != 4) { testFail130("foo fail"); } else { }; testSuccess815(); } IS_NATIVE function testFail130(string msg186) { } IS_NATIVE function testSuccess815() { } function D_setX140(integer this207, integer x158) { D_B_A_setX826(this_207, x_158); } function D_B_A_setX826(integer this137, integer x700) { D_B_A_x_521[this_137] = x_700; } function D_getX161(integer this371) returns integer { return D_B_A_getX173(this_371); } function D_B_A_getX173(integer this160) returns integer { return D_B_A_x_521[this_160]; } function D_init174(integer this729) { construct_D_B166(this_729); construct_D_C721(this_729); } function construct_D_B166(integer this787) { construct_D_B_A167(this_787); } function construct_D_C721(integer this131) { construct_D_C_A635(this_131); } function construct_D_B_A167(integer this448) { } function construct_D_C_A635(integer this182) { } function new_D204() returns integer { local integer this146 this_146 = alloc_D148(); construct_D410(this_146); return this_146; } function construct_D410(integer this562) { D_init174(this_562); } function alloc_D148() returns integer { local integer this105 if (D_firstFree_132 == 0) { if (D_maxIndex_333 < 32768) { D_maxIndex_333 = (D_maxIndex_333 + 1); this_105 = D_maxIndex_333; D_typeId_212[this_105] = 1; } else { error292("Out of memory: Could not create D."); this_105 = 0; }; } else { D_firstFree_132 = (D_firstFree_132 - 1); this_105 = D_nextFree_101[D_firstFree_132]; D_typeId_212[this_105] = 1; }; return this_105; } function error292(string msg183) { $debugPrint125((msg_183 + (" " + #getStackTrace()))); } function dispatch_D_test_D_setX110(integer this185, integer x196) { if (D_typeId_212[this_185] == 0) { if (this_185 == 0) { error292("Nullpointer exception when calling D.setX"); } else { error292("Called D.setX on invalid object."); }; } else { }; D_setX140(this_185, x_196); } function dispatch_D_test_D_getX495(integer this131) returns integer { if (D_typeId_212[this_131] == 0) { if (this_131 == 0) { error292("Nullpointer exception when calling D.getX"); } else { error292("Called D.getX on invalid object."); }; } else { }; return D_getX161(this_131); }