Only clone the states if it is a switch statement.
commit97efdbdd2e34fbec36353a3379f48b10788f706d
authorDan Carpenter <error27@gmail.com>
Sun, 10 May 2009 06:53:18 +0000 (10 09:53 +0300)
committerDan Carpenter <error27@gmail.com>
Sun, 10 May 2009 06:53:18 +0000 (10 09:53 +0300)
treed404bd0960adfd55b5419ef743207b1248d6d413
parenta14da1cc761e3fab26df4db99769d21d32104836
Only clone the states if it is a switch statement.

Before we used to clone all the states for every case statement.  Then
to save memory we delayed the cloning so we could clone only the
modified states.  In the process we started cloning states for breaks
inside all loops which was not needed.

Signed-off-by: Dan Carpenter <error27@gmail.com>
smatch.h
smatch_flow.c
smatch_states.c