mirror of
https://github.com/AdaCore/cvc5.git
synced 2026-02-12 12:32:16 -08:00
Introduce internal namespace and remove api namespace. (#8443)
The public cvc5 API now lives in the cvc5 namespace. All internal parts were moved into the (new) internal namespace.
The final hierarchy will be as follows:
cvc5
~~ public API
::context
::internal
::parser
::main
After this PR it will be:
cvc5
~~ public API
::internal
::context
::main
::parser
This commit is contained in:
@@ -24,12 +24,11 @@
|
||||
* @param body the function body
|
||||
* @return a string version of define-fun
|
||||
*/
|
||||
std::string defineFunToString(const cvc5::api::Term& f,
|
||||
const std::vector<cvc5::api::Term> params,
|
||||
const cvc5::api::Term body)
|
||||
std::string defineFunToString(const cvc5::Term& f,
|
||||
const std::vector<cvc5::Term> params,
|
||||
const cvc5::Term body)
|
||||
{
|
||||
|
||||
cvc5::api::Sort sort = f.getSort();
|
||||
cvc5::Sort sort = f.getSort();
|
||||
if (sort.isFunction())
|
||||
{
|
||||
sort = sort.getFunctionCodomainSort();
|
||||
@@ -48,16 +47,16 @@ std::string defineFunToString(const cvc5::api::Term& f,
|
||||
return ss.str();
|
||||
}
|
||||
|
||||
void printSynthSolutions(const std::vector<cvc5::api::Term>& terms,
|
||||
const std::vector<cvc5::api::Term>& sols)
|
||||
void printSynthSolutions(const std::vector<cvc5::Term>& terms,
|
||||
const std::vector<cvc5::Term>& sols)
|
||||
{
|
||||
std::cout << '(' << std::endl;
|
||||
|
||||
for (size_t i = 0, n = terms.size(); i < n; ++i)
|
||||
{
|
||||
std::vector<cvc5::api::Term> params;
|
||||
cvc5::api::Term body;
|
||||
if (sols[i].getKind() == cvc5::api::LAMBDA)
|
||||
std::vector<cvc5::Term> params;
|
||||
cvc5::Term body;
|
||||
if (sols[i].getKind() == cvc5::LAMBDA)
|
||||
{
|
||||
params.insert(params.end(), sols[i][0].begin(), sols[i][0].end());
|
||||
body = sols[i][1];
|
||||
|
||||
Reference in New Issue
Block a user