rectified useless function detector