Patent law covers machines and processes. Copyright law covers particular expressions. If code is protected by the First Amendment, then it is clearly an expression. Yet the Patent Office issues patents on code, by which I mean that a particular code expression can be found in violation of a patent. AFAIK, there is nothing that is covered under both systems, which is a good thing; they are not terribly compatible!