IIRC they only grafted subroutines, not the whole program, so itsit's likely that the memory files were dumped.
asAs far as the doctor ever stating I"I got this subroutine or knowledge from the time I was going into cascade failure and they grafted another program onto meme"… no, he never says anything like that he.
He frequently mentions altering his own programming though.