math: create handle_variable() instead of _get_implied_value()
commitbe4839ddd849b709b7a41d6c55e99d293b1d1901
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 20 May 2013 15:38:29 +0000 (20 18:38 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Mon, 20 May 2013 15:38:29 +0000 (20 18:38 +0300)
treefea200bb9a18d101f86bc481b250ac9e3d58404c
parent006265b6952b599ec6bf8ea3eea4600839936670
math: create handle_variable() instead of _get_implied_value()

The abstraction layers are wrong.  _get_implied_variable() is should only
handle variables instead of trying to duplicate parts of _get_value().
handle_variable() should handle const variables instead of doing that in
_get_value().  The other thing is that _get_implied_variable() calls
get_value() and it shouldn't do that.

Another thing to note is that this slightly changes how FUZZY_MIN is
handled.  The min values were always sort of bogus so I don't think this
is terrible.  I don't think this change will make a difference to the
scripts.

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