I mean all the important pieces of her are still there, and I am sure her memory either has a backup or is still stored in the head somewhere. She isn't completely broken. So both in theory should work but I see the first as more likely.