Abstract:For solving the problem that the current clone and related bug detection tools can not analyze largescale code and detect modified code clones,a model of clone and identifier inconsistency bugs detection based on the improved model of clone detection via sequential pattern mining is proposed. This model improves the existing submodel of identifier forgotten renaming bug detection,and introduces a new submodel of identifier mistaken renaming bug detection. Identifier renaming inconsistency bugs are detected by computing identifier unchanged ratio ( UnchangedRatio) . Experiment results indicate that this model can detect clone related bugs on the basis of code clone detection,reduce false-negative rate and false-positive rate,and is effective in detecting two kinds of identifier inconsistency bugs.