extra: take a short cut in param_limit_binops
commit3fd87b8d909ed9028162d882ca168271517e5b98
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 3 Feb 2021 11:23:54 +0000 (3 14:23 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Wed, 3 Feb 2021 11:23:54 +0000 (3 14:23 +0300)
tree586469faaaa1b34ba42168a894a49f879d719984
parent93dffacc2c220423eb935190dbe369111338a48a
extra: take a short cut in param_limit_binops

The db_param_limit_binops() function tries to say that if we know that
the $1 parameter is 0-9 range and we are passing "frob(i * 3);" then that
means "i is 0-3".

If the param limits "$->foo" then that's not useful for this so we can
just return early.  Hopefully it's a small speed up.

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