Skip to content

Commit f513a96

Browse files
committed
Better fix to serial_upgrade (?)
1 parent 28cba40 commit f513a96

File tree

1 file changed

+11
-106
lines changed

1 file changed

+11
-106
lines changed

hugr-core/src/hugr/serialize/upgrade/testcases/hugr_with_named_op.json

Lines changed: 11 additions & 106 deletions
Original file line numberDiff line numberDiff line change
@@ -3,68 +3,8 @@
33
"nodes": [
44
{
55
"parent": 0,
6-
"op": "Module"
7-
},
8-
{
9-
"parent": 0,
10-
"op": "FuncDefn",
11-
"name": "main",
12-
"signature": {
13-
"params": [],
14-
"body": {
15-
"input": [
16-
{
17-
"t": "Sum",
18-
"s": "Unit",
19-
"size": 2
20-
},
21-
{
22-
"t": "Sum",
23-
"s": "Unit",
24-
"size": 2
25-
}
26-
],
27-
"output": [
28-
{
29-
"t": "Sum",
30-
"s": "Unit",
31-
"size": 2
32-
}
33-
]
34-
}
35-
},
36-
"link_name": "main"
37-
},
38-
{
39-
"parent": 1,
40-
"op": "Input",
41-
"types": [
42-
{
43-
"t": "Sum",
44-
"s": "Unit",
45-
"size": 2
46-
},
47-
{
48-
"t": "Sum",
49-
"s": "Unit",
50-
"size": 2
51-
}
52-
]
53-
},
54-
{
55-
"parent": 1,
56-
"op": "Output",
57-
"types": [
58-
{
59-
"t": "Sum",
60-
"s": "Unit",
61-
"size": 2
62-
}
63-
]
64-
},
65-
{
66-
"parent": 1,
676
"op": "DFG",
7+
"name": "main",
688
"signature": {
699
"input": [
7010
{
@@ -88,7 +28,7 @@
8828
}
8929
},
9030
{
91-
"parent": 4,
31+
"parent": 0,
9232
"op": "Input",
9333
"types": [
9434
{
@@ -104,7 +44,7 @@
10444
]
10545
},
10646
{
107-
"parent": 4,
47+
"parent": 0,
10848
"op": "Output",
10949
"types": [
11050
{
@@ -115,7 +55,7 @@
11555
]
11656
},
11757
{
118-
"parent": 4,
58+
"parent": 0,
11959
"op": "Extension",
12060
"extension": "logic",
12161
"name": "And",
@@ -147,27 +87,7 @@
14787
"edges": [
14888
[
14989
[
150-
2,
151-
0
152-
],
153-
[
154-
4,
155-
0
156-
]
157-
],
158-
[
159-
[
160-
2,
161-
1
162-
],
163-
[
164-
4,
165-
1
166-
]
167-
],
168-
[
169-
[
170-
4,
90+
1,
17191
0
17292
],
17393
[
@@ -177,45 +97,30 @@
17797
],
17898
[
17999
[
180-
5,
181-
0
182-
],
183-
[
184-
7,
185-
0
186-
]
187-
],
188-
[
189-
[
190-
5,
100+
1,
191101
1
192102
],
193103
[
194-
7,
104+
3,
195105
1
196106
]
197107
],
198108
[
199109
[
200-
7,
110+
3,
201111
0
202112
],
203113
[
204-
6,
114+
2,
205115
0
206116
]
207117
]
208118
],
209119
"metadata": [
210-
null,
211-
null,
212-
null,
213-
null,
214120
null,
215121
null,
216122
null,
217123
null
218124
],
219-
"encoder": "hugr-rs v0.15.4",
220-
"entrypoint": 4
221-
}
125+
"encoder": "hugr-rs v0.15.4"
126+
}

0 commit comments

Comments
 (0)