I doubt comments or variable names are enough. If you compile your new kennel, the comments and variable names are gone. Compiling it shouldn't cause you to lose copyright.
The question though is whether or not you gain copyright from changing the comments & variable names after it's all been AI-generated. Under the current Patent Law model codebases are either owned or not owned by a particular individual.
We could go one step further and say, instead of changing a variable name or a comment, we alter by hand a for loop to use a recursive function call instead. Do I own the entire OS Kernel now, or does Patent Law have a framework that specifies I own that particular function, but not the entire kernel?
We could go one step further and say, instead of changing a variable name or a comment, we alter by hand a for loop to use a recursive function call instead. Do I own the entire OS Kernel now, or does Patent Law have a framework that specifies I own that particular function, but not the entire kernel?