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
e3cd1048
Commit
e3cd1048
authored
Mar 12, 2019
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated NPN classification code (compiler warnings).
parent
900fd5cc
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
6 deletions
+7
-6
src/base/abci/abcNpn.c
+2
-2
src/opt/dau/dauCanon.c
+2
-1
src/opt/dau/dauNpn2.c
+3
-3
No files found.
src/base/abci/abcNpn.c
View file @
e3cd1048
...
...
@@ -317,7 +317,7 @@ void Abc_TruthNpnPerform( Abc_TtStore_t * p, int NpnType, int fVerbose )
}
else
if
(
NpnType
==
8
)
{
typedef
unsigned
(
*
TtCanonicizeFunc
)(
Abc_TtHieMan_t
*
p
,
word
*
pTruth
,
int
nVars
,
char
*
pCanonPerm
,
int
flag
);
//
typedef unsigned(*TtCanonicizeFunc)(Abc_TtHieMan_t * p, word * pTruth, int nVars, char * pCanonPerm, int flag);
unsigned
Abc_TtCanonicizeWrap
(
TtCanonicizeFunc
func
,
Abc_TtHieMan_t
*
p
,
word
*
pTruth
,
int
nVars
,
char
*
pCanonPerm
,
int
flag
);
unsigned
Abc_TtCanonicizeAda
(
Abc_TtHieMan_t
*
p
,
word
*
pTruth
,
int
nVars
,
char
*
pCanonPerm
,
int
iThres
);
...
...
@@ -335,7 +335,7 @@ void Abc_TruthNpnPerform( Abc_TtStore_t * p, int NpnType, int fVerbose )
}
else
if
(
NpnType
==
9
||
NpnType
==
10
||
NpnType
==
11
)
{
typedef
unsigned
(
*
TtCanonicizeFunc
)(
Abc_TtHieMan_t
*
p
,
word
*
pTruth
,
int
nVars
,
char
*
pCanonPerm
,
int
flag
);
//
typedef unsigned(*TtCanonicizeFunc)(Abc_TtHieMan_t * p, word * pTruth, int nVars, char * pCanonPerm, int flag);
unsigned
Abc_TtCanonicizeWrap
(
TtCanonicizeFunc
func
,
Abc_TtHieMan_t
*
p
,
word
*
pTruth
,
int
nVars
,
char
*
pCanonPerm
,
int
flag
);
unsigned
Abc_TtCanonicizeAda
(
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
iThres
);
...
...
src/opt/dau/dauCanon.c
View file @
e3cd1048
...
...
@@ -1274,6 +1274,7 @@ void Abc_TtHieManStop(Abc_TtHieMan_t * p)
Vec_MemFreeP
(
&
p
->
vTtMem
[
i
]);
Vec_IntFree
(
p
->
vRepres
[
i
]);
}
Vec_IntFree
(
p
->
vPhase
);
ABC_FREE
(
p
);
}
...
...
@@ -1520,7 +1521,7 @@ static int Abc_NextPermSwapC(char * pData, signed char * pDir, int size)
return
j
<
k
?
j
:
k
;
}
typedef
unsigned
(
*
TtCanonicizeFunc
)(
Abc_TtHieMan_t
*
p
,
word
*
pTruth
,
int
nVars
,
char
*
pCanonPerm
,
int
flag
);
//
typedef unsigned(*TtCanonicizeFunc)(Abc_TtHieMan_t * p, word * pTruth, int nVars, char * pCanonPerm, int flag);
unsigned
Abc_TtCanonicizeWrap
(
TtCanonicizeFunc
func
,
Abc_TtHieMan_t
*
p
,
word
*
pTruth
,
int
nVars
,
char
*
pCanonPerm
,
int
flag
)
{
int
nWords
=
Abc_TtWordNum
(
nVars
);
...
...
src/opt/dau/dauNpn2.c
View file @
e3cd1048
...
...
@@ -774,7 +774,7 @@ void Dtt_MakeFormulaFI2( unsigned tFun, Dtt_FunImpl_t* pFun, Vec_Vec_t* vLibImpl
{
int
j
;
Dtt_FunImpl_t
*
pImpl2
;
char
sFI2
[
100
]
;
sprintf
(
sFI2
,
""
);
char
sFI2
[
100
]
=
{
0
};
//
sprintf( sFI2, "" );
if
(
pFun
->
FI2
==
0
)
// PI
{
...
...
@@ -799,7 +799,7 @@ void Dtt_MakeFormula( unsigned tFun, Dtt_FunImpl_t* pFun, Vec_Vec_t* vLibImpl, i
{
int
j
;
Dtt_FunImpl_t
*
pImpl1
;
char
sFI1
[
100
],
sCopy
[
100
]
;
sprintf
(
sFI1
,
""
);
char
sFI1
[
100
],
sCopy
[
100
]
=
{
0
};
//
sprintf( sFI1, "" );
if
(
pFun
->
FI1
==
0
)
// PI
{
...
...
@@ -986,7 +986,7 @@ void Dtt_DumpLibrary( Dtt_Man_t * p )
if
(
i
<
2
)
continue
;
// skip const 0 and buffer
Vec_VecForEachEntryLevel
(
Dtt_FunImpl_t
*
,
vLibImpl
,
pFun
,
j
,
i
)
{
sprintf
(
str
,
""
);
s
tr
[
0
]
=
0
;
//s
printf( str, "" );
Dtt_MakeFormula
(
(
unsigned
)
Entry
,
pFun
,
vLibImpl
,
(
4
<<
16
)
+
(
3
<<
12
)
+
(
2
<<
8
)
+
(
1
<<
4
),
str
,
1
,
pFile
);
}
}
...
...
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