Repository navigation
perf(clone): pristine-to-pristine theory overrides as renamings - #1243
Merged
Merged
Conversation
strub
force-pushed
the
fix/clone-cleared-theory-alias
branch
from
November 24, 2026 16:57
cf175a1 to
50371bd
Compare
strub
force-pushed
the
perf/clone-pristine-override
branch
from
November 24, 2026 17:00
07a36ee to
3a46305
Compare
A clone that changes nothing (no override, rename, clear or include)
is a pristine copy of its source theory, and now records that source;
`print theory` shows it as a leading comment:
(* clone T as T1 *)
When a theory override replaces a pristine copy of a theory by another
pristine copy of the same theory, the two are indiscernible. The
replay used to substitute and compare every item of the replaced copy
before dropping it for an alias, which is costly when the copy is a
large theory. It now redirects the paths of the replaced copy to the
target instead.
Test in tests/clone-pristine-override.ec; the expected output of
tests/clone-alias-target.ec gains the source comment.
strub
force-pushed
the
perf/clone-pristine-override
branch
from
November 24, 2026 17:02
3a46305 to
01ab3cc
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A clone that changes nothing (no override, rename, clear or include)
is a pristine copy of its source theory, and now records that source;
print theoryshows it as a leading comment:When a theory override replaces a pristine copy of a theory by another
pristine copy of the same theory, the two are indiscernible. The
replay used to substitute and compare every item of the replaced copy
before dropping it for an alias, which is costly when the copy is a
large theory. It now redirects the paths of the replaced copy to the
target instead.
Test in tests/clone-pristine-override.ec; the expected output of
tests/clone-alias-target.ec gains the source comment.