summaryrefslogtreecommitdiff
path: root/src/theory/quantifiers
diff options
context:
space:
mode:
authorAndrew Reynolds <andrew.j.reynolds@gmail.com>2020-07-06 18:48:10 -0500
committerGitHub <noreply@github.com>2020-07-06 18:48:10 -0500
commit9678f58a7fedab4fc061761c58382f4023686108 (patch)
tree5ccc2e13b00a32a2e8fa87604b4a2f3a92b12e7e /src/theory/quantifiers
parentae0bfbdacfec8b2d21b10cbc4955305f49a62a54 (diff)
Front end support for sequences (#4690)
With this PR, we now support a preliminary draft of a theory of sequences. This PR adds front end support for sequences in the smt2 parser, in the new API, adds regressions and unit tests for them. As discussed offline, many of the string kinds are given a sequence version in the external API, but not in the internal one. This means that a special case for such kinds, getKindHelper was added to Term. We do not yet support proper smt2 printing of sequences, which will require access to this code for Kind conversions (to distinguish e.g. str.++ from seq.++).
Diffstat (limited to 'src/theory/quantifiers')
-rw-r--r--src/theory/quantifiers/sygus/sygus_grammar_cons.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/theory/quantifiers/sygus/sygus_grammar_cons.cpp b/src/theory/quantifiers/sygus/sygus_grammar_cons.cpp
index 074b023a2..cb30a408e 100644
--- a/src/theory/quantifiers/sygus/sygus_grammar_cons.cpp
+++ b/src/theory/quantifiers/sygus/sygus_grammar_cons.cpp
@@ -409,7 +409,7 @@ void CegGrammarConstructor::mkSygusConstantsForType(TypeNode type,
else if (type.isStringLike())
{
ops.push_back(strings::Word::mkEmptyWord(type));
- if (type.isString())
+ if (type.isString()) // string-only
{
// Dummy character "A". This is not necessary for sequences which
// have the generic constructor seq.unit.
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback