mirror of
https://github.com/Z3Prover/z3
synced 2025-04-07 18:05:21 +00:00
This commit is contained in:
parent
60a25053c6
commit
202ed79a24
|
@ -1227,6 +1227,8 @@ namespace opt {
|
|||
|
||||
if (m_var2is_int[x] && !a.is_one()) {
|
||||
row& r1 = m_rows[row_id1];
|
||||
r1.m_coeff -= r1.m_value;
|
||||
r1.m_value = 0;
|
||||
vector<var> coeffs;
|
||||
mk_coeffs_without(coeffs, r1.m_vars, x);
|
||||
rational c = mod(-eval(coeffs), a);
|
||||
|
|
|
@ -315,14 +315,11 @@ namespace euf {
|
|||
m_egraph.merge(n, nb, c);
|
||||
}
|
||||
if (n->is_equality()) {
|
||||
SASSERT(!m.is_iff(e));
|
||||
if (sign)
|
||||
m_egraph.new_diseq(n);
|
||||
else {
|
||||
SASSERT(!m.is_iff(e));
|
||||
euf::enode* na = n->get_arg(0);
|
||||
euf::enode* nb = n->get_arg(1);
|
||||
m_egraph.merge(na, nb, c);
|
||||
}
|
||||
else
|
||||
m_egraph.merge(n->get_arg(0), n->get_arg(1), c);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -185,8 +185,10 @@ void sexpr::display_atom(std::ostream & out) const {
|
|||
}
|
||||
|
||||
void sexpr::display(std::ostream & out) const {
|
||||
if (!is_composite())
|
||||
if (!is_composite()) {
|
||||
display_atom(out);
|
||||
return;
|
||||
}
|
||||
vector<std::pair<sexpr_composite const *, unsigned> > todo;
|
||||
todo.push_back(std::make_pair(static_cast<sexpr_composite const *>(this), 0));
|
||||
while (!todo.empty()) {
|
||||
|
|
Loading…
Reference in a new issue