math: fix a get_value() bug
commitc1399f2bf1d6fb006a8ae2b4724bacc221cff1d4
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 20 Apr 2018 12:43:35 +0000 (20 15:43 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Fri, 20 Apr 2018 12:43:35 +0000 (20 15:43 +0300)
treeeb12acacd8c7e199d3568ba15d15c5b65594b8f0
parent4415972f8716cbe31a2fd3cd889aa66c58093053
math: fix a get_value() bug

The problem is that get_value() is supposed to get literals and constants.
But say we have a custom_handler set, like get_absolute_value() or
get_user_rl() then it does that instead.  And then to make things worse,
the answer gets cached so now everyone gets the wrong value when they call
get_value().

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