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
68faa04a
Commit
68faa04a
authored
Apr 28, 2017
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Compiler warnings.
parent
1faab72a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
src/misc/util/abc_global.h
+3
-3
src/misc/vec/vecStr.h
+1
-1
src/sat/bsat/satClause.h
+3
-3
No files found.
src/misc/util/abc_global.h
View file @
68faa04a
...
@@ -312,16 +312,16 @@ static inline void Abc_Print( int level, const char * format, ... )
...
@@ -312,16 +312,16 @@ static inline void Abc_Print( int level, const char * format, ... )
printf
(
"Warning: "
);
printf
(
"Warning: "
);
}
else
{
}
else
{
if
(
level
==
ABC_ERROR
)
if
(
level
==
ABC_ERROR
)
Gia_ManToBridgeText
(
stdout
,
strlen
(
"Error: "
),
(
unsigned
char
*
)
"Error: "
);
Gia_ManToBridgeText
(
stdout
,
(
int
)
strlen
(
"Error: "
),
(
unsigned
char
*
)
"Error: "
);
else
if
(
level
==
ABC_WARNING
)
else
if
(
level
==
ABC_WARNING
)
Gia_ManToBridgeText
(
stdout
,
strlen
(
"Warning: "
),
(
unsigned
char
*
)
"Warning: "
);
Gia_ManToBridgeText
(
stdout
,
(
int
)
strlen
(
"Warning: "
),
(
unsigned
char
*
)
"Warning: "
);
}
}
va_start
(
args
,
format
);
va_start
(
args
,
format
);
if
(
Abc_FrameIsBridgeMode
()
)
if
(
Abc_FrameIsBridgeMode
()
)
{
{
char
*
tmp
=
vnsprintf
(
format
,
args
);
char
*
tmp
=
vnsprintf
(
format
,
args
);
Gia_ManToBridgeText
(
stdout
,
strlen
(
tmp
),
(
unsigned
char
*
)
tmp
);
Gia_ManToBridgeText
(
stdout
,
(
int
)
strlen
(
tmp
),
(
unsigned
char
*
)
tmp
);
free
(
tmp
);
free
(
tmp
);
}
}
else
else
...
...
src/misc/vec/vecStr.h
View file @
68faa04a
...
@@ -671,7 +671,7 @@ static inline void Vec_StrPrintNumStar( Vec_Str_t * p, int Num, int nDigits )
...
@@ -671,7 +671,7 @@ static inline void Vec_StrPrintNumStar( Vec_Str_t * p, int Num, int nDigits )
***********************************************************************/
***********************************************************************/
static
inline
void
Vec_StrPrintStr
(
Vec_Str_t
*
p
,
const
char
*
pStr
)
static
inline
void
Vec_StrPrintStr
(
Vec_Str_t
*
p
,
const
char
*
pStr
)
{
{
int
i
,
Length
=
strlen
(
pStr
);
int
i
,
Length
=
(
int
)
strlen
(
pStr
);
for
(
i
=
0
;
i
<
Length
;
i
++
)
for
(
i
=
0
;
i
<
Length
;
i
++
)
Vec_StrPush
(
p
,
pStr
[
i
]
);
Vec_StrPush
(
p
,
pStr
[
i
]
);
}
}
...
...
src/sat/bsat/satClause.h
View file @
68faa04a
...
@@ -199,8 +199,8 @@ static inline void Sat_MemAlloc_( Sat_Mem_t * p, int nPageSize )
...
@@ -199,8 +199,8 @@ static inline void Sat_MemAlloc_( Sat_Mem_t * p, int nPageSize )
p
->
uPageMask
=
(
unsigned
)((
1
<<
nPageSize
)
-
1
);
p
->
uPageMask
=
(
unsigned
)((
1
<<
nPageSize
)
-
1
);
p
->
nPagesAlloc
=
256
;
p
->
nPagesAlloc
=
256
;
p
->
pPages
=
ABC_CALLOC
(
int
*
,
p
->
nPagesAlloc
);
p
->
pPages
=
ABC_CALLOC
(
int
*
,
p
->
nPagesAlloc
);
p
->
pPages
[
0
]
=
ABC_ALLOC
(
int
,
(
1
<<
p
->
nPageSize
)
);
p
->
pPages
[
0
]
=
ABC_ALLOC
(
int
,
(
((
unsigned
)
1
)
<<
p
->
nPageSize
)
);
p
->
pPages
[
1
]
=
ABC_ALLOC
(
int
,
(
1
<<
p
->
nPageSize
)
);
p
->
pPages
[
1
]
=
ABC_ALLOC
(
int
,
(
((
unsigned
)
1
)
<<
p
->
nPageSize
)
);
p
->
iPage
[
0
]
=
0
;
p
->
iPage
[
0
]
=
0
;
p
->
iPage
[
1
]
=
1
;
p
->
iPage
[
1
]
=
1
;
Sat_MemWriteLimit
(
p
->
pPages
[
0
],
2
);
Sat_MemWriteLimit
(
p
->
pPages
[
0
],
2
);
...
@@ -315,7 +315,7 @@ static inline int Sat_MemAppend( Sat_Mem_t * p, int * pArray, int nSize, int lrn
...
@@ -315,7 +315,7 @@ static inline int Sat_MemAppend( Sat_Mem_t * p, int * pArray, int nSize, int lrn
p
->
nPagesAlloc
*=
2
;
p
->
nPagesAlloc
*=
2
;
}
}
if
(
p
->
pPages
[
p
->
iPage
[
lrn
]]
==
NULL
)
if
(
p
->
pPages
[
p
->
iPage
[
lrn
]]
==
NULL
)
p
->
pPages
[
p
->
iPage
[
lrn
]]
=
ABC_ALLOC
(
int
,
(
1
<<
p
->
nPageSize
)
);
p
->
pPages
[
p
->
iPage
[
lrn
]]
=
ABC_ALLOC
(
int
,
(
((
unsigned
)
1
)
<<
p
->
nPageSize
)
);
pPage
=
p
->
pPages
[
p
->
iPage
[
lrn
]];
pPage
=
p
->
pPages
[
p
->
iPage
[
lrn
]];
Sat_MemWriteLimit
(
pPage
,
2
);
Sat_MemWriteLimit
(
pPage
,
2
);
}
}
...
...
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