Skip to content

Commit

Permalink
address comments from review
Browse files Browse the repository at this point in the history
  • Loading branch information
yoni206 committed Jun 6, 2024
1 parent ede33cd commit c45dcdb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 14 deletions.
13 changes: 1 addition & 12 deletions examples/api/cpp/uf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,24 +17,13 @@

#include <iostream>

using namespace std;
using namespace cvc5;

void prefixPrintGetValue(Solver& slv, Term t, int level = 0)
{
cout << "slv.getValue(" << t << "): " << slv.getValue(t) << endl;

for (const Term& c : t)
{
prefixPrintGetValue(slv, c, level + 1);
}
}

int main()
{
TermManager tm;
Solver slv(tm);
slv.setLogic(string("QF_UF"));
slv.setLogic("QF_UF");

// Sorts
Sort u = tm.mkUninterpretedSort("U");
Expand Down
4 changes: 2 additions & 2 deletions examples/api/python/uf.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@
assertions = tm.mkTerm(Kind.AND,
tm.mkTerm(Kind.EQUAL, x, f_x),
tm.mkTerm(Kind.EQUAL, y, f_y),
p_f_x.notTerm(), p_f_y
)
p_f_x.notTerm(),
p_f_y)

slv.assertFormula(assertions)
assert(slv.checkSat().isSat())
Expand Down

0 comments on commit c45dcdb

Please sign in to comment.