Handle switch statements
commite1729dd11e7d8b9862575698b63881a8e63aa7f4
authorDan Carpenter <error27@gmail.com>
Thu, 23 Apr 2009 14:14:23 +0000 (23 17:14 +0300)
committerDan Carpenter <error27@gmail.com>
Thu, 23 Apr 2009 14:14:23 +0000 (23 17:14 +0300)
tree8bcf291d5b8c1ecb82b492cfd5bb71a46554e463
parenta0d030523dd6b2595863bcbb9fce51e909651883
Handle switch statements

switch (x) { case 5:
Obviously that means we can set the implications for x == 5 and set x = 5
in SMATCH_EXTRA etc.

This patch will cause more "info: ignoring unreached code" messages when
there are declarations at the beginning of a switch statement.

Signed-off-by: Dan Carpenter <error27@gmail.com>
smatch.h
smatch_flow.c
smatch_implied.c
smatch_states.c
validation/sm_switch.c [new file with mode: 0644]