array C_nextFree811 integer C_firstFree101 integer C_maxIndex204 array C_typeId959 array C_x136 integer C_firstFree101 = 0 integer C_maxIndex204 = 0 function initGlobals178() { } function main149() { initGlobals178(); init_test151(); } function config105() { } function init_test151() { local integer c182 c_182 = new_C153(); dispatch_C_test_C_setX_1147(c_182, stringToIndex512("42")); if (stringFromIndex646(dispatch_C_test_C_getX105(c_182)) == "42") { testSuccess128(); } else { }; } function stringToIndex512(string s211) returns integer { return 42; } function stringFromIndex646(integer i193) returns string { return "42"; } IS_NATIVE function testSuccess128() { } function C_getX506(integer this193) returns any { return C_x_136[this_193]; } function C_init201(integer this330) { } function new_C153() returns integer { local integer this740 this_740 = alloc_C854(); construct_C390(this_740); return this_740; } function construct_C390(integer this105) { C_init201(this_105); } function alloc_C854() returns integer { local integer this415 if (C_firstFree_101 == 0) { if (C_maxIndex_204 < 32768) { C_maxIndex_204 = (C_maxIndex_204 + 1); this_415 = C_maxIndex_204; C_typeId_959[this_415] = 1; } else { error151("Out of memory: Could not create C."); this_415 = 0; }; } else { C_firstFree_101 = (C_firstFree_101 - 1); this_415 = C_nextFree_811[C_firstFree_101]; C_typeId_959[this_415] = 1; }; return this_415; } function error151(string msg383) { $debugPrint166((msg_383 + (" " + #getStackTrace()))); } function dispatch_C_test_C_getX105(integer this162) returns any { if (C_typeId_959[this_162] == 0) { if (this_162 == 0) { error151("Nullpointer exception when calling C.getX"); } else { error151("Called C.getX on invalid object."); }; } else { }; return C_getX506(this_162); } function C_setX_1860(integer this533, any xs_0197) { C_x_136[this_533] = xs_0_197; } function dispatch_C_test_C_setX_1147(integer this353, any xs_0410) { if (C_typeId_959[this_353] == 0) { if (this_353 == 0) { error151("Nullpointer exception when calling C.setX"); } else { error151("Called C.setX on invalid object."); }; } else { }; C_setX_1860(this_353, xs_0_410); }