This struck out at me: > There are objective measures of code similarity that can be quoted, like the edit distance between abstract syntax trees ... If this became the primary legal metric, then programmers who stole code would change the code so that functions achieved the same output with practically no AST similarity. That is, they could maximize functional similarity while minimzing code similarity. This would b…
Also Copyright protects the expression of an idea, not the idea itself (that would be patent). You don't have to go through this much trouble to write code that achieves the same output.