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
dbaf28db
Commit
dbaf28db
authored
Sep 25, 2013
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing the large MFFC problem.
parent
e035f60d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
src/aig/gia/giaJf.c
+8
-8
No files found.
src/aig/gia/giaJf.c
View file @
dbaf28db
...
@@ -748,24 +748,24 @@ static inline int Jf_CutAreaOld( Jf_Man_t * p, int * pCut )
...
@@ -748,24 +748,24 @@ static inline int Jf_CutAreaOld( Jf_Man_t * p, int * pCut )
return
Ela1
;
return
Ela1
;
}
}
int
Jf_CutAreaRef_rec
(
Jf_Man_t
*
p
,
int
*
pCut
,
int
Limit
)
int
Jf_CutAreaRef_rec
(
Jf_Man_t
*
p
,
int
*
pCut
)
{
{
int
i
,
Var
,
Count
=
Jf_CutCost
(
pCut
);
int
i
,
Var
,
Count
=
Jf_CutCost
(
pCut
);
Jf_CutForEachVar
(
pCut
,
Var
,
i
)
Jf_CutForEachVar
(
pCut
,
Var
,
i
)
{
{
if
(
!
Gia_ObjRefIncId
(
p
->
pGia
,
Var
)
&&
!
Jf_CutIsTriv
(
Jf_ObjCutBest
(
p
,
Var
),
Var
)
&&
Limit
>
1
)
if
(
!
Gia_ObjRefIncId
(
p
->
pGia
,
Var
)
&&
!
Jf_CutIsTriv
(
Jf_ObjCutBest
(
p
,
Var
),
Var
)
)
Count
+=
Jf_CutAreaRef_rec
(
p
,
Jf_ObjCutBest
(
p
,
Var
)
,
Limit
-
1
);
Count
+=
Jf_CutAreaRef_rec
(
p
,
Jf_ObjCutBest
(
p
,
Var
)
);
Vec_IntPush
(
p
->
vTemp
,
Var
);
Vec_IntPush
(
p
->
vTemp
,
Var
);
}
}
return
Count
;
return
Count
;
}
}
int
Jf_CutAreaRefEdge_rec
(
Jf_Man_t
*
p
,
int
*
pCut
,
int
Limit
)
int
Jf_CutAreaRefEdge_rec
(
Jf_Man_t
*
p
,
int
*
pCut
)
{
{
int
i
,
Var
,
Count
=
(
Jf_CutCost
(
pCut
)
<<
4
)
|
Jf_CutSize
(
pCut
);
int
i
,
Var
,
Count
=
(
Jf_CutCost
(
pCut
)
<<
4
)
|
Jf_CutSize
(
pCut
);
Jf_CutForEachVar
(
pCut
,
Var
,
i
)
Jf_CutForEachVar
(
pCut
,
Var
,
i
)
{
{
if
(
!
Gia_ObjRefIncId
(
p
->
pGia
,
Var
)
&&
!
Jf_CutIsTriv
(
Jf_ObjCutBest
(
p
,
Var
),
Var
)
&&
Limit
>
1
)
if
(
!
Gia_ObjRefIncId
(
p
->
pGia
,
Var
)
&&
!
Jf_CutIsTriv
(
Jf_ObjCutBest
(
p
,
Var
),
Var
)
)
Count
+=
Jf_CutAreaRefEdge_rec
(
p
,
Jf_ObjCutBest
(
p
,
Var
)
,
Limit
-
1
);
Count
+=
Jf_CutAreaRefEdge_rec
(
p
,
Jf_ObjCutBest
(
p
,
Var
)
);
Vec_IntPush
(
p
->
vTemp
,
Var
);
Vec_IntPush
(
p
->
vTemp
,
Var
);
}
}
return
Count
;
return
Count
;
...
@@ -775,9 +775,9 @@ static inline int Jf_CutArea( Jf_Man_t * p, int * pCut, int fEdge )
...
@@ -775,9 +775,9 @@ static inline int Jf_CutArea( Jf_Man_t * p, int * pCut, int fEdge )
int
Ela
,
Entry
,
i
;
int
Ela
,
Entry
,
i
;
Vec_IntClear
(
p
->
vTemp
);
Vec_IntClear
(
p
->
vTemp
);
if
(
fEdge
)
if
(
fEdge
)
Ela
=
Jf_CutAreaRefEdge_rec
(
p
,
pCut
,
ABC_INFINITY
);
Ela
=
Jf_CutAreaRefEdge_rec
(
p
,
pCut
);
else
else
Ela
=
Jf_CutAreaRef_rec
(
p
,
pCut
,
ABC_INFINITY
);
Ela
=
Jf_CutAreaRef_rec
(
p
,
pCut
);
Vec_IntForEachEntry
(
p
->
vTemp
,
Entry
,
i
)
Vec_IntForEachEntry
(
p
->
vTemp
,
Entry
,
i
)
Gia_ObjRefDecId
(
p
->
pGia
,
Entry
);
Gia_ObjRefDecId
(
p
->
pGia
,
Entry
);
return
Ela
;
return
Ela
;
...
...
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