array C_nextFree210 integer C_firstFree372 integer C_maxIndex131 array C_typeId850 integer C_firstFree372 = 0 integer C_maxIndex131 = 0 function initGlobals986() { } function main120() { initGlobals986(); init_test712(); } function config213() { } function init_test712() { if (dispatch_C_test_C_A_getBar104(new_C195()) != 3) { testFail430("fail"); } else { }; testSuccess139(); } IS_NATIVE function testFail430(string msg197) { } IS_NATIVE function testSuccess139() { } function new_C195() returns integer { local integer this316 if (C_firstFree_372 == 0) { if (C_maxIndex_131 < 32768) { C_maxIndex_131 = (C_maxIndex_131 + 1); this_316 = C_maxIndex_131; C_typeId_850[this_316] = 1; } else { error143("Out of memory: Could not create C."); this_316 = 0; }; } else { C_firstFree_372 = (C_firstFree_372 - 1); this_316 = C_nextFree_210[C_firstFree_372]; C_typeId_850[this_316] = 1; }; return this_316; } function error143(string msg778) { $debugPrint142((msg_778 + (" " + #getStackTrace()))); } function dispatch_C_test_C_A_getBar104(integer this130) returns integer { if (C_typeId_850[this_130] == 0) { if (this_130 == 0) { error143("Nullpointer exception when calling C.getBar"); } else { error143("Called C.getBar on invalid object."); }; } else { }; if (C_typeId_850[this_130] == 0) { if (this_130 == 0) { error143("Nullpointer exception when calling C.getFoo"); } else { error143("Called C.getFoo on invalid object."); }; } else { }; return 3; }