diff options
author | Andres Noetzli <andres.noetzli@gmail.com> | 2019-01-25 20:27:23 -0800 |
---|---|---|
committer | Andres Noetzli <andres.noetzli@gmail.com> | 2019-01-25 20:27:23 -0800 |
commit | 0334a62d2b6d54055fcfee6d182439a5b056d44d (patch) | |
tree | 1723cdf76e43a25105c69d14432978bf3c2a832b | |
parent | 069b60cd73b5c04de9c5f251908f9b5facd1c7af (diff) |
Add approx opt
-rw-r--r-- | src/options/strings_options.toml | 9 | ||||
-rw-r--r-- | src/theory/strings/theory_strings_rewriter.cpp | 2 |
2 files changed, 10 insertions, 1 deletions
diff --git a/src/options/strings_options.toml b/src/options/strings_options.toml index ab32ddbec..dd9599c5c 100644 --- a/src/options/strings_options.toml +++ b/src/options/strings_options.toml @@ -245,6 +245,15 @@ header = "options/strings_options.h" help = "Enable the entailment checks in the strings rewriter" [[option]] + name = "stringsRewriterApprox" + category = "expert" + long = "strings-rewriter-entail-approx" + type = "bool" + 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" diff --git a/src/theory/strings/theory_strings_rewriter.cpp b/src/theory/strings/theory_strings_rewriter.cpp index 061493b96..b0ad90c29 100644 --- a/src/theory/strings/theory_strings_rewriter.cpp +++ b/src/theory/strings/theory_strings_rewriter.cpp @@ -3925,7 +3925,7 @@ bool TheoryStringsRewriter::checkEntailArith(Node a, bool strict) } bool ret = checkEntailArithInternal(ar); - if (!ret) + if (!ret && options::stringsRewriterApprox()) { // try with approximations ret = checkEntailArithApprox(ar); |