implied: use comparison information for implications
commit37195364252409a4ef666c4d498a3f09721528c8
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 9 Apr 2015 15:11:45 +0000 (9 18:11 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Thu, 9 Apr 2015 15:11:45 +0000 (9 18:11 +0300)
tree351792e570e8ee9618114f2783595ac074c13c5d
parenta18f04edda3c9cd5565884572b3622215ab330d0
implied: use comparison information for implications

I have wanted to add other sources of implication data for a while.
Comparison is nice for this because smatch_extra implications can't do
anything with it.

Smatch extra handles this:

if (foo == 5)

Comparison handles this:

if (foo == end)

Since they don't over lap that makes it simpler.

For now, I have just hard coded the comparison functions into
smatch_implied.c instead of adding hooks.  Eventually I will write proper
hooks for this and handle smatch_conditions.c stuff as well.

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