diff options
author | Andrew Reynolds <andrew.j.reynolds@gmail.com> | 2020-02-25 20:52:10 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-25 20:52:10 -0600 |
commit | 808bb1bd855799535a1b690865dc873793a37f7f (patch) | |
tree | 178d9bb00cccf12c11c6f7284dc66e0d6c8827ec /src/parser/parser.cpp | |
parent | 9301607b58a3b74dcea73c500c6391d6a51093f8 (diff) |
Embed mkAssociative utilities within the API. (#3801)
Towards parser/API migration.
Diffstat (limited to 'src/parser/parser.cpp')
-rw-r--r-- | src/parser/parser.cpp | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/parser/parser.cpp b/src/parser/parser.cpp index 447fb5d76..663be7f1f 100644 --- a/src/parser/parser.cpp +++ b/src/parser/parser.cpp @@ -515,22 +515,6 @@ Expr Parser::mkHoApply(Expr expr, std::vector<Expr>& args) return expr; } -api::Term Parser::mkChain(api::Kind k, const std::vector<api::Term>& args) -{ - if (args.size() == 2) - { - // if this is the case exactly 1 pair will be generated so the - // AND is not required - return d_solver->mkTerm(k, args[0], args[1]); - } - std::vector<api::Term> children; - for (size_t i = 0, nargsmo = args.size() - 1; i < nargsmo; i++) - { - children.push_back(d_solver->mkTerm(k, args[i], args[i + 1])); - } - return d_solver->mkTerm(api::AND, children); -} - bool Parser::isDeclared(const std::string& name, SymbolType type) { switch (type) { case SYM_VARIABLE: |