create get_implied_range_list()
commitce538a7b50bad89cf04a9b7ddadb9468f3a91981
authorDan Carpenter <error27@gmail.com>
Sat, 2 Jan 2010 09:13:47 +0000 (2 11:13 +0200)
committerDan Carpenter <error27@gmail.com>
Sat, 2 Jan 2010 09:13:47 +0000 (2 11:13 +0200)
treee92b6b9e6df7570b072b8fd40c4cd087bc160c93
parentb8404f18305cf05eb2abf4cfc5187949434b4dcb
create get_implied_range_list()

The original code in smatch_extra handled assignments by
basically saying:
set_state_expr(my_id, left, get_implied_value(right));

The problem is that if right was a range instead of value it
defaulted to undefined.  The new code handles this correctly.

The other thing is the new code handles "a = x % FOO;"

Signed-off-by: Dan Carpenter <error27@gmail.com>
smatch_extra.c
smatch_extra.h