mirror of
https://github.com/Z3Prover/z3
synced 2025-07-19 19:02:02 +00:00
Merge pull request #1396 from mtrberzi/substr-bug
Fix incorrect term in theory_str str.substr reduction
This commit is contained in:
commit
82c26509ae
1 changed files with 1 additions and 1 deletions
|
@ -1450,7 +1450,7 @@ namespace smt {
|
||||||
// pos < strlen(base)
|
// pos < strlen(base)
|
||||||
// --> pos + -1*strlen(base) < 0
|
// --> pos + -1*strlen(base) < 0
|
||||||
argumentsValid_terms.push_back(mk_not(m, m_autil.mk_ge(
|
argumentsValid_terms.push_back(mk_not(m, m_autil.mk_ge(
|
||||||
m_autil.mk_add(substrPos, m_autil.mk_mul(minusOne, substrLen)),
|
m_autil.mk_add(substrPos, m_autil.mk_mul(minusOne, mk_strlen(substrBase))),
|
||||||
zero)));
|
zero)));
|
||||||
|
|
||||||
// len >= 0
|
// len >= 0
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue