mirror of
https://github.com/Z3Prover/z3
synced 2025-04-08 10:25:18 +00:00
build fixes
Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
This commit is contained in:
parent
007ecb4ab2
commit
cf81f86c67
|
@ -225,6 +225,13 @@ struct z3_replayer::imp {
|
|||
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() {
|
||||
m_string.reset();
|
||||
while (is_double_char()) {
|
||||
|
|
|
@ -146,7 +146,6 @@ void fpa2bv_converter::mk_const(func_decl * f, expr_ref & result) {
|
|||
app_ref bv(m);
|
||||
unsigned bv_sz = 1 + ebits + (sbits - 1);
|
||||
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);
|
||||
e = m_bv_util.mk_extract(bv_sz - 2, sbits - 1, bv);
|
||||
|
|
Loading…
Reference in a new issue