chunk: improve expr_to_chunk_sym_vsl()
commit32c4e8c1d0ec7a9b3e5c1c4c805e060dc2d05165
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 14 Jul 2015 11:42:02 +0000 (14 14:42 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Tue, 14 Jul 2015 11:42:02 +0000 (14 14:42 +0300)
treec7823278f6694ae031ce9eb0114358d135d9b80d
parent131bb60a2bde3b373906701c2685f3dc01871805
chunk: improve expr_to_chunk_sym_vsl()

I the old system expr_to_chunk_sym_vsl() could handle "if (foo + bar)"
when "foo" and "bar" were simple variables.  Now it can handle a wide
range of stuff which involves up to two variables...

There are two sort of disadvantages, it ignores global variables since
those could be modified in a different thread.  Also in the old system
it reordered expressions so that it knew that "foo + bar" and "bar + foo"
were equivalent and now it doesn't do that.  Don't write messy code is
the rule.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
smatch_helper.c
validation/sm_chunk1.c