array SimpleFunc_nextFree728 integer SimpleFunc_firstFree207 integer SimpleFunc_maxIndex146 array SimpleFunc_typeId552 array y199 integer SimpleFunc_firstFree207 = 0 integer SimpleFunc_maxIndex146 = 0 function initGlobals712() { } function main323() { initGlobals712(); init_test145(); } function config100() { } function init_test145() { local integer clVar131 clVar_131 = alloc_SimpleFunc_test642(); y_199[clVar_131] = 4; if (dispatch_SimpleFunc_test_SimpleFunc_apply218(clVar_131, 3) == 7) { testSuccess212(); } else { }; } IS_NATIVE function testSuccess212() { } function apply_test583(integer this592, integer x163) returns integer { return (y_199[this_592] + x_163); } function alloc_SimpleFunc_test642() returns integer { local integer this111 if (SimpleFunc_firstFree_207 == 0) { if (SimpleFunc_maxIndex_146 < 32768) { SimpleFunc_maxIndex_146 = (SimpleFunc_maxIndex_146 + 1); this_111 = SimpleFunc_maxIndex_146; SimpleFunc_typeId_552[this_111] = 2; } else { error138("Out of memory: Could not create SimpleFunc_test."); this_111 = 0; }; } else { SimpleFunc_firstFree_207 = (SimpleFunc_firstFree_207 - 1); this_111 = SimpleFunc_nextFree_728[SimpleFunc_firstFree_207]; SimpleFunc_typeId_552[this_111] = 2; }; return this_111; } function error138(string msg103) { $debugPrint118((msg_103 + (" " + #getStackTrace()))); } function dispatch_SimpleFunc_test_SimpleFunc_apply218(integer this995, integer x427) returns integer { if (SimpleFunc_typeId_552[this_995] == 0) { if (this_995 == 0) { error138("Nullpointer exception when calling SimpleFunc.apply"); } else { error138("Called SimpleFunc.apply on invalid object."); }; } else { }; return apply_test583(this_995, x_427); }