This patch adds missing checks in the function `test_overflow_in_negate_constraint`. Related commit: 0a0181dc