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
32b09a1e
Commit
32b09a1e
authored
Oct 30, 2012
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improvements to the truth table computations.
parent
3dfa92f2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
src/misc/util/utilTruth.h
+4
-4
src/opt/dau/dauCanon.c
+3
-3
No files found.
src/misc/util/utilTruth.h
View file @
32b09a1e
...
...
@@ -642,7 +642,7 @@ static inline void Abc_TtPrintDigit( int Digit )
static
inline
void
Abc_TtPrintHex
(
word
*
pTruth
,
int
nVars
)
{
word
*
pThis
,
*
pLimit
=
pTruth
+
Abc_TtWordNum
(
nVars
);
int
k
,
nDigits
=
1
<<
(
nVars
-
2
)
;
int
k
;
assert
(
nVars
>=
2
);
for
(
pThis
=
pTruth
;
pThis
<
pLimit
;
pThis
++
)
for
(
k
=
0
;
k
<
16
;
k
++
)
...
...
@@ -652,7 +652,7 @@ static inline void Abc_TtPrintHex( word * pTruth, int nVars )
static
inline
void
Abc_TtPrintHexRev
(
word
*
pTruth
,
int
nVars
)
{
word
*
pThis
;
int
k
,
nDigits
=
1
<<
(
nVars
-
2
)
;
int
k
;
assert
(
nVars
>=
2
);
for
(
pThis
=
pTruth
+
Abc_TtWordNum
(
nVars
)
-
1
;
pThis
>=
pTruth
;
pThis
--
)
for
(
k
=
15
;
k
>=
0
;
k
--
)
...
...
@@ -662,7 +662,7 @@ static inline void Abc_TtPrintHexRev( word * pTruth, int nVars )
static
inline
void
Abc_TtPrintHexSpecial
(
word
*
pTruth
,
int
nVars
)
{
word
*
pThis
;
int
k
,
nDigits
=
1
<<
(
nVars
-
2
)
;
int
k
;
assert
(
nVars
>=
2
);
for
(
pThis
=
pTruth
+
Abc_TtWordNum
(
nVars
)
-
1
;
pThis
>=
pTruth
;
pThis
--
)
for
(
k
=
0
;
k
<
16
;
k
++
)
...
...
@@ -685,7 +685,7 @@ static inline void Abc_TtPrintHexSpecial( word * pTruth, int nVars )
static
inline
void
Abc_TtPrintBinary
(
word
*
pTruth
,
int
nVars
)
{
word
*
pThis
,
*
pLimit
=
pTruth
+
Abc_TtWordNum
(
nVars
);
int
k
,
nDigits
=
1
<<
(
nVars
-
2
)
;
int
k
;
assert
(
nVars
>=
2
);
for
(
pThis
=
pTruth
;
pThis
<
pLimit
;
pThis
++
)
for
(
k
=
0
;
k
<
64
;
k
++
)
...
...
src/opt/dau/dauCanon.c
View file @
32b09a1e
...
...
@@ -74,7 +74,7 @@ void Abc_TtConfactorTest7( word * pTruth, int nVars, int N )
{
word
Cof
[
4
][
1024
];
int
i
,
nWords
=
Abc_TtWordNum
(
nVars
);
int
Counter
=
0
;
//
int Counter = 0;
for
(
i
=
0
;
i
<
nVars
-
1
;
i
++
)
{
Abc_TtCopy
(
Cof
[
0
],
pTruth
,
nWords
,
0
);
...
...
@@ -221,7 +221,7 @@ void Abc_TtConfactorTest4( word * pTruth, int nVars, int N )
{
word
Cof
[
4
][
1024
];
int
i
,
j
,
nWords
=
Abc_TtWordNum
(
nVars
);
int
Counter
=
0
,
Sum
=
0
;
int
Sum
=
0
;
for
(
i
=
0
;
i
<
nVars
-
1
;
i
++
)
for
(
j
=
i
+
1
;
j
<
nVars
;
j
++
)
{
...
...
@@ -508,7 +508,7 @@ void Abc_TtConfactorTest10( word * pTruth, int nVars, int N )
void
Abc_TtConfactorTest
(
word
*
pTruth
,
int
nVars
,
int
N
)
{
char
pCanonPerm
[
32
];
static
word
pCopy1
[
1024
];
//
static word pCopy1[1024];
static
word
pCopy2
[
1024
];
int
nWords
=
Abc_TtWordNum
(
nVars
);
...
...
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