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
7ce7e9ec
Commit
7ce7e9ec
authored
Sep 07, 2017
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Compiler warnings.
parent
af4c76e2
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
src/sat/glucose/AbcGlucose.cpp
+2
-2
src/sat/glucose/Options.h
+4
-4
src/sat/glucose/Vec.h
+1
-1
No files found.
src/sat/glucose/AbcGlucose.cpp
View file @
7ce7e9ec
...
...
@@ -121,8 +121,8 @@ void glucose_print_stats(Solver& s, abctime clk)
{
double
cpu_time
=
(
double
)(
unsigned
)
clk
/
CLOCKS_PER_SEC
;
double
mem_used
=
memUsed
();
printf
(
"c restarts : %d (%d conflicts on average)
\n
"
,
(
int
)
s
.
starts
,
s
.
starts
>
0
?
s
.
conflicts
/
s
.
starts
:
0
);
printf
(
"c blocked restarts : %d (multiple: %d)
\n
"
,
(
int
)
s
.
nbstopsrestarts
,
s
.
nbstopsrestartssame
);
printf
(
"c restarts : %d (%d conflicts on average)
\n
"
,
(
int
)
s
.
starts
,
s
.
starts
>
0
?
(
int
)(
s
.
conflicts
/
s
.
starts
)
:
0
);
printf
(
"c blocked restarts : %d (multiple: %d)
\n
"
,
(
int
)
s
.
nbstopsrestarts
,
(
int
)
s
.
nbstopsrestartssame
);
printf
(
"c last block at restart : %d
\n
"
,
(
int
)
s
.
lastblockatrestart
);
printf
(
"c nb ReduceDB : %-12d
\n
"
,
(
int
)
s
.
nbReduceDB
);
printf
(
"c nb removed Clauses : %-12d
\n
"
,
(
int
)
s
.
nbRemovedClauses
);
...
...
src/sat/glucose/Options.h
View file @
7ce7e9ec
...
...
@@ -62,7 +62,7 @@ class Option
struct
OptionLt
{
bool
operator
()(
const
Option
*
x
,
const
Option
*
y
)
{
int
test1
=
strcmp
(
x
->
category
,
y
->
category
);
return
test1
<
0
||
test1
==
0
&&
strcmp
(
x
->
type_name
,
y
->
type_name
)
<
0
;
return
test1
<
0
||
(
test1
==
0
&&
strcmp
(
x
->
type_name
,
y
->
type_name
)
<
0
)
;
}
};
...
...
@@ -284,15 +284,15 @@ class Int64Option : public Option
if
(
range
.
begin
==
INT64_MIN
)
fprintf
(
stderr
,
"imin"
);
else
fprintf
(
stderr
,
"%4d"
,
range
.
begin
);
fprintf
(
stderr
,
"%4d"
,
(
int
)
range
.
begin
);
fprintf
(
stderr
,
" .. "
);
if
(
range
.
end
==
INT64_MAX
)
fprintf
(
stderr
,
"imax"
);
else
fprintf
(
stderr
,
"%4d"
,
range
.
end
);
fprintf
(
stderr
,
"%4d"
,
(
int
)
range
.
end
);
fprintf
(
stderr
,
"] (default: %d)
\n
"
,
value
);
fprintf
(
stderr
,
"] (default: %d)
\n
"
,
(
int
)
value
);
if
(
verbose
){
fprintf
(
stderr
,
"
\n
%s
\n
"
,
description
);
fprintf
(
stderr
,
"
\n
"
);
...
...
src/sat/glucose/Vec.h
View file @
7ce7e9ec
...
...
@@ -96,7 +96,7 @@ template<class T>
void
vec
<
T
>::
capacity
(
int
min_cap
)
{
if
(
cap
>=
min_cap
)
return
;
int
add
=
imax
((
min_cap
-
cap
+
1
)
&
~
1
,
((
cap
>>
1
)
+
2
)
&
~
1
);
// NOTE: grow by approximately 3/2
if
(
add
>
INT_MAX
-
cap
||
((
data
=
(
T
*
)
::
realloc
(
data
,
(
cap
+=
add
)
*
sizeof
(
T
)))
==
NULL
)
&&
errno
==
ENOMEM
)
if
(
add
>
INT_MAX
-
cap
||
((
(
data
=
(
T
*
)
::
realloc
(
data
,
(
cap
+=
add
)
*
sizeof
(
T
)))
==
NULL
)
&&
errno
==
ENOMEM
)
)
throw
OutOfMemoryException
();
}
...
...
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