From 9be8854786a6d27dfde21525e810a3b2f15e9d21 Mon Sep 17 00:00:00 2001 From: Aina Niemetz Date: Mon, 6 Apr 2020 13:29:05 -0700 Subject: [PATCH] New C++ API: Rename Solver::mkTermInternal. (#4217) This is for consistency with the other helper functions. --- src/api/cvc4cpp.cpp | 6 +++--- src/api/cvc4cpp.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/api/cvc4cpp.cpp b/src/api/cvc4cpp.cpp index ba42c4a93..8d6de0ade 100644 --- a/src/api/cvc4cpp.cpp +++ b/src/api/cvc4cpp.cpp @@ -2386,7 +2386,7 @@ Term Solver::mkTermFromKind(Kind kind) const CVC4_API_SOLVER_TRY_CATCH_END; } -Term Solver::mkTermInternal(Kind kind, const std::vector& children) const +Term Solver::mkTermHelper(Kind kind, const std::vector& children) const { CVC4_API_SOLVER_TRY_CATCH_BEGIN; for (size_t i = 0, size = children.size(); i < size; ++i) @@ -3259,12 +3259,12 @@ Term Solver::mkTerm(Kind kind, Term child1, Term child2) const Term Solver::mkTerm(Kind kind, Term child1, Term child2, Term child3) const { // need to use internal term call to check e.g. associative construction - return mkTermInternal(kind, std::vector{child1, child2, child3}); + return mkTermHelper(kind, std::vector{child1, child2, child3}); } Term Solver::mkTerm(Kind kind, const std::vector& children) const { - return mkTermInternal(kind, children); + return mkTermHelper(kind, children); } Term Solver::mkTerm(Op op) const diff --git a/src/api/cvc4cpp.h b/src/api/cvc4cpp.h index a2683e773..5c435d93e 100644 --- a/src/api/cvc4cpp.h +++ b/src/api/cvc4cpp.h @@ -2852,7 +2852,7 @@ class CVC4_PUBLIC Solver * @param children the children of the term * @return the Term */ - Term mkTermInternal(Kind kind, const std::vector& children) const; + Term mkTermHelper(Kind kind, const std::vector& children) const; /** * Create a vector of datatype sorts, using unresolved sorts. -- 2.30.2