mirror of
https://github.com/Z3Prover/z3
synced 2025-04-12 04:03:39 +00:00
parent
8061765574
commit
1ace3d0cf3
|
@ -158,6 +158,7 @@ namespace sat {
|
||||||
m_lookahead_delta_fraction = p.lookahead_delta_fraction();
|
m_lookahead_delta_fraction = p.lookahead_delta_fraction();
|
||||||
m_lookahead_use_learned = p.lookahead_use_learned();
|
m_lookahead_use_learned = p.lookahead_use_learned();
|
||||||
if (m_lookahead_delta_fraction < 0 || m_lookahead_delta_fraction > 1.0) {
|
if (m_lookahead_delta_fraction < 0 || m_lookahead_delta_fraction > 1.0) {
|
||||||
|
verbose_stream() << m_lookahead_delta_fraction << "\n";
|
||||||
throw sat_param_exception("invalid value for delta fraction. It should be a number in the interval 0 to 1");
|
throw sat_param_exception("invalid value for delta fraction. It should be a number in the interval 0 to 1");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -22,6 +22,7 @@ Notes:
|
||||||
#include "util/mutex.h"
|
#include "util/mutex.h"
|
||||||
#include "util/region.h"
|
#include "util/region.h"
|
||||||
#include "util/map.h"
|
#include "util/map.h"
|
||||||
|
#include "util/rational.h"
|
||||||
|
|
||||||
static DECLARE_MUTEX(gparams_mux);
|
static DECLARE_MUTEX(gparams_mux);
|
||||||
|
|
||||||
|
@ -351,8 +352,8 @@ public:
|
||||||
ps.set_uint(param_name, static_cast<unsigned>(val));
|
ps.set_uint(param_name, static_cast<unsigned>(val));
|
||||||
}
|
}
|
||||||
else if (k == CPK_DOUBLE) {
|
else if (k == CPK_DOUBLE) {
|
||||||
char * aux;
|
rational r(value);
|
||||||
double val = strtod(value, &aux);
|
double val = r.get_double();
|
||||||
ps.set_double(param_name, val);
|
ps.set_double(param_name, val);
|
||||||
}
|
}
|
||||||
else if (k == CPK_BOOL) {
|
else if (k == CPK_BOOL) {
|
||||||
|
|
Loading…
Reference in a new issue