mirror of
https://github.com/Z3Prover/z3
synced 2025-11-05 22:06:03 +00:00
drat
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
9cd339841a
commit
470bf27d1d
8 changed files with 128 additions and 73 deletions
|
|
@ -358,6 +358,7 @@ namespace euf {
|
|||
for (auto const& p : euf::enode_th_vars(n)) {
|
||||
family_id id = p.get_id();
|
||||
if (m.get_basic_family_id() != id) {
|
||||
|
||||
if (th_id != m.get_basic_family_id())
|
||||
return true;
|
||||
th_id = id;
|
||||
|
|
@ -369,6 +370,8 @@ namespace euf {
|
|||
for (enode* parent : euf::enode_parents(n)) {
|
||||
app* p = to_app(parent->get_expr());
|
||||
family_id fid = p->get_family_id();
|
||||
if (is_beta_redex(parent, n))
|
||||
continue;
|
||||
if (fid != th_id && fid != m.get_basic_family_id())
|
||||
return true;
|
||||
}
|
||||
|
|
@ -407,6 +410,13 @@ namespace euf {
|
|||
return false;
|
||||
}
|
||||
|
||||
bool solver::is_beta_redex(enode* p, enode* n) const {
|
||||
for (auto const& th : enode_th_vars(p))
|
||||
if (fid2solver(th.get_id())->is_beta_redex(p, n))
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
expr_ref solver::mk_eq(expr* e1, expr* e2) {
|
||||
expr_ref _e1(e1, m);
|
||||
expr_ref _e2(e2, m);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue