array C_nextFree532 integer C_firstFree100 integer C_maxIndex949 array C_typeId157 array C_x144 integer C_firstFree100 = 0 integer C_maxIndex949 = 0 function initGlobals568() { C_firstFree_100 = 0; C_maxIndex_949 = 0; } function main819() { initGlobals568(); init_test155(); } function config707() { } function init_test155() { local integer c194 local string s211 c_194 = new_C210(); dispatch_C_test_C_setX_1442(c_194, stringToIndex137("42")); s_211 = stringFromIndex146(dispatch_C_test_C_getX887(c_194)); if (s_211 == "42") { testSuccess113(); } else { }; } function stringToIndex137(string s140) returns integer { return 42; } function stringFromIndex146(integer i126) returns string { return "42"; } IS_NATIVE function testSuccess113() { } function C_getX156(integer this324) returns any { return C_x_144[this_324]; } function C_init968(integer this876) { } function new_C210() returns integer { local integer this575 this_575 = alloc_C563(); construct_C121(this_575); return this_575; } function construct_C121(integer this108) { C_init968(this_108); } function alloc_C563() returns integer { local integer this294 if (C_firstFree_100 == 0) { if (C_maxIndex_949 < 32768) { C_maxIndex_949 = (C_maxIndex_949 + 1); this_294 = C_maxIndex_949; C_typeId_157[this_294] = 1; } else { error977("Out of memory: Could not create C."); this_294 = 0; }; } else { C_firstFree_100 = (C_firstFree_100 - 1); this_294 = C_nextFree_532[C_firstFree_100]; C_typeId_157[this_294] = 1; }; return this_294; } function error977(string msg415) { $debugPrint164((msg_415 + (" " + #getStackTrace()))); } function dispatch_C_test_C_getX887(integer this460) returns any { local any test_C_getX_result206 if (C_typeId_157[this_460] == 0) { if (this_460 == 0) { error977("Nullpointer exception when calling C.getX"); } else { error977("Called C.getX on invalid object."); }; } else { }; test_C_getX_result_206 = C_getX156(this_460); return test_C_getX_result_206; } function C_setX_1149(integer this171, any xs_0629) { C_x_144[this_171] = xs_0_629; } function dispatch_C_test_C_setX_1442(integer this203, any xs_0103) { if (C_typeId_157[this_203] == 0) { if (this_203 == 0) { error977("Nullpointer exception when calling C.setX"); } else { error977("Called C.setX on invalid object."); }; } else { }; C_setX_1149(this_203, xs_0_103); }