mirror of
https://github.com/Z3Prover/z3
synced 2025-06-25 15:23:41 +00:00
log solver-value
This commit is contained in:
parent
50eb43500e
commit
dade8178e5
1 changed files with 10 additions and 2 deletions
|
@ -739,8 +739,16 @@ namespace polysat {
|
||||||
swap(xlit, ylit);
|
swap(xlit, ylit);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (x != null_var) LOG("Variable v" << x << " with slice " << slice_pp(*this, sx) << " by literal " << lit_pp(m_solver, xlit));
|
if (x != null_var) {
|
||||||
if (y != null_var) LOG("Variable v" << y << " with slice " << slice_pp(*this, sy) << " by literal " << lit_pp(m_solver, ylit));
|
LOG("Variable v" << x << " with slice " << slice_pp(*this, sx) << " by literal " << lit_pp(m_solver, xlit));
|
||||||
|
if (m_solver.is_assigned(x))
|
||||||
|
LOG("solver-value " << assignment_pp(m_solver, x, m_solver.get_value(x)));
|
||||||
|
}
|
||||||
|
if (y != null_var) {
|
||||||
|
LOG("Variable v" << y << " with slice " << slice_pp(*this, sy) << " by literal " << lit_pp(m_solver, ylit));
|
||||||
|
if (m_solver.is_assigned(y))
|
||||||
|
LOG("solver-value " << assignment_pp(m_solver, y, m_solver.get_value(y)));
|
||||||
|
}
|
||||||
|
|
||||||
// conflict has either 0 or 2 vars
|
// conflict has either 0 or 2 vars
|
||||||
VERIFY(x != null_var || y == null_var);
|
VERIFY(x != null_var || y == null_var);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue