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
8ad3d6be
Commit
8ad3d6be
authored
Jan 08, 2017
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug fixes by Clifford Wolf.
parent
a2813847
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
4 deletions
+8
-4
src/map/if/ifLibLut.c
+4
-0
src/opt/sbd/sbdCnf.c
+2
-2
src/opt/sfm/sfmCnf.c
+2
-2
No files found.
src/map/if/ifLibLut.c
View file @
8ad3d6be
...
@@ -75,6 +75,7 @@ If_LibLut_t * If_LibLutRead( char * FileName )
...
@@ -75,6 +75,7 @@ If_LibLut_t * If_LibLutRead( char * FileName )
Abc_Print
(
1
,
"Error in the LUT library file
\"
%s
\"
.
\n
"
,
FileName
);
Abc_Print
(
1
,
"Error in the LUT library file
\"
%s
\"
.
\n
"
,
FileName
);
ABC_FREE
(
p
->
pName
);
ABC_FREE
(
p
->
pName
);
ABC_FREE
(
p
);
ABC_FREE
(
p
);
fclose
(
pFile
);
return
NULL
;
return
NULL
;
}
}
...
@@ -93,6 +94,7 @@ If_LibLut_t * If_LibLutRead( char * FileName )
...
@@ -93,6 +94,7 @@ If_LibLut_t * If_LibLutRead( char * FileName )
ABC_FREE
(
p
->
pName
);
ABC_FREE
(
p
->
pName
);
ABC_FREE
(
p
);
ABC_FREE
(
p
);
Abc_Print
(
1
,
"LUT %d has too many pins (%d). Max allowed is %d.
\n
"
,
i
,
k
,
i
);
Abc_Print
(
1
,
"LUT %d has too many pins (%d). Max allowed is %d.
\n
"
,
i
,
k
,
i
);
fclose
(
pFile
);
return
NULL
;
return
NULL
;
}
}
...
@@ -105,6 +107,7 @@ If_LibLut_t * If_LibLutRead( char * FileName )
...
@@ -105,6 +107,7 @@ If_LibLut_t * If_LibLutRead( char * FileName )
ABC_FREE
(
p
->
pName
);
ABC_FREE
(
p
->
pName
);
ABC_FREE
(
p
);
ABC_FREE
(
p
);
Abc_Print
(
1
,
"Skipping LUTs of size more than %d.
\n
"
,
i
);
Abc_Print
(
1
,
"Skipping LUTs of size more than %d.
\n
"
,
i
);
fclose
(
pFile
);
return
NULL
;
return
NULL
;
}
}
i
++
;
i
++
;
...
@@ -136,6 +139,7 @@ If_LibLut_t * If_LibLutRead( char * FileName )
...
@@ -136,6 +139,7 @@ If_LibLut_t * If_LibLutRead( char * FileName )
}
}
}
}
fclose
(
pFile
);
return
p
;
return
p
;
}
}
...
...
src/opt/sbd/sbdCnf.c
View file @
8ad3d6be
...
@@ -44,7 +44,7 @@ ABC_NAMESPACE_IMPL_START
...
@@ -44,7 +44,7 @@ ABC_NAMESPACE_IMPL_START
***********************************************************************/
***********************************************************************/
void
Sbd_PrintCnf
(
Vec_Str_t
*
vCnf
)
void
Sbd_PrintCnf
(
Vec_Str_t
*
vCnf
)
{
{
char
Entry
;
signed
char
Entry
;
int
i
,
Lit
;
int
i
,
Lit
;
Vec_StrForEachEntry
(
vCnf
,
Entry
,
i
)
Vec_StrForEachEntry
(
vCnf
,
Entry
,
i
)
{
{
...
@@ -121,7 +121,7 @@ int Sbd_TruthToCnf( word Truth, int nVars, Vec_Int_t * vCover, Vec_Str_t * vCnf
...
@@ -121,7 +121,7 @@ int Sbd_TruthToCnf( word Truth, int nVars, Vec_Int_t * vCover, Vec_Str_t * vCnf
void
Sbd_TranslateCnf
(
Vec_Wec_t
*
vRes
,
Vec_Str_t
*
vCnf
,
Vec_Int_t
*
vFaninMap
,
int
iPivotVar
)
void
Sbd_TranslateCnf
(
Vec_Wec_t
*
vRes
,
Vec_Str_t
*
vCnf
,
Vec_Int_t
*
vFaninMap
,
int
iPivotVar
)
{
{
Vec_Int_t
*
vClause
;
Vec_Int_t
*
vClause
;
char
Entry
;
signed
char
Entry
;
int
i
,
Lit
;
int
i
,
Lit
;
Vec_WecClear
(
vRes
);
Vec_WecClear
(
vRes
);
vClause
=
Vec_WecPushLevel
(
vRes
);
vClause
=
Vec_WecPushLevel
(
vRes
);
...
...
src/opt/sfm/sfmCnf.c
View file @
8ad3d6be
...
@@ -45,7 +45,7 @@ ABC_NAMESPACE_IMPL_START
...
@@ -45,7 +45,7 @@ ABC_NAMESPACE_IMPL_START
***********************************************************************/
***********************************************************************/
void
Sfm_PrintCnf
(
Vec_Str_t
*
vCnf
)
void
Sfm_PrintCnf
(
Vec_Str_t
*
vCnf
)
{
{
char
Entry
;
signed
char
Entry
;
int
i
,
Lit
;
int
i
,
Lit
;
Vec_StrForEachEntry
(
vCnf
,
Entry
,
i
)
Vec_StrForEachEntry
(
vCnf
,
Entry
,
i
)
{
{
...
@@ -153,7 +153,7 @@ Vec_Wec_t * Sfm_CreateCnf( Sfm_Ntk_t * p )
...
@@ -153,7 +153,7 @@ Vec_Wec_t * Sfm_CreateCnf( Sfm_Ntk_t * p )
void
Sfm_TranslateCnf
(
Vec_Wec_t
*
vRes
,
Vec_Str_t
*
vCnf
,
Vec_Int_t
*
vFaninMap
,
int
iPivotVar
)
void
Sfm_TranslateCnf
(
Vec_Wec_t
*
vRes
,
Vec_Str_t
*
vCnf
,
Vec_Int_t
*
vFaninMap
,
int
iPivotVar
)
{
{
Vec_Int_t
*
vClause
;
Vec_Int_t
*
vClause
;
char
Entry
;
signed
char
Entry
;
int
i
,
Lit
;
int
i
,
Lit
;
Vec_WecClear
(
vRes
);
Vec_WecClear
(
vRes
);
vClause
=
Vec_WecPushLevel
(
vRes
);
vClause
=
Vec_WecPushLevel
(
vRes
);
...
...
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