1. A computer-implemented method for determining a common sequence of ordered statements, comprising: creating a global list comprising a first set of links generated from a first sequence of statements of a first script, wherein a link in the first set of links indicates an ordered mapping between a source statement and a destination statement selected from the first sequence of statements, and an ordered mapping indicates that a source statement is executed before a destination statement is executed; adding, to the global list, a second set of links generated from a second sequence of statements of a second script, wherein a link in the second set of links indicates an ordered mapping between a source statement and a destination statement selected from the second sequence of statements; determining, from the global list, two or more links having equivalent source statements and equivalent destination statements; adding at least one of the two or more links to a first group of common sequences; and storing the first group of common sequences in a database.