integer Bla_k109 array Bla_nextFree193 integer Bla_firstFree147 integer Bla_maxIndex121 array Bla_typeId935 array Bla_i183 array Bla_j537 integer Bla_k109 = 36 integer Bla_firstFree147 = 0 integer Bla_maxIndex121 = 0 function initGlobals174() { Bla_firstFree_147 = 0; Bla_maxIndex_121 = 0; } function main715() { initGlobals174(); init_test160(); } function config157() { } function init_test160() { local integer b179 Bla_k_109 = 36; b_179 = new_Bla382(14); if (dispatch_Bla_test_Bla_getI186(b_179) != 13) { testFail100("i"); } else { if (dispatch_Bla_test_Bla_getJ321(b_179) != 14) { testFail100("j"); } else { if (dispatch_Bla_test_Bla_getK126(b_179) != 36) { testFail100("k"); } else { testSuccess135(); }; }; }; } IS_NATIVE function testFail100(string msg174) { } IS_NATIVE function testSuccess135() { } function Bla_getI122(integer this902) returns integer { return Bla_i_183[this_902]; } function Bla_getJ132(integer this713) returns integer { return Bla_j_537[this_713]; } function Bla_getK440(integer this197) returns integer { return Bla_k_109; } function Bla_init168(integer this191) { Bla_i_183[this_191] = 13; Bla_j_537[this_191] = 27; } function new_Bla382(integer j208) returns integer { local integer this980 this_980 = alloc_Bla110(); construct_Bla163(this_980, j_208); return this_980; } function construct_Bla163(integer this391, integer j656) { Bla_init168(this_391); Bla_j_537[this_391] = j_656; } function alloc_Bla110() returns integer { local integer this124 if (Bla_firstFree_147 == 0) { if (Bla_maxIndex_121 < 32768) { Bla_maxIndex_121 = (Bla_maxIndex_121 + 1); this_124 = Bla_maxIndex_121; Bla_typeId_935[this_124] = 1; } else { error154("Out of memory: Could not create Bla."); this_124 = 0; }; } else { Bla_firstFree_147 = (Bla_firstFree_147 - 1); this_124 = Bla_nextFree_193[Bla_firstFree_147]; Bla_typeId_935[this_124] = 1; }; return this_124; } function error154(string msg143) { $debugPrint813((msg_143 + (" " + #getStackTrace()))); } function dispatch_Bla_test_Bla_getI186(integer this168) returns integer { local integer test_Bla_getI_result652 if (Bla_typeId_935[this_168] == 0) { if (this_168 == 0) { error154("Nullpointer exception when calling Bla.getI"); } else { error154("Called Bla.getI on invalid object."); }; } else { }; test_Bla_getI_result_652 = Bla_getI122(this_168); return test_Bla_getI_result_652; } function dispatch_Bla_test_Bla_getJ321(integer this861) returns integer { local integer test_Bla_getJ_result144 if (Bla_typeId_935[this_861] == 0) { if (this_861 == 0) { error154("Nullpointer exception when calling Bla.getJ"); } else { error154("Called Bla.getJ on invalid object."); }; } else { }; test_Bla_getJ_result_144 = Bla_getJ132(this_861); return test_Bla_getJ_result_144; } function dispatch_Bla_test_Bla_getK126(integer this795) returns integer { local integer test_Bla_getK_result875 if (Bla_typeId_935[this_795] == 0) { if (this_795 == 0) { error154("Nullpointer exception when calling Bla.getK"); } else { error154("Called Bla.getK on invalid object."); }; } else { }; test_Bla_getK_result_875 = Bla_getK440(this_795); return test_Bla_getK_result_875; }