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 crash due to sorting with non-transitive order #277

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Ordoviz
Copy link

@Ordoviz Ordoviz commented Dec 23, 2024

If given a certain difficult UNSAT instance as input, splr reliably crashes with "user-provided comparison function does not correctly implement a total order" after 20 minutes because comparing floats with epsilon tolerance is not transitive. To see this, consider the relation $\approx$ defined as $x \approx y \iff |x-y| \le 1$. Then $2 \approx 1$ and $1 \approx 0$ but not $2 \approx 0$.

If given a certain difficult UNSAT instance as input, splr reliably
crashes with "user-provided comparison function does not correctly
implement a total order" after 20 minutes because comparing floats
with epsilon tolerance is not transitive.
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.

1 participant