Skip to content

Commit

Permalink
ea
Browse files Browse the repository at this point in the history
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
  • Loading branch information
NikolajBjorner committed Jun 6, 2022
1 parent b629960 commit dca1dcc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/sat/smt/arith_diagnostics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ namespace arith {
if (m_nla) m_nla->collect_statistics(st);
}

void solver::add_assumptions() {
void solver::explain_assumptions() {
m_arith_hint.reset();
unsigned i = 0;
for (auto const & ev : m_explanation) {
Expand Down Expand Up @@ -119,7 +119,7 @@ namespace arith {
if (!ctx.use_drat())
return nullptr;
m_arith_hint.m_ty = ty;
add_assumptions();
explain_assumptions();
if (lit != sat::null_literal)
m_arith_hint.m_literals.push_back({rational(1), ~lit});
return &m_arith_hint;
Expand All @@ -129,7 +129,7 @@ namespace arith {
if (!ctx.use_drat())
return nullptr;
m_arith_hint.m_ty = sat::hint_type::implied_eq_h;
add_assumptions();
explain_assumptions();
m_arith_hint.m_diseqs.push_back({a->get_expr_id(), b->get_expr_id()});
return &m_arith_hint;
}
Expand Down
2 changes: 1 addition & 1 deletion src/sat/smt/arith_solver.h
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ namespace arith {
sat::proof_hint m_farkas2;
sat::proof_hint const* explain(sat::hint_type ty, sat::literal lit = sat::null_literal);
sat::proof_hint const* explain_implied_eq(euf::enode* a, euf::enode* b);
void add_assumptions();
void explain_assumptions();


public:
Expand Down

1 comment on commit dca1dcc

@NikolajBjorner
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add_assumption is overloaded so breaks the Linux build. Use instead the name explain_assumption

Please sign in to comment.