diff options
author | Andrew Reynolds <andrew.j.reynolds@gmail.com> | 2020-04-15 02:34:33 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-15 02:34:33 -0500 |
commit | 3f3a0445fe772360d8a2da3069a5f082c031d7f8 (patch) | |
tree | bf78f4bbe23ca8f88cf23aca0f31e0594765799f /src/theory/subs_minimize.cpp | |
parent | c808605ef15eb79f9ddc2d1a2b4f6dd052530877 (diff) |
Convert more cases of strings to words (#4206)
Diffstat (limited to 'src/theory/subs_minimize.cpp')
-rw-r--r-- | src/theory/subs_minimize.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/theory/subs_minimize.cpp b/src/theory/subs_minimize.cpp index 21862a251..e5e6e392e 100644 --- a/src/theory/subs_minimize.cpp +++ b/src/theory/subs_minimize.cpp @@ -17,6 +17,7 @@ #include "expr/node_algorithm.h" #include "theory/bv/theory_bv_utils.h" #include "theory/rewriter.h" +#include "theory/strings/word.h" using namespace std; using namespace CVC4::kind; @@ -448,7 +449,7 @@ bool SubstitutionMinimize::isSingularArg(Node n, Kind k, unsigned arg) if ((arg == 1 && k == STRING_STRCTN) || (arg == 0 && k == STRING_SUBSTR)) { // empty string - if (n.getConst<String>().size() == 0) + if (strings::Word::getLength(n) == 0) { return true; } |