mirror of
https://github.com/Z3Prover/z3
synced 2026-06-10 19:07:18 +00:00
detect quantifiers in patterns
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
af7a4de258
commit
af33dfaa7d
2 changed files with 26 additions and 1 deletions
|
|
@ -561,9 +561,13 @@ void rewriter_tpl<Config>::process_quantifier(quantifier * q, frame & fr) {
|
|||
expr * const * np = it + 1;
|
||||
expr * const * nnp = np + num_pats;
|
||||
unsigned j = 0;
|
||||
for (unsigned i = 0; i < num_pats; ++i)
|
||||
for (unsigned i = 0; i < num_pats; ++i) {
|
||||
if (m_manager.is_pattern(np[i]))
|
||||
new_pats[j++] = np[i];
|
||||
else {
|
||||
IF_VERBOSE(10, verbose_stream() << "[rewriter] dropping pattern (is_pattern check failed) for qid=" << q->get_qid() << " pattern[" << i << "]: " << mk_ismt2_pp(np[i], m_manager, 3) << "\n";);
|
||||
}
|
||||
}
|
||||
new_pats.shrink(j);
|
||||
num_pats = j;
|
||||
j = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue