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
d3ec4493
Commit
d3ec4493
authored
Aug 06, 2016
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Windows complier errors.
parent
2ded0512
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
6 deletions
+11
-6
src/bool/lucky/luckySimple.c
+9
-4
src/opt/dau/dauCanon.c
+2
-2
No files found.
src/bool/lucky/luckySimple.c
View file @
d3ec4493
...
...
@@ -196,9 +196,10 @@ void simpleMinimalGroups(word* x, word* pAux, word* minimal, int* pGroups, int n
/* variables */
int
i
,
j
,
o
,
nn
;
permInfo
*
pi
;
int
*
a
,
*
c
,
*
m
;
/* reorder groups and calculate group offsets */
int
offset
[
nGroups
]
;
int
*
offset
=
ABC_ALLOC
(
int
,
nGroups
)
;
o
=
0
;
j
=
0
;
...
...
@@ -224,9 +225,9 @@ void simpleMinimalGroups(word* x, word* pAux, word* minimal, int* pGroups, int n
/* iterate through all combinations of pGroups using mixed radix enumeration */
nn
=
(
nGroups
<<
1
)
+
1
;
int
a
[
nn
]
;
int
c
[
nn
]
;
int
m
[
nn
]
;
a
=
ABC_ALLOC
(
int
,
nn
)
;
c
=
ABC_ALLOC
(
int
,
nn
)
;
m
=
ABC_ALLOC
(
int
,
nn
)
;
/* fill a and m arrays */
m
[
0
]
=
2
;
...
...
@@ -295,6 +296,10 @@ void simpleMinimalGroups(word* x, word* pAux, word* minimal, int* pGroups, int n
c
[
j
]
=
1
;
a
[
j
]
++
;
}
ABC_FREE
(
offset
);
ABC_FREE
(
a
);
ABC_FREE
(
c
);
ABC_FREE
(
m
);
Kit_TruthCopy_64bit
(
x
,
minimal
,
nVars
);
}
...
...
src/opt/dau/dauCanon.c
View file @
d3ec4493
...
...
@@ -1219,8 +1219,9 @@ unsigned Abc_TtCanonicizeHie( Abc_TtMan_t * p, word * pTruthInit, int nVars, cha
if
(
fExact
)
{
extern
void
simpleMinimalGroups
(
word
*
x
,
word
*
pAux
,
word
*
minimal
,
int
*
pGroups
,
int
nGroups
,
permInfo
**
pis
,
int
nVars
,
int
fFlipOutput
,
int
fFlipInput
);
word
pAuxWord
[
1024
],
pAuxWord1
[
1024
];
int
pGroups
[
nVars
];
int
pGroups
[
16
];
int
nGroups
=
0
;
permInfo
*
pis
[
17
];
// get groups
pGroups
[
0
]
=
0
;
for
(
i
=
0
;
i
<
nVars
-
1
;
i
++
)
{
...
...
@@ -1236,7 +1237,6 @@ unsigned Abc_TtCanonicizeHie( Abc_TtMan_t * p, word * pTruthInit, int nVars, cha
nGroups
++
;
// compute permInfo from 0 to nVars (incl.)
permInfo
*
pis
[
nVars
+
1
];
for
(
i
=
0
;
i
<=
nVars
;
i
++
)
{
pis
[
i
]
=
setPermInfoPtr
(
i
);
}
...
...
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