-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Package::from_hugr
should inserts DFG directly as a funcdefn in a m…
…odule
- Loading branch information
Showing
5 changed files
with
112 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
hugr-core/src/snapshots/hugr_core__package__test__cfg.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
--- | ||
source: hugr-core/src/package.rs | ||
expression: hugr.mermaid_string() | ||
--- | ||
graph LR | ||
subgraph 0 ["(0) Module"] | ||
direction LR | ||
subgraph 1 ["(1) FuncDefn: #quot;main#quot;"] | ||
direction LR | ||
2["(2) Input"] | ||
3["(3) Output"] | ||
subgraph 4 ["(4) CFG"] | ||
direction LR | ||
subgraph 6 ["(6) DataflowBlock"] | ||
direction LR | ||
7["(7) Input"] | ||
8["(8) Output"] | ||
9["(9) Tag"] | ||
7--"0:0<br>usize"-->9 | ||
9--"0:0<br>[usize]+[usize]"-->8 | ||
end | ||
5["(5) ExitBlock"] | ||
subgraph 10 ["(10) DataflowBlock"] | ||
direction LR | ||
12["(12) Input"] | ||
13["(13) Output"] | ||
14["(14) const:seq:{}"] | ||
15["(15) LoadConstant"] | ||
12--"0:1<br>usize"-->13 | ||
14--"0:0<br>[]"-->15 | ||
15--"0:0<br>[]"-->13 | ||
end | ||
6-."0:0".->10 | ||
6-."1:0".->5 | ||
10-."0:0".->5 | ||
end | ||
2--"0:0<br>usize"-->4 | ||
4--"0:0<br>usize"-->3 | ||
end | ||
end |
14 changes: 14 additions & 0 deletions
14
hugr-core/src/snapshots/hugr_core__package__test__dfg.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
source: hugr-core/src/package.rs | ||
expression: hugr.mermaid_string() | ||
--- | ||
graph LR | ||
subgraph 3 ["(3) Module"] | ||
direction LR | ||
subgraph 0 ["(0) FuncDefn: #quot;main#quot;"] | ||
direction LR | ||
1["(1) Input"] | ||
2["(2) Output"] | ||
1--"0:0<br>[]+[]"-->2 | ||
end | ||
end |
14 changes: 14 additions & 0 deletions
14
hugr-core/src/snapshots/hugr_core__package__test__funcdef.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
source: hugr-core/src/package.rs | ||
expression: hugr.mermaid_string() | ||
--- | ||
graph LR | ||
subgraph 3 ["(3) Module"] | ||
direction LR | ||
subgraph 0 ["(0) FuncDefn: #quot;test#quot;"] | ||
direction LR | ||
1["(1) Input"] | ||
2["(2) Output"] | ||
1--"0:0<br>[]+[]"-->2 | ||
end | ||
end |
9 changes: 9 additions & 0 deletions
9
hugr-core/src/snapshots/hugr_core__package__test__module.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
source: hugr-core/src/package.rs | ||
expression: hugr.mermaid_string() | ||
--- | ||
graph LR | ||
subgraph 0 ["(0) Module"] | ||
direction LR | ||
1["(1) FuncDecl: #quot;test#quot;"] | ||
end |