diff options
author | Andres Noetzli <andres.noetzli@gmail.com> | 2019-04-23 17:21:11 -0700 |
---|---|---|
committer | Andres Noetzli <andres.noetzli@gmail.com> | 2019-04-23 17:21:11 -0700 |
commit | 38b7da6d9f0b0a2ae1d59a60d7dbcbd126fb6ac9 (patch) | |
tree | eb2ee2023c6ded07c7adee5a1708a4b455fe9455 | |
parent | 80b250bad040c55122c0677c267fbc88fd19bb58 (diff) |
Take into account exp sizenormalFormsHeuristic2
-rw-r--r-- | src/theory/strings/normal_form.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/theory/strings/normal_form.cpp b/src/theory/strings/normal_form.cpp index 249f53bf7..6622afebd 100644 --- a/src/theory/strings/normal_form.cpp +++ b/src/theory/strings/normal_form.cpp @@ -205,10 +205,13 @@ uint64_t NormalForm::getComplexity() } } while (!visit.empty()); - d_complexity = 0; + d_complexity = d_exp.size(); for (const Node& n : d_nf) { d_complexity += visited[n]; + if (!n.isConst()) { + d_complexity++; + } } d_complexityComputed = true; |