mirror of
https://github.com/Z3Prover/z3
synced 2025-04-11 03:33:35 +00:00
another fix to str.to.int/int.to.str semantics
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
fb17362dff
commit
a39b0b201a
|
@ -1103,7 +1103,7 @@ br_status seq_rewriter::mk_str_stoi(expr* a, expr_ref& result) {
|
|||
}
|
||||
expr* b;
|
||||
if (m_util.str.is_itos(a, b)) {
|
||||
result = b;
|
||||
result = m().mk_ite(m_autil.mk_ge(b, m_autil.mk_int(0)), b, m_autil.mk_int(-1));
|
||||
return BR_DONE;
|
||||
}
|
||||
return BR_FAILED;
|
||||
|
|
Loading…
Reference in a new issue