Prunes inf and -inf from constraint list.