How many functionally inequivalent C programs are there?
Surely this is undecidable?
Surely this is undecidable?
As to the number of a given length: if, for every possible output, we pick the shortest program producing it as a representative (utterly reasonable, as we know all programs to be optimal :-)), one should study how to sort outputs by their Kolmogorov complexity.
Definitely. I can give a lower bound right off the top of my head: twelve. There are at least twelve functionally distinct C programs.
You probably want your bound to be a function of the length of the program. Because for programs of length 1, there are not 12 distinct C programs.