3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-23 17:15:31 +00:00

DoC: implement slow path of filter_negated using join+project.

disable fast path since it's broken

Signed-off-by: Nuno Lopes <a-nlopes@microsoft.com>
This commit is contained in:
Nuno Lopes 2014-10-06 18:10:03 +01:00
parent 19e291f479
commit 893d51eae8
2 changed files with 30 additions and 76 deletions

View file

@ -146,8 +146,8 @@ public:
test_filter_neg4(false);
test_filter_neg4(true);
test_filter_neg6(false);
test_filter_neg6(true);
test_filter_neg5(false);
test_filter_neg5(true);
test_filter_neg();
test_filter_neg2();
@ -657,6 +657,10 @@ public:
if (disable_fast) p.disable_fast_pass();
apply_filter_neg(*tgt, *neg, cols1, cols2);
tgt->deallocate();
tgt = mk_full(sig1);
apply_filter_neg(*neg, *tgt, cols2, cols1);
tgt->deallocate();
neg->deallocate();
}
@ -675,7 +679,6 @@ public:
cols2.push_back(2);
cols3.push_back(0);
cols3.push_back(1);
cols3.push_back(2);
udoc_relation* tgt = mk_full(sig1);
udoc_relation* neg = mk_full(sig2);
rel_mut filter_id = p.mk_filter_identical_fn(*tgt, cols3.size(), cols3.c_ptr());
@ -686,9 +689,6 @@ public:
neg->deallocate();
}
// TBD: unit test to expose similar bug as projection had.
// you can't just remove columns when there are side-constraints in neg.
void set_random(udoc_relation& r, unsigned num_vals) {
unsigned num_bits = r.get_dm().num_tbits();
udoc_relation* full = mk_full(r.get_signature());