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
81077d8a
Commit
81077d8a
authored
Apr 23, 2014
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Experiments with permutations.
parent
4f093483
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/misc/extra/extraUtilPerm.c
+3
-3
No files found.
src/misc/extra/extraUtilPerm.c
View file @
81077d8a
...
...
@@ -85,7 +85,7 @@ struct Abc_ZddMan_
Abc_ZddObj
*
pObjs
;
int
nCacheLookups
;
int
nCacheMisses
;
int
nMemory
;
word
nMemory
;
int
*
pV2TI
;
int
*
pV2TJ
;
int
*
pT2V
;
...
...
@@ -229,7 +229,7 @@ void Abc_ZddManFree( Abc_ZddMan * p )
{
printf
(
"ZDD stats: Var = %d Obj = %d All = %d Hits = %d Miss = %d "
,
p
->
nVars
,
p
->
nObjs
,
p
->
nObjsAlloc
,
p
->
nCacheLookups
-
p
->
nCacheMisses
,
p
->
nCacheMisses
);
printf
(
"Mem = %.2f MB
\n
"
,
4
.
0
*
p
->
nMemory
/
(
1
<<
20
)
);
printf
(
"Mem = %.2f MB
\n
"
,
4
.
0
*
(
int
)(
p
->
nMemory
/
(
1
<<
20
)
)
);
ABC_FREE
(
p
->
pT2V
);
ABC_FREE
(
p
->
pV2TI
);
ABC_FREE
(
p
->
pV2TJ
);
...
...
@@ -866,7 +866,7 @@ void Abc_EnumerateCubeStatesZdd()
int
ZddTurn1
,
ZddTurn2
,
ZddTurn3
,
ZddTurns9
,
ZddAll
,
ZddReached
,
ZddNew
;
abctime
clk
=
Abc_Clock
();
printf
(
"Enumerating states of 2x2x2 cube.
\n
"
);
p
=
Abc_ZddManAlloc
(
24
*
23
/
2
,
1
<<
2
8
);
p
=
Abc_ZddManAlloc
(
24
*
23
/
2
,
1
<<
2
7
);
Abc_ZddManCreatePerms
(
p
,
24
);
// init state
printf
(
"Iter %2d -> %8d "
,
0
,
1
);
...
...
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