Skip to content

Commit

Permalink
fix lemma logging in nlsat
Browse files Browse the repository at this point in the history
Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
  • Loading branch information
levnach committed Jun 17, 2024
1 parent e4b3df2 commit bf3615d
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/nlsat/nlsat_solver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3698,10 +3698,12 @@ namespace nlsat {
std::ostream& display_smt2_arith_decls(std::ostream & out) const {
unsigned sz = m_is_int.size();
for (unsigned i = 0; i < sz; i++) {
if (is_int(i))
out << "(declare-fun x" << i << " () Int)\n";
else
out << "(declare-fun x" << i << " () Real)\n";
if (is_int(i)) {
out << "(declare-fun "; m_display_var(out, i) << " () Int)\n";
}
else {
out << "(declare-fun "; m_display_var(out, i) << " () Real)\n";
}
}
return out;
}
Expand All @@ -3720,7 +3722,7 @@ namespace nlsat {
display_smt2_arith_decls(out);
out << "(assert (and true\n";
for (clause* c : m_clauses) {
display_smt2(out, *c) << "\n";
display_smt2(out, *c, m_display_var) << "\n";
}
out << "))\n" << std::endl;
return out;
Expand Down

0 comments on commit bf3615d

Please sign in to comment.