Improve handling of for loops.
commit2775cbb4bd14b80e9af4c6503432ba32d9d439c1
authorDan Carpenter <error27@gmail.com>
Mon, 13 Apr 2009 18:18:00 +0000 (13 21:18 +0300)
committerDan Carpenter <error27@gmail.com>
Mon, 13 Apr 2009 18:18:00 +0000 (13 21:18 +0300)
tree38d7319c5a81a1074e18816dc3fa2b13c3f01052
parentd6e0b8241bffae4e38519f68702cd728659aa96e
Improve handling of for loops.

If we have a loop like this:
for (i = 0; i < 10 ; i++) { ...
So long as no one changes i inside the loop or breaks, then i will be 10
at the end.  Before smatch used to say that it would be between 10 and max.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Makefile
smatch_extra.c
smatch_extra.h
smatch_extra_helper.c
smatch_flow.c
validation/sm_range1.c [new file with mode: 0644]