Skip to content

Nft Product Bug #515

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

Merged
merged 2 commits into from
Apr 10, 2025
Merged

Nft Product Bug #515

merged 2 commits into from
Apr 10, 2025

Conversation

koniksedy
Copy link
Collaborator

This PR fixes a bug in nft::algorithms::product when using JumpMode::RepeatSymbol. It closes issue #512, where the bug was reported.

When using JumpMode::RepeatSymbol, the computation of the product waits in a source state that has a deeper target. This waiting in old states caused the creation of unexpected transitions from level n to level n.

To fix this, we now forbid, in the next iteration, transitions that have already been visited — no matter the fact that we may wait in the source state.

@koniksedy koniksedy requested review from jurajsic, Adda0 and Copilot April 9, 2025 16:51
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.

Comments suppressed due to low confidence (1)

src/nft/intersection.cc:210

  • Extra semicolon detected which might indicate a copy-paste error; please remove the redundant semicolon.
State product_source = worklist.back();;

Copy link
Collaborator

@Adda0 Adda0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks.

@Adda0 Adda0 merged commit 2326768 into devel Apr 10, 2025
15 checks passed
@Adda0 Adda0 deleted the nft-intersection_bug branch April 10, 2025 05:38
@Adda0 Adda0 linked an issue Apr 10, 2025 that may be closed by this pull request
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.

Bug in nft::Nft::compose()
3 participants