mirror of
https://github.com/Z3Prover/z3
synced 2025-11-21 05:06:39 +00:00
API to find pob in pob_manager
This commit is contained in:
parent
5bc57238a6
commit
f6dcc6fc72
2 changed files with 17 additions and 2 deletions
|
|
@ -2168,7 +2168,21 @@ pob* pred_transformer::pob_manager::mk_pob(pob *parent,
|
|||
return n;
|
||||
}
|
||||
|
||||
|
||||
pob* pred_transformer::pob_manager::find_pob(pob* parent, expr *post) {
|
||||
pob p(parent, m_pt, 0, 0, false);
|
||||
p.set_post(post);
|
||||
pob *res = nullptr;
|
||||
if (m_pobs.contains(p.post())) {
|
||||
for (auto *f : m_pobs[p.post()]) {
|
||||
if (f->parent() == parent) {
|
||||
// try to find pob not already in queue
|
||||
if (!f->is_in_queue()) return f;
|
||||
res = f;
|
||||
}
|
||||
}
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
||||
|
||||
// ----------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue