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

DoC: compact result of subtract

Signed-off-by: Nuno Lopes <a-nlopes@microsoft.com>
This commit is contained in:
Nuno Lopes 2014-10-01 17:10:35 +01:00
parent cbe23c428f
commit 5211e9aa1a

View file

@ -475,7 +475,8 @@ void doc_manager::subtract(doc const& A, doc const& B, doc_vector& result) {
if (m.set_and(*t, A.pos())) {
r->neg().insert(m, t.detach());
}
result.push_back(r.detach());
if (fold_neg(*r))
result.push_back(r.detach());
for (unsigned i = 0; i < B.neg().size(); ++i) {
r = allocate(A);