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
c4029800
Commit
c4029800
authored
Mar 10, 2019
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated NPN classification code (bug fix).
parent
20bb8948
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
src/opt/dau/dauCanon.c
+5
-5
No files found.
src/opt/dau/dauCanon.c
View file @
c4029800
...
...
@@ -379,7 +379,7 @@ static int Abc_TtScc6(word wTruth, int ck)
int
sum
=
0
;
if
(
!
wTruth
)
return
0
;
for
(
i
=
0
;
i
<
64
;
i
++
)
if
(
wTruth
&
ABC_CONST
(
0x1
)
<<
i
)
{
if
(
wTruth
&
(
word
)
1
<<
i
)
{
int
ci
=
Abc_TtBitCount8
[
i
]
+
ck
;
sum
+=
shiftFunc
(
ci
);
}
...
...
@@ -402,9 +402,9 @@ static inline void Abc_TtSccInCofs6(word wTruth, int nVars, int ck, int * pStore
{
int
sum
=
0
;
for
(
i
=
j
=
0
;
j
<
64
;
j
++
)
if
(
s_Truths6Neg
[
v
]
&
ABC_CONST
(
0x1
)
<<
j
)
if
(
s_Truths6Neg
[
v
]
&
(
word
)
1
<<
j
)
{
if
(
wTruth
&
ABC_CONST
(
0x1
)
<<
j
)
if
(
wTruth
&
(
word
)
1
<<
j
)
{
int
ci
=
Abc_TtBitCount8
[
i
]
+
ck
;
sum
+=
shiftFunc
(
ci
);
...
...
@@ -2628,7 +2628,7 @@ unsigned Abc_TtCanonicizeAda(Abc_TtHieMan_t * p, word * pTruth, int nVars, char
return
tgMan
.
uPhase
;
}
unsigned
Abc_TtCanonicizeCA
(
Abc_TtHieMan_t
*
p
,
word
*
pTruth
,
int
nVars
,
char
*
pCanonPerm
,
int
iThres
)
unsigned
Abc_TtCanonicizeCA
(
Abc_TtHieMan_t
*
p
,
word
*
pTruth
,
int
nVars
,
char
*
pCanonPerm
,
int
fCA
)
{
int
nWords
=
Abc_TtWordNum
(
nVars
);
unsigned
fHard
=
0
,
fHash
=
1
<<
29
;
...
...
@@ -2669,7 +2669,7 @@ unsigned Abc_TtCanonicizeCA(Abc_TtHieMan_t * p, word * pTruth, int nVars, char *
assert
(
Abc_TgCannonVerify
(
&
tgManCopy
));
sc
=
Abc_TgRecordPhase
(
&
tgManCopy
,
0
);
if
(
Abc_SccEnumCost
(
&
tgManCopy
,
sc
)
>
Abc_SccPhaseCost
(
&
tgManCopy
))
if
(
fCA
&&
Abc_SccEnumCost
(
&
tgManCopy
,
sc
)
>
Abc_SccPhaseCost
(
&
tgManCopy
))
{
Abc_TgResetGroup
(
&
tgManCopy
);
sc
=
Abc_TgRecordPhase
(
&
tgManCopy
,
1
);
...
...
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