array: store possible array values for simple arrays
commit850ca49f882c4d8720c67e7ff9b10d1d390f69b5
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 10 Sep 2018 12:13:28 +0000 (10 15:13 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Mon, 10 Sep 2018 12:13:28 +0000 (10 15:13 +0300)
tree87a52a7a69f2929dadd71d784f9e90af092deed2
parentf53655064dae6570372d3641f4ca914a4ed16acb
array: store possible array values for simple arrays

The concept is simple enough.  We want smatch to be able to handle
__smatch_implied(array[idx]);.  This is a very limited first implementation
because it only handles file scoped arrays.  I will add more later.

Also the table in the DB is called "sink_info" because I hope that it will
eventually be more general purpose than just handling arrays.  Hopefully,
it will hand lists as well later.  Where we store information about what
we're putting into a list and what we pull out from the list.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Makefile
check_list.h
smatch.h
smatch_array_values.c [new file with mode: 0644]
smatch_data/db/build_early_index.sh
smatch_data/db/sink_info.schema [new file with mode: 0644]
smatch_db.c
smatch_math.c