summaryrefslogtreecommitdiffstats
path: root/src/opt/dau
diff options
context:
space:
mode:
authorAlan Mishchenko <alanmi@berkeley.edu>2019-03-10 19:34:31 +0100
committerAlan Mishchenko <alanmi@berkeley.edu>2019-03-10 19:34:31 +0100
commitc40298004d051ac74720eabd35db0634e9eec53d (patch)
tree40a88416afabfe3748d04da06801605ab37a1212 /src/opt/dau
parent20bb89485adb4c7a6fe89c9dc7abe03b21bfd9d1 (diff)
downloadabc-c40298004d051ac74720eabd35db0634e9eec53d.tar.gz
abc-c40298004d051ac74720eabd35db0634e9eec53d.tar.bz2
abc-c40298004d051ac74720eabd35db0634e9eec53d.zip
Updated NPN classification code (bug fix).
Diffstat (limited to 'src/opt/dau')
-rw-r--r--src/opt/dau/dauCanon.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/opt/dau/dauCanon.c b/src/opt/dau/dauCanon.c
index a5558c1e..2b5b9838 100644
--- a/src/opt/dau/dauCanon.c
+++ b/src/opt/dau/dauCanon.c
@@ -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);