summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndres Noetzli <andres.noetzli@gmail.com>2019-04-23 17:21:11 -0700
committerAndres Noetzli <andres.noetzli@gmail.com>2019-04-23 17:21:11 -0700
commit38b7da6d9f0b0a2ae1d59a60d7dbcbd126fb6ac9 (patch)
treeeb2ee2023c6ded07c7adee5a1708a4b455fe9455
parent80b250bad040c55122c0677c267fbc88fd19bb58 (diff)
Take into account exp sizenormalFormsHeuristic2
-rw-r--r--src/theory/strings/normal_form.cpp5
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;
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback