mirror of
https://github.com/Z3Prover/z3
synced 2025-08-10 05:00:51 +00:00
parent
bd0620f245
commit
9bb579c5c8
2 changed files with 12 additions and 6 deletions
|
@ -377,6 +377,8 @@ namespace datalog {
|
|||
|
||||
if (sig.first_functional() == 0) {
|
||||
if (empty()) {
|
||||
if (fact.empty())
|
||||
throw default_exception("empty relations cannot be complemented");
|
||||
res->add_fact(fact);
|
||||
}
|
||||
return res;
|
||||
|
|
|
@ -274,15 +274,19 @@ namespace datalog {
|
|||
}
|
||||
|
||||
void bitvector_table::add_fact(const table_fact & f) {
|
||||
if (m_num_cols > 0) {
|
||||
m_bv.set(fact2offset(f.c_ptr()));
|
||||
}
|
||||
}
|
||||
|
||||
void bitvector_table::remove_fact(const table_element* fact) {
|
||||
if (m_num_cols > 0) {
|
||||
m_bv.unset(fact2offset(fact));
|
||||
}
|
||||
}
|
||||
|
||||
bool bitvector_table::contains_fact(const table_fact & f) const {
|
||||
return m_bv.get(fact2offset(f.c_ptr()));
|
||||
return !f.empty() && m_bv.get(fact2offset(f.c_ptr()));
|
||||
}
|
||||
|
||||
table_base::iterator bitvector_table::begin() const {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue