You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The optags for basic blocks where defined as
```mermaid
graph TD
classDef transparent fill:#0000,stroke:#0000
a[...]:::transparent-->DataflowParent
b[...]:::transparent-->ControlFlowChild
DataflowParent --> BasicBlock
ControlFlowChild --> BasicBlock
BasicBlock --> BasicBlockExit
```
notice that `BasicBlockExit` was a descendant from `DataflowParent`.
This caused errors on code that checked for the tag, such as the
[`force_order`
pass](https://github.com/CQCL/hugr/blob/e485a23e0cb73b0070e5d6f3374f6de16f545d04/hugr-passes/src/force_order.rs#L58-L59).
This PR changes the hierarchy to
```mermaid
graph TD
classDef transparent fill:#0000,stroke:#0000
a[...]:::transparent-->DataflowParent
b[...]:::transparent-->ControlFlowChild
DataflowParent --> DataflowBlock
ControlFlowChild --> BasicBlockExit
ControlFlowChild --> DataflowBlock
```
Closes#1408
BREAKING CHANGE: Removed `OpTag::BasicBlock`, replaced with
`OpTag::DataflowBlock` and `OpTag::ControlFlowChild`
---------
Co-authored-by: Seyon Sivarajah <[email protected]>
This is causing a panic in the
force_order
passThe text was updated successfully, but these errors were encountered: