array C_nextFree200 integer C_firstFree123 integer C_maxIndex114 array C_typeId176 array SimpleFunc_nextFree401 integer SimpleFunc_firstFree122 integer SimpleFunc_maxIndex170 array SimpleFunc_typeId934 array C_y471 array this153 integer C_firstFree123 = 0 integer C_maxIndex114 = 0 integer SimpleFunc_firstFree122 = 0 integer SimpleFunc_maxIndex170 = 0 function initGlobals250() { } function main201() { local integer c211 initGlobals250(); new_C914(); c_211 = new_C914(); C_y_471[c_211] = 4; if (C_typeId_176[c_211] == 0) { if (c_211 == 0) { error119("Nullpointer exception when calling C.foo"); } else { error119("Called C.foo on invalid object."); }; } else { }; C_foo964(c_211); } function config356() { } IS_NATIVE function testSuccess132() { } function C_foo964(integer this649) { local integer this913 if (SimpleFunc_firstFree_122 == 0) { if (SimpleFunc_maxIndex_170 < 32768) { SimpleFunc_maxIndex_170 = (SimpleFunc_maxIndex_170 + 1); this_913 = SimpleFunc_maxIndex_170; SimpleFunc_typeId_934[this_913] = 3; } else { error119("Out of memory: Could not create SimpleFunc_bar_C_test."); this_913 = 0; }; } else { SimpleFunc_firstFree_122 = (SimpleFunc_firstFree_122 - 1); this_913 = SimpleFunc_nextFree_401[SimpleFunc_firstFree_122]; SimpleFunc_typeId_934[this_913] = 3; }; this_153[this_913] = this_649; if (C_typeId_176[this_649] == 0) { if (this_649 == 0) { error119("Nullpointer exception when calling C.bar"); } else { error119("Called C.bar on invalid object."); }; } else { }; if (dispatch_SimpleFunc_test_SimpleFunc_apply394(this_913) == 7) { testSuccess132(); } else { }; } function new_C914() returns integer { local integer this196 if (C_firstFree_123 == 0) { if (C_maxIndex_114 < 32768) { C_maxIndex_114 = (C_maxIndex_114 + 1); this_196 = C_maxIndex_114; C_typeId_176[this_196] = 1; } else { error119("Out of memory: Could not create C."); this_196 = 0; }; } else { C_firstFree_123 = (C_firstFree_123 - 1); this_196 = C_nextFree_200[C_firstFree_123]; C_typeId_176[this_196] = 1; }; return this_196; } function error119(string msg170) { $debugPrint295((msg_170 + (" " + #getStackTrace()))); } function dispatch_SimpleFunc_test_SimpleFunc_apply394(integer this768) returns integer { local integer this265 if (SimpleFunc_typeId_934[this_768] == 0) { if (this_768 == 0) { error119("Nullpointer exception when calling SimpleFunc.apply"); } else { error119("Called SimpleFunc.apply on invalid object."); }; } else { }; this_265 = this_153[this_768]; if (C_typeId_176[this_265] == 0) { if (this_265 == 0) { error119("Nullpointer exception when calling C.x"); } else { error119("Called C.x on invalid object."); }; } else { }; return (3 + C_y_471[this_153[this_768]]); }