ConstraintNotEqual::rewrite() revisited and a failure case in the solver::rewrite() method has been added