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
20518f59
Commit
20518f59
authored
Aug 09, 2012
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Compiler warnings.
parent
1451614c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
17 deletions
+14
-17
src/base/abci/abcDec.c
+7
-7
src/base/abci/abcNpn.c
+6
-6
src/bool/lucky/luckyInt.h
+1
-4
No files found.
src/base/abci/abcDec.c
View file @
20518f59
...
@@ -154,7 +154,7 @@ Abc_TtStore_t * Abc_TruthStoreAlloc( int nVars, int nFuncs )
...
@@ -154,7 +154,7 @@ Abc_TtStore_t * Abc_TruthStoreAlloc( int nVars, int nFuncs )
p
->
pFuncs
[
i
]
=
p
->
pFuncs
[
i
-
1
]
+
p
->
nWords
;
p
->
pFuncs
[
i
]
=
p
->
pFuncs
[
i
-
1
]
+
p
->
nWords
;
return
p
;
return
p
;
}
}
void
Abc_T
ruth
StoreFree
(
Abc_TtStore_t
*
p
)
void
Abc_T
t
StoreFree
(
Abc_TtStore_t
*
p
)
{
{
free
(
p
->
pFuncs
[
0
]
);
free
(
p
->
pFuncs
[
0
]
);
free
(
p
->
pFuncs
);
free
(
p
->
pFuncs
);
...
@@ -338,7 +338,7 @@ void Abc_TruthStoreWrite( char * pFileName, Abc_TtStore_t * p )
...
@@ -338,7 +338,7 @@ void Abc_TruthStoreWrite( char * pFileName, Abc_TtStore_t * p )
SeeAlso []
SeeAlso []
***********************************************************************/
***********************************************************************/
Abc_TtStore_t
*
Abc_T
ruth
StoreLoad
(
char
*
pFileName
)
Abc_TtStore_t
*
Abc_T
t
StoreLoad
(
char
*
pFileName
)
{
{
Abc_TtStore_t
*
p
;
Abc_TtStore_t
*
p
;
char
*
pFileInput
=
pFileName
;
char
*
pFileInput
=
pFileName
;
...
@@ -368,14 +368,14 @@ Abc_TtStore_t * Abc_TruthStoreLoad( char * pFileName )
...
@@ -368,14 +368,14 @@ Abc_TtStore_t * Abc_TruthStoreLoad( char * pFileName )
SeeAlso []
SeeAlso []
***********************************************************************/
***********************************************************************/
void
Abc_T
ruth
StoreTest
(
char
*
pFileName
)
void
Abc_T
t
StoreTest
(
char
*
pFileName
)
{
{
Abc_TtStore_t
*
p
;
Abc_TtStore_t
*
p
;
char
*
pFileInput
=
pFileName
;
char
*
pFileInput
=
pFileName
;
char
*
pFileOutput
=
"out.txt"
;
char
*
pFileOutput
=
"out.txt"
;
// read info from file
// read info from file
p
=
Abc_T
ruth
StoreLoad
(
pFileInput
);
p
=
Abc_T
t
StoreLoad
(
pFileInput
);
if
(
p
==
NULL
)
if
(
p
==
NULL
)
return
;
return
;
...
@@ -383,7 +383,7 @@ void Abc_TruthStoreTest( char * pFileName )
...
@@ -383,7 +383,7 @@ void Abc_TruthStoreTest( char * pFileName )
Abc_TruthStoreWrite
(
pFileOutput
,
p
);
Abc_TruthStoreWrite
(
pFileOutput
,
p
);
// delete data-structure
// delete data-structure
Abc_T
ruth
StoreFree
(
p
);
Abc_T
t
StoreFree
(
p
);
printf
(
"Input file
\"
%s
\"
was copied into output file
\"
%s
\"
.
\n
"
,
pFileInput
,
pFileOutput
);
printf
(
"Input file
\"
%s
\"
was copied into output file
\"
%s
\"
.
\n
"
,
pFileInput
,
pFileOutput
);
}
}
...
@@ -511,7 +511,7 @@ void Abc_TruthDecTest( char * pFileName, int DecType, int fVerbose )
...
@@ -511,7 +511,7 @@ void Abc_TruthDecTest( char * pFileName, int DecType, int fVerbose )
Abc_TruthDecPerform
(
p
,
DecType
,
fVerbose
);
Abc_TruthDecPerform
(
p
,
DecType
,
fVerbose
);
// delete data-structure
// delete data-structure
Abc_T
ruth
StoreFree
(
p
);
Abc_T
t
StoreFree
(
p
);
// printf( "Finished decomposing truth tables from file \"%s\".\n", pFileName );
// printf( "Finished decomposing truth tables from file \"%s\".\n", pFileName );
}
}
...
@@ -532,7 +532,7 @@ int Abc_DecTest( char * pFileName, int DecType, int fVerbose )
...
@@ -532,7 +532,7 @@ int Abc_DecTest( char * pFileName, int DecType, int fVerbose )
if
(
fVerbose
)
if
(
fVerbose
)
printf
(
"Using truth tables from file
\"
%s
\"
...
\n
"
,
pFileName
);
printf
(
"Using truth tables from file
\"
%s
\"
...
\n
"
,
pFileName
);
if
(
DecType
==
0
)
if
(
DecType
==
0
)
Abc_T
ruth
StoreTest
(
pFileName
);
Abc_T
t
StoreTest
(
pFileName
);
else
if
(
DecType
>=
1
&&
DecType
<=
3
)
else
if
(
DecType
>=
1
&&
DecType
<=
3
)
Abc_TruthDecTest
(
pFileName
,
DecType
,
fVerbose
);
Abc_TruthDecTest
(
pFileName
,
DecType
,
fVerbose
);
else
else
...
...
src/base/abci/abcNpn.c
View file @
20518f59
...
@@ -47,9 +47,9 @@ struct Abc_TtStore_t_
...
@@ -47,9 +47,9 @@ struct Abc_TtStore_t_
word
**
pFuncs
;
word
**
pFuncs
;
};
};
extern
Abc_TtStore_t
*
Abc_T
ruth
StoreLoad
(
char
*
pFileName
);
extern
Abc_TtStore_t
*
Abc_T
t
StoreLoad
(
char
*
pFileName
);
extern
void
Abc_T
ruth
StoreFree
(
Abc_TtStore_t
*
p
);
extern
void
Abc_T
t
StoreFree
(
Abc_TtStore_t
*
p
);
extern
void
Abc_T
ruth
StoreTest
(
char
*
pFileName
);
extern
void
Abc_T
t
StoreTest
(
char
*
pFileName
);
////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////
/// FUNCTION DEFINITIONS ///
/// FUNCTION DEFINITIONS ///
...
@@ -183,7 +183,7 @@ void Abc_TruthNpnTest( char * pFileName, int NpnType, int fVerbose )
...
@@ -183,7 +183,7 @@ void Abc_TruthNpnTest( char * pFileName, int NpnType, int fVerbose )
Abc_TtStore_t
*
p
;
Abc_TtStore_t
*
p
;
// read info from file
// read info from file
p
=
Abc_T
ruth
StoreLoad
(
pFileName
);
p
=
Abc_T
t
StoreLoad
(
pFileName
);
if
(
p
==
NULL
)
if
(
p
==
NULL
)
return
;
return
;
...
@@ -191,7 +191,7 @@ void Abc_TruthNpnTest( char * pFileName, int NpnType, int fVerbose )
...
@@ -191,7 +191,7 @@ void Abc_TruthNpnTest( char * pFileName, int NpnType, int fVerbose )
Abc_TruthNpnPerform
(
p
,
NpnType
,
fVerbose
);
Abc_TruthNpnPerform
(
p
,
NpnType
,
fVerbose
);
// delete data-structure
// delete data-structure
Abc_T
ruth
StoreFree
(
p
);
Abc_T
t
StoreFree
(
p
);
// printf( "Finished computing canonical forms for functions from file \"%s\".\n", pFileName );
// printf( "Finished computing canonical forms for functions from file \"%s\".\n", pFileName );
}
}
...
@@ -212,7 +212,7 @@ int Abc_NpnTest( char * pFileName, int NpnType, int fVerbose )
...
@@ -212,7 +212,7 @@ int Abc_NpnTest( char * pFileName, int NpnType, int fVerbose )
if
(
fVerbose
)
if
(
fVerbose
)
printf
(
"Using truth tables from file
\"
%s
\"
...
\n
"
,
pFileName
);
printf
(
"Using truth tables from file
\"
%s
\"
...
\n
"
,
pFileName
);
if
(
NpnType
==
0
)
if
(
NpnType
==
0
)
Abc_T
ruth
StoreTest
(
pFileName
);
Abc_T
t
StoreTest
(
pFileName
);
else
if
(
NpnType
>=
1
&&
NpnType
<=
3
)
else
if
(
NpnType
>=
1
&&
NpnType
<=
3
)
Abc_TruthNpnTest
(
pFileName
,
NpnType
,
fVerbose
);
Abc_TruthNpnTest
(
pFileName
,
NpnType
,
fVerbose
);
else
else
...
...
src/bool/lucky/luckyInt.h
View file @
20518f59
...
@@ -40,9 +40,6 @@ typedef unsigned __int64 word;
...
@@ -40,9 +40,6 @@ typedef unsigned __int64 word;
ABC_NAMESPACE_HEADER_START
ABC_NAMESPACE_HEADER_START
//typedef unsigned __int64 ABC_UINT64_T;
//typedef ABC_UINT64_T word;
#define bool int
#define bool int
#define false 0
#define false 0
...
@@ -107,7 +104,7 @@ static inline void TimePrint( char* Message )
...
@@ -107,7 +104,7 @@ static inline void TimePrint( char* Message )
extern
inline
int
memCompare
(
word
*
x
,
word
*
y
,
int
nVars
);
extern
inline
int
memCompare
(
word
*
x
,
word
*
y
,
int
nVars
);
extern
inline
int
Kit_TruthWordNum_64bit
(
int
nVars
);
extern
inline
int
Kit_TruthWordNum_64bit
(
int
nVars
);
extern
Abc_TtStore_t
*
setTtStore
(
char
*
pFileInput
);
extern
Abc_TtStore_t
*
setTtStore
(
char
*
pFileInput
);
extern
void
Abc_TruthStoreFree
(
Abc_TtStore_t
*
p
);
extern
inline
void
Abc_TruthStoreFree
(
Abc_TtStore_t
*
p
);
extern
inline
void
Kit_TruthChangePhase_64bit
(
word
*
pInOut
,
int
nVars
,
int
iVar
);
extern
inline
void
Kit_TruthChangePhase_64bit
(
word
*
pInOut
,
int
nVars
,
int
iVar
);
extern
inline
void
Kit_TruthNot_64bit
(
word
*
pIn
,
int
nVars
);
extern
inline
void
Kit_TruthNot_64bit
(
word
*
pIn
,
int
nVars
);
extern
inline
void
Kit_TruthCopy_64bit
(
word
*
pOut
,
word
*
pIn
,
int
nVars
);
extern
inline
void
Kit_TruthCopy_64bit
(
word
*
pOut
,
word
*
pIn
,
int
nVars
);
...
...
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