mirror of
https://github.com/Z3Prover/z3
synced 2025-04-15 05:18:44 +00:00
relations with no columns are not always non-empty.
fix that in the udoc datalog backend Signed-off-by: Nuno Lopes <a-nlopes@microsoft.com>
This commit is contained in:
parent
aaa931e0d5
commit
b7397b6967
|
@ -63,7 +63,7 @@ namespace datalog {
|
|||
m_elems.push_back(fact2doc(f));
|
||||
}
|
||||
bool udoc_relation::empty() const {
|
||||
if (get_signature().empty()) return false;
|
||||
if (m_elems.is_empty()) return true;
|
||||
// TBD: make this a complete check
|
||||
for (unsigned i = 0; i < m_elems.size(); ++i) {
|
||||
if (!dm.is_empty(m_elems[i])) return false;
|
||||
|
|
Loading…
Reference in a new issue