array A_nextFree104 integer A_firstFree202 integer A_maxIndex869 array A_typeId211 integer A_firstFree202 = 0 integer A_maxIndex869 = 0 function initGlobals107() { } function main771() { initGlobals107(); if (dispatch_A_test_A_foo767(new_B130()) == 8) { testSuccess504(); } else { }; } function config127() { } IS_NATIVE function testSuccess504() { } function new_B130() returns integer { local integer this785 if (A_firstFree_202 == 0) { if (A_maxIndex_869 < 32768) { A_maxIndex_869 = (A_maxIndex_869 + 1); this_785 = A_maxIndex_869; A_typeId_211[this_785] = 2; } else { error212("Out of memory: Could not create B."); this_785 = 0; }; } else { A_firstFree_202 = (A_firstFree_202 - 1); this_785 = A_nextFree_104[A_firstFree_202]; A_typeId_211[this_785] = 2; }; return this_785; } function error212(string msg180) { $debugPrint139((msg_180 + (" " + #getStackTrace()))); } function dispatch_A_test_A_foo767(integer this103) returns integer { if (A_typeId_211[this_103] == 0) { if (this_103 == 0) { error212("Nullpointer exception when calling A.foo"); } else { error212("Called A.foo on invalid object."); }; } else { }; if (A_typeId_211[this_103] <= 1) { this_103 = 7; } else { this_103 = 8; }; return this_103; }