ranges: be more flexible about divides
commit374e72a452a06bcdb2b5dc88d4dd5f9c88097cd1
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 30 Oct 2015 12:16:39 +0000 (30 15:16 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Fri, 30 Oct 2015 12:16:39 +0000 (30 15:16 +0300)
treef23d92082d18c3ced7ddc7fced2d2d8f24dbdab6
parent0f7ccb40bab3444c1bac5c51c6c6cf1417fc22ac
ranges: be more flexible about divides

I have some upcoming changes where this will matter more but it might
matter a little for user_data2 even now.  In the original code if you
had:

__smatch_absolute(0-u32max / 2);

Then it would say the result is still 0-u32max because we really don't
know anything about the left side of the divide.  In the new code it will
still say that but for user range lists it maybe says it it less.  Also for
the upcoming absolute range list code it will say less.

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