3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-08-20 02:00:22 +00:00

going over niil_solver (#79)

* change conflict to th_axiom

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>

* going over niil_solver

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2018-08-26 19:31:49 -07:00 committed by Lev Nachmanson
parent a9a45b7b47
commit e16d8118ac
4 changed files with 138 additions and 118 deletions

View file

@ -1332,13 +1332,11 @@ std::ostream& lar_solver::print_term(lar_term const& term, std::ostream & out) c
mpq val = p.coeff();
if (first) {
first = false;
} else if (is_pos(val)) {
out << " + ";
} else {
if (is_pos(val)) {
out << " + ";
} else {
out << " - ";
val = -val;
}
out << " - ";
val = -val;
}
if (val == -numeric_traits<mpq>::one())
out << " - ";
@ -1367,8 +1365,7 @@ mpq lar_solver::get_left_side_val(const lar_base_constraint & cns, const std::u
std::ostream& lar_solver::print_constraint(const lar_base_constraint * c, std::ostream & out) const {
print_left_side_of_constraint(c, out);
out << " " << lconstraint_kind_string(c->m_kind) << " " << c->m_right_side << std::endl;
return out;
return out << " " << lconstraint_kind_string(c->m_kind) << " " << c->m_right_side << std::endl;
}
void lar_solver::fill_var_set_for_random_update(unsigned sz, var_index const * vars, vector<unsigned>& column_list) {