array C_nextFree516 integer C_firstFree314 integer C_maxIndex137 array C_typeId552 integer C_firstFree314 = 0 integer C_maxIndex137 = 0 function initGlobals127() { } function main652() { initGlobals127(); init_test203(); } function config157() { } function init_test203() { if (dispatch_C_test_C_A_getBar148(new_C329()) != 3) { testFail772("fail"); } else { }; testSuccess173(); } IS_NATIVE function testFail772(string msg533) { } IS_NATIVE function testSuccess173() { } function new_C329() returns integer { local integer this562 if (C_firstFree_314 == 0) { if (C_maxIndex_137 < 32768) { C_maxIndex_137 = (C_maxIndex_137 + 1); this_562 = C_maxIndex_137; C_typeId_552[this_562] = 1; } else { error581("Out of memory: Could not create C."); this_562 = 0; }; } else { C_firstFree_314 = (C_firstFree_314 - 1); this_562 = C_nextFree_516[C_firstFree_314]; C_typeId_552[this_562] = 1; }; return this_562; } function error581(string msg827) { $debugPrint143((msg_827 + (" " + #getStackTrace()))); } function dispatch_C_test_C_A_getBar148(integer this202) returns integer { if (C_typeId_552[this_202] == 0) { if (this_202 == 0) { error581("Nullpointer exception when calling C.getBar"); } else { error581("Called C.getBar on invalid object."); }; } else { }; if (C_typeId_552[this_202] == 0) { if (this_202 == 0) { error581("Nullpointer exception when calling C.getFoo"); } else { error581("Called C.getFoo on invalid object."); }; } else { }; return 3; }