mirror of
https://github.com/Z3Prover/z3
synced 2025-06-06 22:23:22 +00:00
This commit is contained in:
parent
a10de2e975
commit
e14e3ef291
1 changed files with 10 additions and 6 deletions
|
@ -4884,6 +4884,7 @@ bool seq_rewriter::reduce_itos(expr_ref_vector& ls, expr_ref_vector& rs,
|
||||||
str().is_itos(ls.get(0), n) &&
|
str().is_itos(ls.get(0), n) &&
|
||||||
is_string(rs.size(), rs.data(), s)) {
|
is_string(rs.size(), rs.data(), s)) {
|
||||||
std::string s1 = s.encode();
|
std::string s1 = s.encode();
|
||||||
|
try {
|
||||||
rational r(s1.c_str());
|
rational r(s1.c_str());
|
||||||
if (s1 == r.to_string()) {
|
if (s1 == r.to_string()) {
|
||||||
eqs.push_back(n, m_autil.mk_numeral(r, true));
|
eqs.push_back(n, m_autil.mk_numeral(r, true));
|
||||||
|
@ -4892,6 +4893,9 @@ bool seq_rewriter::reduce_itos(expr_ref_vector& ls, expr_ref_vector& rs,
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
catch (...)
|
||||||
|
{ }
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue