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
a4503d1c
Commit
a4503d1c
authored
Aug 01, 2018
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Experiments with function enumeration.
parent
cb165d8c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
7 deletions
+11
-7
src/opt/dau/dauNpn.c
+11
-7
No files found.
src/opt/dau/dauNpn.c
View file @
a4503d1c
...
...
@@ -63,7 +63,7 @@ void Dau_TruthEnum()
int
*
pPerm
=
Extra_PermSchedule
(
nVars
);
int
*
pComp
=
Extra_GreyCodeSchedule
(
nVars
);
word
nFuncs
=
((
word
)
1
<<
(((
word
)
1
<<
nVars
)
-
1
));
word
*
pPres
=
ABC_CALLOC
(
word
,
1
<<
((
1
<<
nVars
)
-
6
)
);
word
*
pPres
=
ABC_CALLOC
(
word
,
1
<<
((
1
<<
nVars
)
-
7
)
);
unsigned
*
pTable
=
fUseTable
?
(
unsigned
*
)
ABC_CALLOC
(
word
,
nSizeW
)
:
NULL
;
Vec_Int_t
*
vNpns
=
Vec_IntAlloc
(
1000
);
word
tMask
=
Abc_Tt6Mask
(
1
<<
nVars
);
...
...
@@ -77,14 +77,18 @@ void Dau_TruthEnum()
if
(
pTable
==
NULL
)
printf
(
"Cannot alloc memory for table.
\n
"
);
for
(
tCur
=
0
;
tCur
<
nFuncs
;
tCur
++
)
if
(
(
tCur
&
0x07FFFFFF
)
==
0
)
printf
(
"%08x : %08x
\n
"
,
(
int
)
tCur
,
pTable
[(
int
)
tCur
]
);
//
for ( tCur = 0; tCur < nFuncs; tCur++ )
//
if ( (tCur & 0x07FFFFFF) == 0 )
//
printf( "%08x : %08x\n", (int)tCur, pTable[(int)tCur] );
for
(
tCur
=
0
;
tCur
<
nFuncs
;
tCur
++
)
{
if
(
(
tCur
&
0xFF
)
==
0
)
printf
(
"Finished %08x
\n
"
,
(
int
)
tCur
),
fflush
(
stdout
);
if
(
(
tCur
&
0xFFFF
)
==
0
)
{
printf
(
"Finished %08x. "
,
(
int
)
tCur
);
Abc_PrintTime
(
1
,
"Time"
,
Abc_Clock
()
-
clk
);
fflush
(
stdout
);
}
if
(
Abc_TtGetBit
(
pPres
,
(
int
)
tCur
)
)
continue
;
//Extra_PrintBinary( stdout, (unsigned *)&tCur, 16 ); printf( " %04x\n", (int)tCur );
...
...
@@ -167,7 +171,7 @@ void Dau_AddFunction( word tCur, int nVars, unsigned * pTable, Vec_Int_t * vNpns
void
Dau_NetworkEnum
()
{
abctime
clk
=
Abc_Clock
();
int
Limit
=
1
;
int
Limit
=
2
;
#ifdef USE4VARS
int
nVars
=
4
;
int
nSizeW
=
1
<<
14
;
...
...
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