diff options
author | yoni206 <yoni206@users.noreply.github.com> | 2020-07-28 10:44:55 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-28 12:44:55 -0500 |
commit | 7ad41fe71b9f7d206ee6d1c642bb7926bffea6c7 (patch) | |
tree | fc5d9cb07fbce3a28395eb30aabb6d6633724e02 /src/parser/smt2/smt2.cpp | |
parent | e63544462eb850a27f7b416f2f0613efb96eef1d (diff) |
Supporting seq.nth (#4723)
This PR adds support for seq.nth operator by eliminating it during expandDefinitions, based on sub-sequences.
Tests that use this operator are also included.
Diffstat (limited to 'src/parser/smt2/smt2.cpp')
-rw-r--r-- | src/parser/smt2/smt2.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/parser/smt2/smt2.cpp b/src/parser/smt2/smt2.cpp index 69c4eabfd..eef23edfd 100644 --- a/src/parser/smt2/smt2.cpp +++ b/src/parser/smt2/smt2.cpp @@ -181,6 +181,7 @@ void Smt2::addStringOperators() { addOperator(api::SEQ_REV, "seq.rev"); addOperator(api::SEQ_REPLACE_ALL, "seq.replace_all"); addOperator(api::SEQ_UNIT, "seq.unit"); + addOperator(api::SEQ_NTH, "seq.nth"); } // at the moment, we only use this syntax for smt2.6 if (getLanguage() == language::input::LANG_SMTLIB_V2_6 |