3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-15 05:18:44 +00:00

DoC: fix bug in insertion when inserting an element equal to on on the disjunction already

Signed-off-by: Nuno Lopes <a-nlopes@microsoft.com>
This commit is contained in:
Nuno Lopes 2014-10-02 12:49:38 +01:00
parent 7d599fa047
commit e778f3e65b

View file

@ -175,17 +175,17 @@ public:
if (m.contains(*m_elems[i], *t)) {
found = true;
}
if (m.contains(*t, *m_elems[i])) {
else if (m.contains(*t, *m_elems[i])) {
m.deallocate(m_elems[i]);
--j;
continue;
}
else if (i != j) {
if (i != j) {
m_elems[j] = m_elems[i];
}
}
if (j != sz) m_elems.resize(j);
if (found) {
SASSERT(j == i);
m.deallocate(t);
}
else {