3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-06 17:44:08 +00:00

z3str3: negative lengths in get_len_value don't count

This commit is contained in:
Murphy Berzish 2019-11-25 14:28:44 -05:00 committed by Nikolaj Bjorner
parent 58f3dce2be
commit 5f78ca9b58

View file

@ -5061,7 +5061,7 @@ namespace smt {
}
TRACE("str", tout << "length of " << mk_ismt2_pp(e, m) << " is " << val << std::endl;);
return val.is_int();
return val.is_int() && val.is_nonneg();
}
/*