mirror of
https://github.com/Z3Prover/z3
synced 2025-10-08 08:51:55 +00:00
add dl_context::has_facts(pred)
Signed-off-by: Nuno Lopes <t-nclaud@microsoft.com>
This commit is contained in:
parent
5f298b6965
commit
1ef17cbe67
4 changed files with 16 additions and 1 deletions
|
@ -497,6 +497,11 @@ namespace datalog {
|
|||
}
|
||||
}
|
||||
|
||||
bool rel_context::has_facts(func_decl * pred) const {
|
||||
relation_base* r = try_get_relation(pred);
|
||||
return r && !r->empty();
|
||||
}
|
||||
|
||||
void rel_context::store_relation(func_decl * pred, relation_base * rel) {
|
||||
get_rmanager().store_relation(pred, rel);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue