Skip to content

Conversation

@acl-cqc
Copy link
Collaborator

@acl-cqc acl-cqc commented Dec 24, 2025

Uses the HugrGraph ADT added in #97.

splice replaces a HoleOp (ignoring the index) with a DFG-rooted Hugr of matching signature, i.e. inserts the DFG.
inlineDFG flattens the result, if desired. However, it'd be better to combine them - see comment.

My hope ATM is that we don't need to deal with order edges since these are only added for nonlocal edges, and so we can do splicing/inlining before adding order edges.

Tests are pretty basic (i.e. about the simplest possible case, with/without inline). These should be more thorough....

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