legacy code analysis