comparison: fix parsing of impossible compare_limits
commiteb8d9916a1694f7eda7d0f93393500542d6506ea
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 1 Sep 2021 14:02:33 +0000 (1 17:02 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Wed, 1 Sep 2021 14:02:33 +0000 (1 17:02 +0300)
tree8e46248b57c76616744fb4705e5498b7ca71d99c
parente2c5ef7ccd8511d2bffa6eff2a4eef00684de72a
comparison: fix parsing of impossible compare_limits

This code is very important and it was quite bad.  It didn't take the
order into consideration so it missed 50% of the comparisons.  Which is
good because the test for impossible comparisons was wrong.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
smatch_comparison.c