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
ac562a7b
Commit
ac562a7b
authored
Aug 01, 2018
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Experiments with function enumeration.
parent
82bfe3a4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/opt/dau/dauNpn.c
+2
-2
No files found.
src/opt/dau/dauNpn.c
View file @
ac562a7b
...
@@ -158,7 +158,7 @@ void Dau_AddFunction( word tCur, int nVars, unsigned * pTable, Vec_Int_t * vNpns
...
@@ -158,7 +158,7 @@ void Dau_AddFunction( word tCur, int nVars, unsigned * pTable, Vec_Int_t * vNpns
unsigned
tRep
=
pTable
[
t
];
unsigned
tRep
=
pTable
[
t
];
unsigned
tRep2
=
pTable
[
tRep
&
tMask
];
unsigned
tRep2
=
pTable
[
tRep
&
tMask
];
assert
(
((
tNorm
>>
Digit
)
&
1
)
==
0
);
assert
(
((
tNorm
>>
Digit
)
&
1
)
==
0
);
assert
(
(
tRep
&
(
tMask
>>
1
))
==
(
tRep2
&
(
tMask
>>
1
))
);
//
assert( (tRep & (tMask>>1)) == (tRep2 & (tMask>>1)) );
if
(
(
tRep2
>>
31
)
==
0
)
// first time
if
(
(
tRep2
>>
31
)
==
0
)
// first time
{
{
Vec_IntPush
(
vNpns
,
tRep2
);
Vec_IntPush
(
vNpns
,
tRep2
);
...
@@ -252,7 +252,7 @@ void Dau_NetworkEnum()
...
@@ -252,7 +252,7 @@ void Dau_NetworkEnum()
//printf("Finished %d nodes with %d functions.\n", Count++, Vec_IntSize(vNpns) );
//printf("Finished %d nodes with %d functions.\n", Count++, Vec_IntSize(vNpns) );
iPrev
=
iLast
;
iPrev
=
iLast
;
iLast
=
Vec_IntSize
(
vNpns
)
-
1
;
iLast
=
Vec_IntSize
(
vNpns
)
-
1
;
printf
(
"Finished %
d nodes with %d functions. "
,
Count
++
,
iLast
-
iPrev
);
printf
(
"Finished %
2d nodes with %6d functions our of %6d. "
,
Count
++
,
iLast
-
iPrev
,
Vec_IntSize
(
vNpns
)
);
Abc_PrintTime
(
1
,
"Time"
,
Abc_Clock
()
-
clk
);
Abc_PrintTime
(
1
,
"Time"
,
Abc_Clock
()
-
clk
);
fflush
(
stdout
);
fflush
(
stdout
);
}
}
...
...
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