Require `--strings-exp` when using `str.substr` (#4916)
authorAndres Noetzli <andres.noetzli@gmail.com>
Wed, 19 Aug 2020 17:12:34 +0000 (10:12 -0700)
committerGitHub <noreply@github.com>
Wed, 19 Aug 2020 17:12:34 +0000 (10:12 -0700)
commit466520464a8ed862c3a323bb2fbcc92332d9384b
tree76bcb32dd61b2b00c047bd36a426f423d525ff08
parent1c67e4cc188b4812cedb614e6e998ea944ddb320
Require `--strings-exp` when using `str.substr` (#4916)

Fixes #4915. Previously, `str.substr` did not require `--strings-exp`.
However, when `--strings-exp` is not active, we do not send terms to the
extended solver for registration, which meant that `str.substr` was
never reduced. This commit adds `str.substr` to the operators that
require `--strings-exp`.
18 files changed:
src/theory/strings/term_registry.cpp
test/regress/CMakeLists.txt
test/regress/regress0/seq/intseq.smt2
test/regress/regress0/seq/intseq_dt.smt2
test/regress/regress0/seq/seq-ex3.smt2
test/regress/regress0/seq/seq-ex4.smt2
test/regress/regress0/seq/seq-ex5-dd.smt2
test/regress/regress0/seq/seq-nth-uf-z.smt2
test/regress/regress0/seq/seq-nth-uf.smt2
test/regress/regress0/seq/seq-nth-undef.smt2
test/regress/regress0/seq/seq-nth.smt2
test/regress/regress0/strings/issue2958.smt2
test/regress/regress0/strings/issue4915.smt2 [new file with mode: 0644]
test/regress/regress0/strings/re.all.smt2
test/regress/regress0/strings/strings-charat.cvc
test/regress/regress1/quantifiers/issue2970-string-var-elim.smt2
test/regress/regress1/strings/at001.smt2
test/regress/regress1/strings/substr001.smt2