Files
revng-revng/tests/unit
Pietro Fezzardi 677155d436 TANP: fix off-by-one in wrapping ICmp reduction
This bug caused the expression x + (-2) < -3 to be rewritten as
(x > 2) || (x < -1), instead of (x > 2) && (x < -1).

We had tests for a very similar case, but this specific example was
triggered by having the two constant terms in the inequality with a
difference of only one.

This commit rewrites and unifies the logic for handling inequalities,
and adapts the test for checking this specific additional corner case.
2024-06-04 00:10:27 +02:00
..
2024-02-29 17:03:36 +01:00
2024-02-29 17:03:36 +01:00
2024-02-29 17:03:36 +01:00
2024-02-29 17:03:36 +01:00