Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix OrderingComparator for non-specialized orderings #644

Merged

Conversation

mezpusz
Copy link
Contributor

@mezpusz mezpusz commented Jan 15, 2025

As @joe-hauns pointed out, calling OrderingComparator for a term ordering that does not specialize this class or compareUnidirectional results in some assertion violations. This PR attempts at rooting these out.

…etBranch; set empty TermPartialOrdering in default implementation of OrderingComparator::processTermNode
@quickbeam123
Copy link
Collaborator

Do you want me, @mezpusz , to run any checks?

(The change itself is below my resolution in this part of the codebase ;))

@mezpusz
Copy link
Contributor Author

mezpusz commented Jan 15, 2025

Do you want me, @mezpusz , to run any checks?

I will run some debug checks, I don't think performance tests are needed.

@MichaelRawson MichaelRawson merged commit 39971a6 into master Jan 15, 2025
1 check passed
@MichaelRawson MichaelRawson deleted the fix-ordering-comparator-for-non-specialized-orderings branch January 15, 2025 16:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants