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
cb165d8c
Commit
cb165d8c
authored
Aug 01, 2018
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Experiments with function enumeration.
parent
a5042e19
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
src/opt/dau/dauNpn.c
+5
-5
No files found.
src/opt/dau/dauNpn.c
View file @
cb165d8c
...
@@ -63,7 +63,7 @@ void Dau_TruthEnum()
...
@@ -63,7 +63,7 @@ void Dau_TruthEnum()
int
*
pPerm
=
Extra_PermSchedule
(
nVars
);
int
*
pPerm
=
Extra_PermSchedule
(
nVars
);
int
*
pComp
=
Extra_GreyCodeSchedule
(
nVars
);
int
*
pComp
=
Extra_GreyCodeSchedule
(
nVars
);
word
nFuncs
=
((
word
)
1
<<
(((
word
)
1
<<
nVars
)
-
1
));
word
nFuncs
=
((
word
)
1
<<
(((
word
)
1
<<
nVars
)
-
1
));
word
*
pPres
=
ABC_CALLOC
(
word
,
1
<<
((
1
<<
nVars
)
-
7
)
);
word
*
pPres
=
ABC_CALLOC
(
word
,
1
<<
((
1
<<
nVars
)
-
6
)
);
unsigned
*
pTable
=
fUseTable
?
(
unsigned
*
)
ABC_CALLOC
(
word
,
nSizeW
)
:
NULL
;
unsigned
*
pTable
=
fUseTable
?
(
unsigned
*
)
ABC_CALLOC
(
word
,
nSizeW
)
:
NULL
;
Vec_Int_t
*
vNpns
=
Vec_IntAlloc
(
1000
);
Vec_Int_t
*
vNpns
=
Vec_IntAlloc
(
1000
);
word
tMask
=
Abc_Tt6Mask
(
1
<<
nVars
);
word
tMask
=
Abc_Tt6Mask
(
1
<<
nVars
);
...
@@ -77,13 +77,13 @@ void Dau_TruthEnum()
...
@@ -77,13 +77,13 @@ void Dau_TruthEnum()
if
(
pTable
==
NULL
)
if
(
pTable
==
NULL
)
printf
(
"Cannot alloc memory for table.
\n
"
);
printf
(
"Cannot alloc memory for table.
\n
"
);
for
(
i
=
0
;
i
<=
0x7FFFFFFF
;
i
++
)
for
(
tCur
=
0
;
tCur
<
nFuncs
;
tCur
++
)
if
(
(
i
&
0x0FFFFFFF
)
==
0x0FFFFFFF
)
if
(
(
tCur
&
0x07FFFFFF
)
==
0
)
printf
(
"%08x : %08x
\n
"
,
i
,
pTable
[
i
]
);
printf
(
"%08x : %08x
\n
"
,
(
int
)
tCur
,
pTable
[(
int
)
tCur
]
);
for
(
tCur
=
0
;
tCur
<
nFuncs
;
tCur
++
)
for
(
tCur
=
0
;
tCur
<
nFuncs
;
tCur
++
)
{
{
if
(
(
tCur
&
0xFF
FF
)
==
0
)
if
(
(
tCur
&
0xFF
)
==
0
)
printf
(
"Finished %08x
\n
"
,
(
int
)
tCur
),
fflush
(
stdout
);
printf
(
"Finished %08x
\n
"
,
(
int
)
tCur
),
fflush
(
stdout
);
if
(
Abc_TtGetBit
(
pPres
,
(
int
)
tCur
)
)
if
(
Abc_TtGetBit
(
pPres
,
(
int
)
tCur
)
)
continue
;
continue
;
...
...
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