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
eb2764b5
Commit
eb2764b5
authored
May 01, 2019
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Experiment with frontier cut computation.
parent
d07608c0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
src/aig/gia/giaUtil.c
+15
-0
No files found.
src/aig/gia/giaUtil.c
View file @
eb2764b5
...
@@ -771,6 +771,20 @@ int * Gia_ManCreateMuxRefs( Gia_Man_t * p )
...
@@ -771,6 +771,20 @@ int * Gia_ManCreateMuxRefs( Gia_Man_t * p )
SeeAlso []
SeeAlso []
***********************************************************************/
***********************************************************************/
Vec_Int_t
*
Gia_ManBfsForCrossCut
(
Gia_Man_t
*
p
)
{
Vec_Int_t
*
vNodes
=
Vec_IntAlloc
(
Gia_ManObjNum
(
p
)
);
Vec_Vec_t
*
vLevels
=
Gia_ManLevelize
(
p
);
Vec_Ptr_t
*
vObjs
;
Gia_Obj_t
*
pObj
;
int
i
,
k
;
Vec_VecForEachLevel
(
vLevels
,
vObjs
,
i
)
Vec_PtrForEachEntry
(
Gia_Obj_t
*
,
vObjs
,
pObj
,
k
)
Vec_IntPush
(
vNodes
,
Gia_ObjId
(
p
,
pObj
)
);
Vec_VecFree
(
vLevels
);
return
vNodes
;
}
void
Gia_ManDfsForCrossCut_rec
(
Gia_Man_t
*
p
,
Gia_Obj_t
*
pObj
,
Vec_Int_t
*
vNodes
)
void
Gia_ManDfsForCrossCut_rec
(
Gia_Man_t
*
p
,
Gia_Obj_t
*
pObj
,
Vec_Int_t
*
vNodes
)
{
{
if
(
Gia_ObjIsTravIdCurrent
(
p
,
pObj
)
)
if
(
Gia_ObjIsTravIdCurrent
(
p
,
pObj
)
)
...
@@ -823,6 +837,7 @@ int Gia_ManCrossCut( Gia_Man_t * p, int fReverse )
...
@@ -823,6 +837,7 @@ int Gia_ManCrossCut( Gia_Man_t * p, int fReverse )
Gia_Obj_t
*
pObj
;
Gia_Obj_t
*
pObj
;
int
i
,
nCutCur
=
0
,
nCutMax
=
0
;
int
i
,
nCutCur
=
0
,
nCutMax
=
0
;
vNodes
=
Gia_ManDfsForCrossCut
(
p
,
fReverse
);
vNodes
=
Gia_ManDfsForCrossCut
(
p
,
fReverse
);
//vNodes = Gia_ManBfsForCrossCut( p );
Gia_ManForEachObjVec
(
vNodes
,
p
,
pObj
,
i
)
Gia_ManForEachObjVec
(
vNodes
,
p
,
pObj
,
i
)
{
{
if
(
pObj
->
Value
)
if
(
pObj
->
Value
)
...
...
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