implied: allow the known part to be a range list
commitf02c544c51a4b679dd8092528e8fb88c30716966
authorDan Carpenter <error27@gmail.com>
Thu, 13 May 2010 12:50:43 +0000 (13 14:50 +0200)
committerDan Carpenter <error27@gmail.com>
Thu, 13 May 2010 12:50:43 +0000 (13 14:50 +0200)
tree67fbd751d7cf9ac1e34e6de8969a654a1545bd09
parent162214c33bcfdc0c5293b5741629b0618d4824d2
implied: allow the known part to be a range list

So implications basically works like this:

if (x == 42) { ...

If x is a merged state then it potentially has implications.  So we take
the 42 and the pools from x and figure out where the condition is true.

But what about if, instead of 42 we have y?  In the current code if y is
a single value like this:

y = 42;
if (x == 42) { ...

The current code can handle that.  The thing it can't handle is if y is
a range like 4-10.

This patch tries to address that.

Signed-off-by: Dan Carpenter <error27@gmail.com>
smatch_extra.c
smatch_extra.h
smatch_implied.c