Skip to content

Conversation

@weinbe58
Copy link
Member

Currently there are some cases where the assert assert isinstance(lhs_type := lhs.type, types.Generic) is False because Bottom is a subset of IListType in the type lattice. this PR adds some logic to make sure any Bottom types are skipped in this rewrite rule.

@github-actions
Copy link
Contributor

github-actions bot commented Nov 28, 2025

☂️ Python Coverage

current status: ✅

Overall Coverage

Lines Covered Coverage Threshold Status
11746 10474 89% 0% 🟢

New Files

No new covered files...

Modified Files

File Coverage Status
src/kirin/dialects/ilist/rewrite/flatten_add.py 100% 🟢
TOTAL 100% 🟢

updated for commit: 96c5500 by action🐍

@github-actions
Copy link
Contributor

github-actions bot commented Nov 28, 2025

PR Preview Action v1.6.3

🚀 View preview at
https://QuEraComputing.github.io/kirin/pr-preview/pr-590/

Built to branch gh-pages at 2025-11-28 14:31 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

@codecov
Copy link

codecov bot commented Nov 28, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@weinbe58 weinbe58 requested a review from Roger-luo November 28, 2025 14:31
@weinbe58 weinbe58 changed the title Fix guard in ilist.FlattenAdd to give-up on BottomType inputs. Fix guard in ilist.FlattenAdd to give up on BottomType inputs. Nov 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants