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

Fixes possible infinite loop in RE #2128

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

Conversation

msoeken
Copy link
Member

@msoeken msoeken commented Jan 27, 2025

In the rare case that a factory runs longer than the algorithm, we adjust the number of cycles. The heuristic we use is to take the maximum number of cycles for the current code parameter + 1. However, for some code definitions this may end in an infite loop, which we break by ensuring that the number of cycles is always increasing.

@idavis
Copy link
Collaborator

idavis commented Jan 27, 2025

@msoeken Should there be a test to ensure this isn't hit again?

Copy link
Member

@ivanbasov ivanbasov left a comment

Choose a reason for hiding this comment

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

As @idavis mentioned, a unit test would be helpful.

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.

4 participants