mirror of
https://github.com/Z3Prover/z3
synced 2025-04-28 19:35:50 +00:00
add restore_patched_values
Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
This commit is contained in:
parent
47d5515b78
commit
6a5579341d
3 changed files with 16 additions and 2 deletions
|
@ -1381,6 +1381,13 @@ void core::patch_monomial(lpvar j) {
|
|||
}
|
||||
}
|
||||
|
||||
void core::restore_patched_values() {
|
||||
for (const auto & p : m_changes_of_patch) {
|
||||
m_lar_solver.set_column_value(p.m_key, lp::impq(p.m_value));
|
||||
m_lar_solver.remove_column_from_inf_set(p.m_key);
|
||||
}
|
||||
}
|
||||
|
||||
void core::patch_monomials() {
|
||||
m_changes_of_patch.reset();
|
||||
auto to_refine = m_to_refine.index();
|
||||
|
@ -1393,6 +1400,9 @@ void core::patch_monomials() {
|
|||
if (m_to_refine.size() == 0)
|
||||
break;
|
||||
}
|
||||
if (m_to_refine.size()) {
|
||||
restore_patched_values();
|
||||
}
|
||||
NOT_IMPLEMENTED_YET();
|
||||
/*
|
||||
If the tableau is not feasible we need to fix all non-linear
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue