mirror of
https://github.com/Z3Prover/z3
synced 2025-04-23 17:15:31 +00:00
DoC: fix bug in filter_project with '(not (= c1 c2))' style constraints
Signed-off-by: Nuno Lopes <a-nlopes@microsoft.com>
This commit is contained in:
parent
985ad30349
commit
de73a4d893
2 changed files with 26 additions and 5 deletions
|
@ -376,15 +376,31 @@ public:
|
|||
unsigned_vector remove;
|
||||
remove.push_back(0);
|
||||
remove.push_back(2);
|
||||
|
||||
t1 = mk_full(sig2);
|
||||
apply_filter(*t1, conds[2].get());
|
||||
apply_filter_project(*t1, remove, conds[2].get());
|
||||
apply_filter_project(*t1, remove, conds[3].get());
|
||||
t1->deallocate();
|
||||
|
||||
t1 = mk_full(sig2);
|
||||
apply_filter(*t1, conds[3].get());
|
||||
apply_filter_project(*t1, remove, conds[2].get());
|
||||
apply_filter_project(*t1, remove, conds[3].get());
|
||||
t1->deallocate();
|
||||
|
||||
for (unsigned i = 0; i < conds.size(); ++i) {
|
||||
t1 = mk_full(sig2);
|
||||
apply_filter_project(*t1, remove, conds[i].get());
|
||||
t1->deallocate();
|
||||
}
|
||||
|
||||
remove[1] = 1;
|
||||
for (unsigned i = 0; i < conds.size(); ++i) {
|
||||
t1 = mk_full(sig2);
|
||||
apply_filter_project(*t1, remove, conds[i].get());
|
||||
t1->deallocate();
|
||||
}
|
||||
t1->deallocate();
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue