implied: introduce impossible_assumption()
commit1050a135e82dc57f902b3bc14b956073f8630002
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 7 Mar 2018 09:52:45 +0000 (7 12:52 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Wed, 7 Mar 2018 09:52:45 +0000 (7 12:52 +0300)
tree5fd50fbcee42242a370f54ef3ee6e5b7db6eacbb
parent8019ae6a3e54ffdf091203dac0e12688936e1b98
implied: introduce impossible_assumption()

This is to deal with the situation where you have an impossible path were
foo == 42, but you merge it with a possible path where foo == 41.  Now say
you have read from "array[foo]" and 41 is valid and 42 is invalid.  Then
it's useful to be able to say is "foo == 42" really possible?

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