function_hooks, struct_assignment, extra, db: don't record useless modifications
commit3209d0c3957aeb46f067e77514ae3913a5e4ecea
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 23 Jan 2014 17:29:09 +0000 (23 20:29 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Thu, 23 Jan 2014 17:29:09 +0000 (23 20:29 +0300)
treeb6ae284ad550ce773436650f40cb3923a57ac0f7
parente77666e0961775f7a25a8e4ee4541480a9613fc8
function_hooks, struct_assignment, extra, db: don't record useless modifications

If we don't know anything about a variable and it is set to something else
which we don't know anything about, then that's not worth recording.  We
might as well not even take any notice that it changed.

The problem here is that the struct_assignment changes made the database
too big.  This change is a way of filtering out useless information.

I worry about this change that it complicates the code but at the same time
I don't see another option because the database was becoming unusable.

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