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
796c2903
Commit
796c2903
authored
Apr 07, 2021
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Making default value (-M 0) work correctly in &mfs.
parent
9145a5c2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
src/opt/sfm/sfmWin.c
+6
-6
No files found.
src/opt/sfm/sfmWin.c
View file @
796c2903
...
...
@@ -365,15 +365,15 @@ int Sfm_NtkCreateWindow( Sfm_Ntk_t * p, int iNode, int fVerbose )
Vec_IntAppend
(
p
->
vDivs
,
p
->
vNodes
);
Vec_IntPop
(
p
->
vDivs
);
// add non-topological divisors
if
(
Vec_IntSize
(
p
->
vDivs
)
<
p
->
pPars
->
nWinSizeMax
+
0
)
if
(
!
p
->
pPars
->
nWinSizeMax
||
Vec_IntSize
(
p
->
vDivs
)
<
p
->
pPars
->
nWinSizeMax
+
0
)
{
Sfm_NtkIncrementTravId2
(
p
);
Vec_IntForEachEntry
(
p
->
vDivs
,
iTemp
,
i
)
if
(
Vec_IntSize
(
p
->
vDivs
)
<
p
->
pPars
->
nWinSizeMax
+
0
)
if
(
!
p
->
pPars
->
nWinSizeMax
||
Vec_IntSize
(
p
->
vDivs
)
<
p
->
pPars
->
nWinSizeMax
+
0
)
// Sfm_NtkAddDivisors( p, iTemp, Sfm_ObjLevel(p, iNode) - 1 );
Sfm_NtkAddDivisors
(
p
,
iTemp
,
p
->
nLevelMax
-
Sfm_ObjLevelR
(
p
,
iNode
)
);
}
if
(
Vec_IntSize
(
p
->
vDivs
)
>
p
->
pPars
->
nWinSizeMax
)
if
(
p
->
pPars
->
nWinSizeMax
&&
Vec_IntSize
(
p
->
vDivs
)
>
p
->
pPars
->
nWinSizeMax
)
{
/*
k = 0;
...
...
@@ -383,8 +383,8 @@ int Sfm_NtkCreateWindow( Sfm_Ntk_t * p, int iNode, int fVerbose )
*/
Vec_IntShrink
(
p
->
vDivs
,
p
->
pPars
->
nWinSizeMax
);
}
assert
(
Vec_IntSize
(
p
->
vDivs
)
<=
p
->
pPars
->
nWinSizeMax
);
p
->
nMaxDivs
+=
(
int
)(
Vec_IntSize
(
p
->
vDivs
)
==
p
->
pPars
->
nWinSizeMax
);
assert
(
!
p
->
pPars
->
nWinSizeMax
||
Vec_IntSize
(
p
->
vDivs
)
<=
p
->
pPars
->
nWinSizeMax
);
p
->
nMaxDivs
+=
(
int
)(
p
->
pPars
->
nWinSizeMax
&&
Vec_IntSize
(
p
->
vDivs
)
==
p
->
pPars
->
nWinSizeMax
);
// remove node/fanins from divisors
// mark fanins
Sfm_NtkIncrementTravId2
(
p
);
...
...
@@ -397,7 +397,7 @@ int Sfm_NtkCreateWindow( Sfm_Ntk_t * p, int iNode, int fVerbose )
if
(
!
Sfm_ObjIsTravIdCurrent2
(
p
,
iTemp
)
&&
Sfm_ObjIsUseful
(
p
,
iTemp
)
)
Vec_IntWriteEntry
(
p
->
vDivs
,
k
++
,
iTemp
);
Vec_IntShrink
(
p
->
vDivs
,
k
);
assert
(
Vec_IntSize
(
p
->
vDivs
)
<=
p
->
pPars
->
nWinSizeMax
);
assert
(
!
p
->
pPars
->
nWinSizeMax
||
Vec_IntSize
(
p
->
vDivs
)
<=
p
->
pPars
->
nWinSizeMax
);
clkDiv
=
Abc_Clock
()
-
clkDiv
;
p
->
timeDiv
+=
clkDiv
;
p
->
nTotalDivs
+=
Vec_IntSize
(
p
->
vDivs
);
...
...
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