summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndres Noetzli <andres.noetzli@gmail.com>2021-06-02 12:41:14 -0700
committerGitHub <noreply@github.com>2021-06-02 19:41:14 +0000
commit9258aa062ebefb8af7727567470f9a387181d466 (patch)
tree7536a3775b50dd78f978e5a0d982f64182273651 /src
parent85a300898d7815973c064fe2c7b5b33473a71a5c (diff)
Remove option to ignore negative memberships (#6665)
Fixes #6661. The option `--strings-inm` could be used to ignore negative membership constraints. However, this option made the string solver model-unsound or produced incorrect models if the user provided a benchmark that actually contained negative membership constraints. The solver did not check for negative membership constraints and did not warn the user about them. Because the option is not really being used, this commit removes it.
Diffstat (limited to 'src')
-rw-r--r--src/options/strings_options.toml8
-rw-r--r--src/theory/strings/regexp_solver.cpp6
2 files changed, 1 insertions, 13 deletions
diff --git a/src/options/strings_options.toml b/src/options/strings_options.toml
index 958136494..8ee25c265 100644
--- a/src/options/strings_options.toml
+++ b/src/options/strings_options.toml
@@ -26,14 +26,6 @@ name = "Strings Theory"
help = "strings eager check"
[[option]]
- name = "stringIgnNegMembership"
- category = "regular"
- long = "strings-inm"
- type = "bool"
- default = "false"
- help = "internal for strings: ignore negative membership constraints (fragment checking is needed, left to users for now)"
-
-[[option]]
name = "stringLazyPreproc"
category = "regular"
long = "strings-lazy-pp"
diff --git a/src/theory/strings/regexp_solver.cpp b/src/theory/strings/regexp_solver.cpp
index 164e4e1c0..18815c731 100644
--- a/src/theory/strings/regexp_solver.cpp
+++ b/src/theory/strings/regexp_solver.cpp
@@ -125,11 +125,7 @@ void RegExpSolver::check(const std::map<Node, std::vector<Node> >& mems)
{
for (const Node& m : mr.second)
{
- bool polarity = m.getKind() != NOT;
- if (polarity || !options::stringIgnNegMembership())
- {
- allMems[m] = mr.first;
- }
+ allMems[m] = mr.first;
}
}
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback