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:
parent
58f3dce2be
commit
5f78ca9b58
|
@ -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();
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue