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 potentially looping predicate_id. #797

Merged
merged 2 commits into from
Jul 24, 2024

Conversation

maximebuyse
Copy link
Contributor

@maximebuyse maximebuyse commented Jul 24, 2024

This PR eliminates field predicate_id to compute it after impl_expr resolution instead.
A call to predicate_id method in path_to was making some looping behavior in some specific conditions. This fixes it by keeping the predicate_id computation for later.
This bug appeared in #730 with an attempt to resolve using breadth-first instead of depth-first search (but it wasn't reproduced with the current resolution).
We believe that breadth-first changes the order of candidate paths thus triggering the bug with a path that is not seen in depth-first.

@maximebuyse maximebuyse requested a review from W95Psp July 24, 2024 07:24
@maximebuyse maximebuyse force-pushed the fix-potentially-looping-predicate-id branch from 9b99f23 to 3c4d705 Compare July 24, 2024 07:30
@maximebuyse maximebuyse force-pushed the fix-potentially-looping-predicate-id branch from 645cb5c to 94124d2 Compare July 24, 2024 09:56
Merged via the queue into main with commit 3ddbf4b Jul 24, 2024
13 checks passed
@W95Psp W95Psp deleted the fix-potentially-looping-predicate-id branch July 24, 2024 13:24
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.

2 participants