I haven't heard about companies decompiling programs of other companies
and using the code to put in their own programs. I think it happens for
small pieces of code, but not for whole applications. If they do that,
it would be obvious that it is (almost) the same, and you could sue them.