mirror of
https://github.com/Z3Prover/z3
synced 2026-02-21 07:54:42 +00:00
parent
bd0620f245
commit
9bb579c5c8
2 changed files with 12 additions and 6 deletions
|
|
@ -366,7 +366,7 @@ namespace datalog {
|
|||
*/
|
||||
table_base * table_base::complement(func_decl* p, const table_element * func_columns) const {
|
||||
const table_signature & sig = get_signature();
|
||||
SASSERT(sig.functional_columns()==0 || func_columns!=0);
|
||||
SASSERT(sig.functional_columns() == 0 || func_columns != 0);
|
||||
SASSERT(sig.first_functional() <= 1);
|
||||
|
||||
table_base * res = get_plugin().mk_empty(sig);
|
||||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue