A highly modified multi2sim with function acceleration