Skip to content

Commit 1ace3d0

Browse files
fix #7372
Signed-off-by: Nikolaj Bjorner <[email protected]>
1 parent 8061765 commit 1ace3d0

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/sat/sat_config.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ namespace sat {
158158
m_lookahead_delta_fraction = p.lookahead_delta_fraction();
159159
m_lookahead_use_learned = p.lookahead_use_learned();
160160
if (m_lookahead_delta_fraction < 0 || m_lookahead_delta_fraction > 1.0) {
161+
verbose_stream() << m_lookahead_delta_fraction << "\n";
161162
throw sat_param_exception("invalid value for delta fraction. It should be a number in the interval 0 to 1");
162163
}
163164

src/util/gparams.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ Module Name:
2222
#include "util/mutex.h"
2323
#include "util/region.h"
2424
#include "util/map.h"
25+
#include "util/rational.h"
2526

2627
static DECLARE_MUTEX(gparams_mux);
2728

@@ -351,8 +352,8 @@ struct gparams::imp {
351352
ps.set_uint(param_name, static_cast<unsigned>(val));
352353
}
353354
else if (k == CPK_DOUBLE) {
354-
char * aux;
355-
double val = strtod(value, &aux);
355+
rational r(value);
356+
double val = r.get_double();
356357
ps.set_double(param_name, val);
357358
}
358359
else if (k == CPK_BOOL) {

0 commit comments

Comments
 (0)