diff options
author | Andrew Reynolds <andrew.j.reynolds@gmail.com> | 2020-06-01 09:14:23 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-01 09:14:23 -0500 |
commit | 30673d6ce9a5a1444b33fb11367914df0399e824 (patch) | |
tree | 7cf2b3d779d77342748612adb7bb81abbebfffdb /src/theory/strings/word.h | |
parent | 6e4a5a8c865469aebec9d070c8c1976fed68914a (diff) |
Incorporate sequences into the word interface (#4543)
Also renames a function mkWord -> mkWordFlatten.
Diffstat (limited to 'src/theory/strings/word.h')
-rw-r--r-- | src/theory/strings/word.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/theory/strings/word.h b/src/theory/strings/word.h index b84ea6874..ad1d9bc74 100644 --- a/src/theory/strings/word.h +++ b/src/theory/strings/word.h @@ -37,7 +37,7 @@ class Word static Node mkEmptyWord(Kind k); /** make word from constants in (non-empty) vector vec */ - static Node mkWord(const std::vector<Node>& xs); + static Node mkWordFlatten(const std::vector<Node>& xs); /** Return the length of word x */ static size_t getLength(TNode x); @@ -139,6 +139,8 @@ class Word * Notice that x.overlap(y) = y.roverlap(x) */ static std::size_t roverlap(TNode x, TNode y); + /** Return true if word x is a repetition of the same character */ + static bool isRepeated(TNode x); /** Split constant * * This returns the suffix remainder (resp. prefix remainder when isRev is |