This is an interesting thought. Kinda analogous to when you e.g. change your C++ code and the new assembly code is generated.
If there was high-level intent (e.g. something like spec language) that was preserved and versioned, that might be possible I guess.