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
e026f05a
Commit
e026f05a
authored
Mar 28, 2016
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug fix in truth table reading for funcs with less than 6 vars.
parent
81b70c4d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
src/base/abci/abcDec.c
+1
-1
src/base/abci/abcRpo.c
+1
-1
src/bool/lucky/luckyRead.c
+1
-1
No files found.
src/base/abci/abcDec.c
View file @
e026f05a
...
@@ -91,7 +91,7 @@ static inline void Abc_TruthWriteHexDigit( FILE * pFile, int HexDigit )
...
@@ -91,7 +91,7 @@ static inline void Abc_TruthWriteHexDigit( FILE * pFile, int HexDigit )
void
Abc_TruthReadHex
(
word
*
pTruth
,
char
*
pString
,
int
nVars
)
void
Abc_TruthReadHex
(
word
*
pTruth
,
char
*
pString
,
int
nVars
)
{
{
int
nWords
=
(
nVars
<
7
)
?
1
:
(
1
<<
(
nVars
-
6
));
int
nWords
=
(
nVars
<
7
)
?
1
:
(
1
<<
(
nVars
-
6
));
int
k
,
Digit
,
nDigits
=
(
nWords
<<
4
);
int
k
,
Digit
,
nDigits
=
(
n
Vars
<
7
)
?
(
1
<<
(
nVars
-
2
))
:
(
n
Words
<<
4
);
char
EndSymbol
;
char
EndSymbol
;
// skip the first 2 symbols if they are "0x"
// skip the first 2 symbols if they are "0x"
if
(
pString
[
0
]
==
'0'
&&
pString
[
1
]
==
'x'
)
if
(
pString
[
0
]
==
'0'
&&
pString
[
1
]
==
'x'
)
...
...
src/base/abci/abcRpo.c
View file @
e026f05a
...
@@ -96,7 +96,7 @@ static inline void Abc_TruthWriteHexDigit(FILE * pFile, int HexDigit) {
...
@@ -96,7 +96,7 @@ static inline void Abc_TruthWriteHexDigit(FILE * pFile, int HexDigit) {
static
void
Abc_TruthReadHex
(
word
*
pTruth
,
char
*
pString
,
int
nVars
)
{
static
void
Abc_TruthReadHex
(
word
*
pTruth
,
char
*
pString
,
int
nVars
)
{
int
nWords
=
(
nVars
<
7
)
?
1
:
(
1
<<
(
nVars
-
6
));
int
nWords
=
(
nVars
<
7
)
?
1
:
(
1
<<
(
nVars
-
6
));
int
k
,
Digit
,
nDigits
=
(
nWords
<<
4
);
int
k
,
Digit
,
nDigits
=
(
n
Vars
<
7
)
?
(
1
<<
(
nVars
-
2
))
:
(
n
Words
<<
4
);
char
EndSymbol
;
char
EndSymbol
;
// skip the first 2 symbols if they are "0x"
// skip the first 2 symbols if they are "0x"
if
(
pString
[
0
]
==
'0'
&&
pString
[
1
]
==
'x'
)
if
(
pString
[
0
]
==
'0'
&&
pString
[
1
]
==
'x'
)
...
...
src/bool/lucky/luckyRead.c
View file @
e026f05a
...
@@ -56,7 +56,7 @@ static inline void Abc_TruthWriteHexDigit( FILE * pFile, int HexDigit )
...
@@ -56,7 +56,7 @@ static inline void Abc_TruthWriteHexDigit( FILE * pFile, int HexDigit )
static
inline
void
Abc_TruthReadHex
(
word
*
pTruth
,
char
*
pString
,
int
nVars
)
static
inline
void
Abc_TruthReadHex
(
word
*
pTruth
,
char
*
pString
,
int
nVars
)
{
{
int
nWords
=
(
nVars
<
7
)
?
1
:
(
1
<<
(
nVars
-
6
));
int
nWords
=
(
nVars
<
7
)
?
1
:
(
1
<<
(
nVars
-
6
));
int
k
,
Digit
,
nDigits
=
(
nWords
<<
4
);
int
k
,
Digit
,
nDigits
=
(
n
Vars
<
7
)
?
(
1
<<
(
nVars
-
2
))
:
(
n
Words
<<
4
);
char
EndSymbol
;
char
EndSymbol
;
// skip the first 2 symbols if they are "0x"
// skip the first 2 symbols if they are "0x"
if
(
pString
[
0
]
==
'0'
&&
pString
[
1
]
==
'x'
)
if
(
pString
[
0
]
==
'0'
&&
pString
[
1
]
==
'x'
)
...
...
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