mtag/math/extra: start using mtags as pointers
commit6d14254f48896759df0afefc37aa0fbbcebffa57
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 26 Jul 2018 10:38:47 +0000 (26 13:38 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Thu, 26 Jul 2018 10:38:47 +0000 (26 13:38 +0300)
tree5f1e89a975d5f811e2dd628d90523989c048c6c8
parentae6323179a219b05fd47377dac9c791087dfad10
mtag/math/extra: start using mtags as pointers

Say you have code like:

struct foo *p = some_array;

Then really we know that some_array is non-NULL, but we don't know where
the linker will put it.  In other words we don't know the actual address.
But let's use mtags and *pretend* that we do know where it's going to be.

So now in smatch extra will record that p is a specific value instead of
just saying that it's non-NULL.

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