Skip to content

Commit

Permalink
fix #7372
Browse files Browse the repository at this point in the history
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
  • Loading branch information
NikolajBjorner committed Sep 12, 2024
1 parent 8061765 commit 1ace3d0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/sat/sat_config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ namespace sat {
m_lookahead_delta_fraction = p.lookahead_delta_fraction();
m_lookahead_use_learned = p.lookahead_use_learned();
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");
}

Expand Down
5 changes: 3 additions & 2 deletions src/util/gparams.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ Module Name:
#include "util/mutex.h"
#include "util/region.h"
#include "util/map.h"
#include "util/rational.h"

static DECLARE_MUTEX(gparams_mux);

Expand Down Expand Up @@ -351,8 +352,8 @@ struct gparams::imp {
ps.set_uint(param_name, static_cast<unsigned>(val));
}
else if (k == CPK_DOUBLE) {
char * aux;
double val = strtod(value, &aux);
rational r(value);
double val = r.get_double();
ps.set_double(param_name, val);
}
else if (k == CPK_BOOL) {
Expand Down

0 comments on commit 1ace3d0

Please sign in to comment.
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy