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
af5a70c0
Commit
af5a70c0
authored
Aug 01, 2018
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Experiments with function enumeration.
parent
bea3385f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletions
+3
-1
src/opt/dau/dauNpn.c
+3
-1
No files found.
src/opt/dau/dauNpn.c
View file @
af5a70c0
...
@@ -141,10 +141,12 @@ void Dau_TruthEnum()
...
@@ -141,10 +141,12 @@ void Dau_TruthEnum()
***********************************************************************/
***********************************************************************/
unsigned
*
Dau_ReadFile
(
char
*
pFileName
,
int
nSizeW
)
unsigned
*
Dau_ReadFile
(
char
*
pFileName
,
int
nSizeW
)
{
{
abctime
clk
=
Abc_Clock
();
FILE
*
pFile
=
fopen
(
pFileName
,
"rb"
);
FILE
*
pFile
=
fopen
(
pFileName
,
"rb"
);
unsigned
*
p
=
(
unsigned
*
)
ABC_CALLOC
(
word
,
nSizeW
);
unsigned
*
p
=
(
unsigned
*
)
ABC_CALLOC
(
word
,
nSizeW
);
int
RetValue
=
fread
(
p
,
sizeof
(
word
),
nSizeW
,
pFile
);
int
RetValue
=
fread
(
p
,
sizeof
(
word
),
nSizeW
,
pFile
);
fclose
(
pFile
);
fclose
(
pFile
);
Abc_PrintTime
(
1
,
"File reading"
,
Abc_Clock
()
-
clk
);
return
p
;
return
p
;
}
}
void
Dau_AddFunction
(
word
tCur
,
int
nVars
,
unsigned
*
pTable
,
Vec_Int_t
*
vNpns
)
void
Dau_AddFunction
(
word
tCur
,
int
nVars
,
unsigned
*
pTable
,
Vec_Int_t
*
vNpns
)
...
@@ -262,7 +264,7 @@ void Dau_NetworkEnum()
...
@@ -262,7 +264,7 @@ void Dau_NetworkEnum()
}
}
void
Dau_NetworkEnumTest
()
void
Dau_NetworkEnumTest
()
{
{
Dau_TruthEnum
();
//
Dau_TruthEnum();
Dau_NetworkEnum
();
Dau_NetworkEnum
();
}
}
...
...
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