diff options
author | Andres Noetzli <andres.noetzli@gmail.com> | 2019-01-18 18:12:49 -0800 |
---|---|---|
committer | Andres Noetzli <andres.noetzli@gmail.com> | 2019-01-18 18:12:49 -0800 |
commit | 8bd325cdaa6b292a8b89524d4851ccd23e400594 (patch) | |
tree | b57953c48f5c17f4cf4f6e13c56034d19763b46c | |
parent | b127833e7421e73ff5ddabd01fe613d7d77986e5 (diff) |
add option to disable contains commit
-rw-r--r-- | src/options/strings_options.toml | 9 | ||||
-rw-r--r-- | src/theory/strings/theory_strings_rewriter.cpp | 5 |
2 files changed, 14 insertions, 0 deletions
diff --git a/src/options/strings_options.toml b/src/options/strings_options.toml index bc5fbedd6..17d68b3b7 100644 --- a/src/options/strings_options.toml +++ b/src/options/strings_options.toml @@ -243,3 +243,12 @@ header = "options/strings_options.h" default = "true" read_only = true help = "Enable the entailment checks in the strings rewriter" + +[[option]] + name = "stringsRewriterEntailContainsChecks" + category = "expert" + long = "strings-rewriter-entail-contains-checks" + type = "bool" + default = "true" + read_only = true + help = "Enable the contains entailment checks in the strings rewriter" diff --git a/src/theory/strings/theory_strings_rewriter.cpp b/src/theory/strings/theory_strings_rewriter.cpp index e1f119244..ae3afb65c 100644 --- a/src/theory/strings/theory_strings_rewriter.cpp +++ b/src/theory/strings/theory_strings_rewriter.cpp @@ -3919,6 +3919,11 @@ Node TheoryStringsRewriter::checkEntailContains(Node a, Node b, bool fullRewriter) { + if (!options::stringsRewriterEntailContainsChecks()) + { + return Node::null(); + } + NodeManager* nm = NodeManager::currentNM(); Node ctn = nm->mkNode(kind::STRING_STRCTN, a, b); |