Skip to content
Discussion options

You must be logged in to vote

This is because both sameBoundaries(lbm:dp1, lbm:dp2) and sameBoundaries(lbm:dp1, lbm:dp2) are matches for the rule that derives new lanes. See the Playground I linked above for one of the possible ways to avoid this (you could also move the ordering check to the lane rule, e.g.:

lane(!lane, ?dp1, ?dp2) :- sameBoundaries(?dp1, ?dp2), COMPARE(STR(?dp1), STR(?dp2)) < 0 .

Replies: 5 comments 6 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
5 replies
@mmarx
Comment options

mmarx Aug 5, 2025
Maintainer

@adel-ayara
Comment options

@mmarx
Comment options

mmarx Aug 5, 2025
Maintainer

Answer selected by adel-ayara
@adel-ayara
Comment options

@mmarx
Comment options

mmarx Aug 5, 2025
Maintainer

Comment options

You must be logged in to vote
1 reply
@mmarx
Comment options

mmarx Aug 5, 2025
Maintainer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants