stored_conditions, implied: use implications of previous stored conditions
commit312376701c90361db2fe6a495ed079301f0006ec
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 10 Aug 2015 22:09:56 +0000 (11 01:09 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Mon, 10 Aug 2015 22:09:56 +0000 (11 01:09 +0300)
tree246a56ba3c2efa64d7c751aa5bce4b0f3e59a116
parente3bde024cd1bff0b3b336898c2f59c9749e7ca71
stored_conditions, implied: use implications of previous stored conditions

This only looks at binop conditions, because presumably smatch_extra.c and
smatch_comparison.c are handling the others fine.  In the future, I
imagine that we will try to use all three combined implications at the
same time, but I will have to test that a bit.  But basically this
parses code like:

a = 1;
if (foo & 12)
a = 2;

if (foo & 12)
__smatch_implied(a);

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
smatch.h
smatch_implied.c
smatch_stored_conditions.c
validation/sm_implied13.c [new file with mode: 0644]