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
922c3415
Commit
922c3415
authored
Aug 30, 2018
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Expriments with functions (compiler warnings).
parent
6d1fc80f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
src/base/abci/abc.c
+1
-0
src/opt/dau/dauNpn.c
+4
-2
No files found.
src/base/abci/abc.c
View file @
922c3415
...
...
@@ -13030,6 +13030,7 @@ int Abc_CommandTestColor( Abc_Frame_t * pAbc, int argc, char ** argv )
***********************************************************************/
int
Abc_CommandTest
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
)
{
extern
void
Dau_NetworkEnumTest
();
//Abc_Ntk_t * pNtk = Abc_FrameReadNtk(pAbc);
int
nCutMax
=
1
;
int
nLeafMax
=
4
;
src/opt/dau/dauNpn.c
View file @
922c3415
...
...
@@ -122,6 +122,7 @@ void Dau_TruthEnum()
{
FILE
*
pFile
=
fopen
(
pFileName
,
"wb"
);
int
RetValue
=
fwrite
(
pTable
,
8
,
nSizeW
,
pFile
);
RetValue
=
0
;
fclose
(
pFile
);
ABC_FREE
(
pTable
);
}
...
...
@@ -145,6 +146,7 @@ unsigned * Dau_ReadFile( char * pFileName, int nSizeW )
FILE
*
pFile
=
fopen
(
pFileName
,
"rb"
);
unsigned
*
p
=
(
unsigned
*
)
ABC_CALLOC
(
word
,
nSizeW
);
int
RetValue
=
pFile
?
fread
(
p
,
sizeof
(
word
),
nSizeW
,
pFile
)
:
0
;
RetValue
=
0
;
if
(
pFile
)
{
printf
(
"Finished reading file
\"
%s
\"
.
\n
"
,
pFileName
);
...
...
@@ -178,7 +180,7 @@ void Dau_NetworkEnum()
{
abctime
clk
=
Abc_Clock
();
int
Limit
=
2
;
int
UseTwo
=
1
;
int
UseTwo
=
0
;
#ifdef USE4VARS
int
nVars
=
4
;
int
nSizeW
=
1
<<
14
;
...
...
@@ -191,7 +193,7 @@ void Dau_NetworkEnum()
unsigned
*
pTable
=
Dau_ReadFile
(
pFileName
,
nSizeW
);
Vec_Wec_t
*
vNpns
=
Vec_WecStart
(
32
);
Vec_Wec_t
*
vNpns_
=
Vec_WecStart
(
32
);
int
i
,
v
,
u
,
g
,
k
,
m
,
n
,
Res
,
Entry
,
iPrev
=
0
,
iLast
=
1
;
int
i
,
v
,
u
,
g
,
k
,
m
,
n
,
Res
,
Entry
;
unsigned
Inv
=
(
unsigned
)
Abc_Tt6Mask
(
1
<<
(
nVars
-
1
));
// create constant function and buffer/inverter function
pTable
[
0
]
|=
(
1
<<
31
);
...
...
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