if you modify enough of the output as to make it unrecognizable as the machine output -- that's a new work created by a human. i.e. you don't have to change every line.
same thing applies to sampling in music. if i change enough of a sample as to make it unrecognizable, then i don't need to worry about registering/licensing the sample.