Is there a tool which can be used to optimize the code and also to find which all part of code is dead code( like some invalid if condtion which may never happen )