mirror of
https://github.com/Z3Prover/z3
synced 2025-06-12 09:03:26 +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:
parent
7d599fa047
commit
e778f3e65b
1 changed files with 3 additions and 3 deletions
|
@ -175,17 +175,17 @@ public:
|
||||||
if (m.contains(*m_elems[i], *t)) {
|
if (m.contains(*m_elems[i], *t)) {
|
||||||
found = true;
|
found = true;
|
||||||
}
|
}
|
||||||
if (m.contains(*t, *m_elems[i])) {
|
else if (m.contains(*t, *m_elems[i])) {
|
||||||
m.deallocate(m_elems[i]);
|
m.deallocate(m_elems[i]);
|
||||||
--j;
|
--j;
|
||||||
|
continue;
|
||||||
}
|
}
|
||||||
else if (i != j) {
|
if (i != j) {
|
||||||
m_elems[j] = m_elems[i];
|
m_elems[j] = m_elems[i];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (j != sz) m_elems.resize(j);
|
if (j != sz) m_elems.resize(j);
|
||||||
if (found) {
|
if (found) {
|
||||||
SASSERT(j == i);
|
|
||||||
m.deallocate(t);
|
m.deallocate(t);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue