mirror of
https://github.com/Z3Prover/z3
synced 2025-07-21 11:52:05 +00:00
add missing rewrite rule. Issue #731
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
2f67665c7e
commit
cb140011bc
1 changed files with 5 additions and 0 deletions
|
@ -890,6 +890,11 @@ br_status seq_rewriter::mk_str_stoi(expr* a, expr_ref& result) {
|
||||||
result = m_autil.mk_numeral(r, true);
|
result = m_autil.mk_numeral(r, true);
|
||||||
return BR_DONE;
|
return BR_DONE;
|
||||||
}
|
}
|
||||||
|
expr* b;
|
||||||
|
if (m_util.str.is_itos(a, b)) {
|
||||||
|
result = b;
|
||||||
|
return BR_DONE;
|
||||||
|
}
|
||||||
return BR_FAILED;
|
return BR_FAILED;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue