Skip to content

convert Tarjan algorithms to iterative structure #59143

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
Aug 1, 2025
Merged

Conversation

vtjnash
Copy link
Member

@vtjnash vtjnash commented Jul 29, 2025

This ensures that we do not use too much stack space.

Conversion implemented by Claude.

This ensures that we do not use too much stack space.

Conversion implemented by Claude.
return 0, minworld, maxworld

# Return results from the root call
return (root_result.child_cycle, root_result.result_minworld, root_result.result_maxworld)
Copy link
Member

Choose a reason for hiding this comment

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

won't this still be an empty VerifyMethodResultState(0, 0, 0) ? workspace.result_states[1] may have been overwritten but root_result doesn't change

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks for catching that. It used to be mutable and then I changed that without remembering I'd need to re-test. I merged, but happy for post-commit review too if anyone notices any other translations mistakes.

@vtjnash vtjnash merged commit 2eb2bf9 into master Aug 1, 2025
4 of 7 checks passed
@vtjnash vtjnash deleted the jn/tarjan-iterative branch August 1, 2025 16:35
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