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
3db3be2d
Commit
3db3be2d
authored
Apr 03, 2014
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improvements to technology mapping.
parent
b21589ea
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
src/map/if/ifDsd.c
+3
-2
src/map/if/ifMap.c
+1
-1
No files found.
src/map/if/ifDsd.c
View file @
3db3be2d
...
@@ -1787,9 +1787,10 @@ int If_DsdManCompute( If_DsdMan_t * p, word * pTruth, int nLeaves, unsigned char
...
@@ -1787,9 +1787,10 @@ int If_DsdManCompute( If_DsdMan_t * p, word * pTruth, int nLeaves, unsigned char
word
pCopy
[
DAU_MAX_WORD
],
*
pRes
;
word
pCopy
[
DAU_MAX_WORD
],
*
pRes
;
char
pDsd
[
DAU_MAX_STR
];
char
pDsd
[
DAU_MAX_STR
];
int
iDsd
,
nSizeNonDec
,
nSupp
=
0
;
int
iDsd
,
nSizeNonDec
,
nSupp
=
0
;
int
nWords
=
Abc_TtWordNum
(
nLeaves
);
abctime
clk
;
abctime
clk
;
assert
(
nLeaves
<=
DAU_MAX_VAR
);
assert
(
nLeaves
<=
DAU_MAX_VAR
);
Abc_TtCopy
(
pCopy
,
pTruth
,
p
->
nWords
,
0
);
Abc_TtCopy
(
pCopy
,
pTruth
,
nWords
,
0
);
clk
=
Abc_Clock
();
clk
=
Abc_Clock
();
nSizeNonDec
=
Dau_DsdDecompose
(
pCopy
,
nLeaves
,
0
,
1
,
pDsd
);
nSizeNonDec
=
Dau_DsdDecompose
(
pCopy
,
nLeaves
,
0
,
1
,
pDsd
);
p
->
timeDsd
+=
Abc_Clock
()
-
clk
;
p
->
timeDsd
+=
Abc_Clock
()
-
clk
;
...
@@ -1808,7 +1809,7 @@ p->timeCanon += Abc_Clock() - clk;
...
@@ -1808,7 +1809,7 @@ p->timeCanon += Abc_Clock() - clk;
clk
=
Abc_Clock
();
clk
=
Abc_Clock
();
pRes
=
If_DsdManComputeTruth
(
p
,
iDsd
,
pPerm
);
pRes
=
If_DsdManComputeTruth
(
p
,
iDsd
,
pPerm
);
p
->
timeVerify
+=
Abc_Clock
()
-
clk
;
p
->
timeVerify
+=
Abc_Clock
()
-
clk
;
if
(
!
Abc_TtEqual
(
pRes
,
pTruth
,
p
->
nWords
)
)
if
(
!
Abc_TtEqual
(
pRes
,
pTruth
,
nWords
)
)
{
{
// If_DsdManPrint( p, NULL );
// If_DsdManPrint( p, NULL );
printf
(
"
\n
"
);
printf
(
"
\n
"
);
...
...
src/map/if/ifMap.c
View file @
3db3be2d
...
@@ -196,7 +196,7 @@ void If_ObjPerformMappingAnd( If_Man_t * p, If_Obj_t * pObj, int Mode, int fPrep
...
@@ -196,7 +196,7 @@ void If_ObjPerformMappingAnd( If_Man_t * p, If_Obj_t * pObj, int Mode, int fPrep
if
(
p
->
pPars
->
fUseTtPerm
)
if
(
p
->
pPars
->
fUseTtPerm
)
fChange
=
If_CutComputeTruthPerm
(
p
,
pCut
,
pCut0R
,
pCut1R
,
fFunc0R
,
fFunc1R
);
fChange
=
If_CutComputeTruthPerm
(
p
,
pCut
,
pCut0R
,
pCut1R
,
fFunc0R
,
fFunc1R
);
else
else
fChange
=
If_CutComputeTruth
(
p
,
pCut
,
pCut0
R
,
pCut1R
,
pObj
->
fCompl0
,
pObj
->
fCompl1
);
fChange
=
If_CutComputeTruth
(
p
,
pCut
,
pCut0
,
pCut1
,
pObj
->
fCompl0
,
pObj
->
fCompl1
);
if
(
!
p
->
pPars
->
fSkipCutFilter
&&
fChange
&&
If_CutFilter
(
pCutSet
,
pCut
)
)
if
(
!
p
->
pPars
->
fSkipCutFilter
&&
fChange
&&
If_CutFilter
(
pCutSet
,
pCut
)
)
continue
;
continue
;
// p->timeTruth += Abc_Clock() - clk;
// p->timeTruth += Abc_Clock() - clk;
...
...
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