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

write_xaiger: Detect and error on combinatorial loops #4898

Merged
merged 1 commit into from
Mar 12, 2025

Conversation

Anhijkt
Copy link
Contributor

@Anhijkt Anhijkt commented Feb 13, 2025

This is an attempt to fix stack overflow in #4689 issue.

This is achieved by finding cycles in XAIG. The code was taken from aiger.cc.

This fix currently passes all yosys test, so I would suggest to test it with large combinational circuits.

@Anhijkt Anhijkt requested a review from eddiehung as a code owner February 13, 2025 23:42
Copy link
Member

@KrystalDelusion KrystalDelusion left a comment

Choose a reason for hiding this comment

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

If the same code is being used in both aiger.cc and xaiger.cc I wonder if it wouldn't be better for them to share the code instead of repeating it. But given how much of the code is already duplicated between the two I don't see any reason to block this PR on that basis.

@KrystalDelusion KrystalDelusion linked an issue Mar 9, 2025 that may be closed by this pull request
@KrystalDelusion KrystalDelusion added the merge-soon Merge: PR will be merged at the end of the next work day unless concerns are raised label Mar 9, 2025
@KrystalDelusion KrystalDelusion merged commit 65748b8 into YosysHQ:main Mar 12, 2025
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merge-soon Merge: PR will be merged at the end of the next work day unless concerns are raised
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Segfault in XAIGER
2 participants