Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
abc
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
abc
Commits
334911a1
Commit
334911a1
authored
Apr 28, 2012
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added supporting dual-output seq miters in &trim.
parent
d1e82047
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
src/aig/gia/giaDup.c
+13
-0
No files found.
src/aig/gia/giaDup.c
View file @
334911a1
...
...
@@ -944,6 +944,13 @@ Gia_Man_t * Gia_ManDupTrimmed( Gia_Man_t * p, int fTrimCis, int fTrimCos, int fD
pPo1
->
Value
=
Gia_ManAppendCo
(
pNew
,
Gia_ObjFanin0Copy
(
pPo1
)
);
}
Gia_ManStop
(
pNonDual
);
if
(
Gia_ManPoNum
(
pNew
)
==
0
)
// nothing - add dummy PO
{
pPo0
=
Gia_ManPo
(
p
,
0
);
pPo1
=
Gia_ManPo
(
p
,
1
);
pPo0
->
Value
=
Gia_ManAppendCo
(
pNew
,
Gia_ObjFanin0Copy
(
pPo0
)
);
pPo1
->
Value
=
Gia_ManAppendCo
(
pNew
,
Gia_ObjFanin0Copy
(
pPo1
)
);
}
Gia_ManForEachRi
(
p
,
pObj
,
i
)
pObj
->
Value
=
Gia_ManAppendCo
(
pNew
,
Gia_ObjFanin0Copy
(
pObj
)
);
Gia_ManSetRegNum
(
pNew
,
Gia_ManRegNum
(
p
)
);
...
...
@@ -956,6 +963,12 @@ Gia_Man_t * Gia_ManDupTrimmed( Gia_Man_t * p, int fTrimCis, int fTrimCos, int fD
}
else
{
// check if there are POs to be added
Gia_ManForEachPo
(
p
,
pObj
,
i
)
if
(
!
fTrimCos
||
!
Gia_ObjIsConst0
(
Gia_ObjFanin0
(
pObj
))
)
break
;
if
(
i
==
Gia_ManPoNum
(
p
)
)
// there is no POs - add dummy PO
Gia_ManAppendCo
(
pNew
,
0
);
Gia_ManForEachCo
(
p
,
pObj
,
i
)
if
(
!
fTrimCos
||
!
Gia_ObjIsConst0
(
Gia_ObjFanin0
(
pObj
))
||
Gia_ObjIsRi
(
p
,
pObj
)
)
pObj
->
Value
=
Gia_ManAppendCo
(
pNew
,
Gia_ObjFanin0Copy
(
pObj
)
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment