3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-08-11 21:50:52 +00:00
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2020-05-17 05:35:32 -07:00
parent 34cc60410f
commit fc8dfe3e40
5 changed files with 50 additions and 47 deletions

View file

@ -1739,7 +1739,7 @@ br_status seq_rewriter::mk_str_lt(expr* a, expr* b, expr_ref& result) {
br_status seq_rewriter::mk_str_from_code(expr* a, expr_ref& result) {
rational r;
if (m_autil.is_numeral(a, r)) {
if (r.is_neg() || r > m_util.str.max_char_value()) {
if (r.is_neg() || r > zstring::max_char()) {
result = m_util.str.mk_string(symbol(""));
}
else {