3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2026-02-21 07:54:42 +00:00
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2020-04-06 19:43:32 -07:00
parent bd0620f245
commit 9bb579c5c8
2 changed files with 12 additions and 6 deletions

View file

@ -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;