mirror of
https://github.com/Z3Prover/z3
synced 2025-09-04 00:58:07 +00:00
tune and fix doc
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
16f80fce92
commit
918d52f1b0
13 changed files with 188 additions and 103 deletions
|
@ -491,9 +491,10 @@ namespace datalog {
|
|||
|
||||
bool mk_interp_tail_simplifier::transform_rule(rule * r0, rule_ref & res)
|
||||
{
|
||||
rule_ref r(r0, m_context.get_rule_manager());
|
||||
rule_manager& rm = m_context.get_rule_manager();
|
||||
rule_ref r(r0, rm);
|
||||
|
||||
if (r->has_quantifiers()) {
|
||||
if (rm.has_quantifiers(*r)) {
|
||||
res = r;
|
||||
return true;
|
||||
}
|
||||
|
|
|
@ -252,9 +252,10 @@ namespace datalog {
|
|||
}
|
||||
bool has_quantifiers = false;
|
||||
unsigned sz = source.get_num_rules();
|
||||
rule_manager& rm = m_ctx.get_rule_manager();
|
||||
for (unsigned i = 0; !has_quantifiers && i < sz; ++i) {
|
||||
rule& r = *source.get_rule(i);
|
||||
has_quantifiers = has_quantifiers || r.has_quantifiers();
|
||||
has_quantifiers = has_quantifiers || rm.has_quantifiers(r);
|
||||
if (r.has_negation()) {
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -813,9 +813,10 @@ namespace datalog {
|
|||
}
|
||||
}
|
||||
|
||||
rule_set * mk_slice::operator()(rule_set const & src) {
|
||||
rule_set * mk_slice::operator()(rule_set const & src) {
|
||||
rule_manager& rm = m_ctx.get_rule_manager();
|
||||
for (unsigned i = 0; i < src.get_num_rules(); ++i) {
|
||||
if (src.get_rule(i)->has_quantifiers()) {
|
||||
if (rm.has_quantifiers(*src.get_rule(i))) {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue