mirror of
https://github.com/Z3Prover/z3
synced 2025-05-03 22:05:45 +00:00
patching merge (#6780)
* patching merge * fix the format and some warnings Signed-off-by: Lev Nachmanson <levnach@hotmail.com> * a fix in the delta calculation * test patching * try a new version of get_patching_deltas Signed-off-by: Lev Nachmanson <levnach@hotmail.com> * remove dead code from lp_tst and try optimizing patching * add comments, replace VERIFY with lp_assert Signed-off-by: Lev Nachmanson <levnach@hotmail.com> * cleanup --------- Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
This commit is contained in:
parent
b2c035ea3f
commit
30a2ced9aa
13 changed files with 1989 additions and 1800 deletions
|
@ -48,6 +48,15 @@ public:
|
|||
SASSERT(m_vector.empty());
|
||||
m_set.insert(j);
|
||||
}
|
||||
|
||||
void remove(constraint_index j) {
|
||||
m_set.remove(j);
|
||||
unsigned i = 0;
|
||||
for (auto& p : m_vector)
|
||||
if (p.first != j)
|
||||
m_vector[i++] = p;
|
||||
m_vector.shrink(i);
|
||||
}
|
||||
|
||||
void add_expl(const explanation& e) {
|
||||
if (e.m_vector.empty()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue