mirror of
https://github.com/Z3Prover/z3
synced 2025-06-06 14:13:23 +00:00
build fixes
Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
This commit is contained in:
parent
007ecb4ab2
commit
cf81f86c67
2 changed files with 7 additions and 1 deletions
|
@ -225,6 +225,13 @@ struct z3_replayer::imp {
|
||||||
return curr() == '-' || curr() == '.' || ('0' <= curr() && curr() <= '9') || curr() == 'e' || curr() == 'E';
|
return curr() == '-' || curr() == '.' || ('0' <= curr() && curr() <= '9') || curr() == 'e' || curr() == 'E';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if (!defined(strtof))
|
||||||
|
float strtof(const char * str, char ** end_ptr) {
|
||||||
|
// Note: This may introduce a double-rounding problem.
|
||||||
|
return (float)strtod(str, end_ptr);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
void read_float() {
|
void read_float() {
|
||||||
m_string.reset();
|
m_string.reset();
|
||||||
while (is_double_char()) {
|
while (is_double_char()) {
|
||||||
|
|
|
@ -146,7 +146,6 @@ void fpa2bv_converter::mk_const(func_decl * f, expr_ref & result) {
|
||||||
app_ref bv(m);
|
app_ref bv(m);
|
||||||
unsigned bv_sz = 1 + ebits + (sbits - 1);
|
unsigned bv_sz = 1 + ebits + (sbits - 1);
|
||||||
bv = mk_fresh_const(0, bv_sz);
|
bv = mk_fresh_const(0, bv_sz);
|
||||||
m_fresh_bv_variables.insert(bv);
|
|
||||||
|
|
||||||
sgn = m_bv_util.mk_extract(bv_sz - 1, bv_sz - 1, bv);
|
sgn = m_bv_util.mk_extract(bv_sz - 1, bv_sz - 1, bv);
|
||||||
e = m_bv_util.mk_extract(bv_sz - 2, sbits - 1, bv);
|
e = m_bv_util.mk_extract(bv_sz - 2, sbits - 1, bv);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue