mirror of
https://github.com/Z3Prover/z3
synced 2025-04-22 16:45:31 +00:00
datalog: optimize previous commit
Signed-off-by: Nuno Lopes <a-nlopes@microsoft.com>
This commit is contained in:
parent
5548ecc853
commit
0c4d82de58
1 changed files with 2 additions and 6 deletions
|
@ -633,12 +633,8 @@ namespace datalog {
|
|||
|
||||
// add at least one column for the negative filter
|
||||
if (pt_len != ut_len && filtered_res == execution_context::void_register) {
|
||||
relation_signature & head_sig = m_reg_signatures[head_reg];
|
||||
if (head_sig.empty()) {
|
||||
make_full_relation(head_pred, m_reg_signatures[head_reg], filtered_res, acc);
|
||||
} else {
|
||||
make_add_unbound_column(r, 0, head_pred, filtered_res, head_sig[0], filtered_res, dealloc, acc);
|
||||
}
|
||||
relation_signature empty_signature;
|
||||
make_full_relation(head_pred, empty_signature, filtered_res, acc);
|
||||
}
|
||||
|
||||
//enforce negative predicates
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue