stored_conditions: store comparisons and not logicals
commitd57a5edbec14a9e9e2fdb320c0a4571807e908ca
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 27 Feb 2014 09:33:12 +0000 (27 12:33 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Thu, 27 Feb 2014 09:33:12 +0000 (27 12:33 +0300)
tree1ae5d9b130817914dbe70776f59b20d1eb9070dc
parent8e659071efc1bd7ed51bf2529eaba819a364de2b
stored_conditions: store comparisons and not logicals

I think I wanted to store comparisons all along but typed EXPR_LOGICAL
instead.  This can never be an EXPR_LOGICAL because those are handled in
the background (smatch_condition.c).

I had to modify store_all_links() and I also moved it closer to
get_complication_score() because those functions are closely related.  If
you update one, then you have to update the other.

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