Function hashPredicate