3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-23 17:15:31 +00:00

log solver-value

This commit is contained in:
Jakob Rath 2023-11-06 15:22:31 +01:00
parent 50eb43500e
commit dade8178e5

View file

@ -739,8 +739,16 @@ namespace polysat {
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 (y != null_var) LOG("Variable v" << y << " with slice " << slice_pp(*this, sy) << " by literal " << lit_pp(m_solver, ylit));
if (x != null_var) {
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
VERIFY(x != null_var || y == null_var);