mirror of
https://github.com/Z3Prover/z3
synced 2025-07-27 22:47:55 +00:00
fix typo in mk_pure
This commit is contained in:
parent
9c7d9818d3
commit
73486be590
1 changed files with 8 additions and 8 deletions
|
@ -78,7 +78,7 @@ namespace qe {
|
||||||
};
|
};
|
||||||
|
|
||||||
class children {
|
class children {
|
||||||
term const& t;
|
term const& t;
|
||||||
public:
|
public:
|
||||||
children(term const& _t):t(_t) {}
|
children(term const& _t):t(_t) {}
|
||||||
children(term const* _t):t(*_t) {}
|
children(term const* _t):t(*_t) {}
|
||||||
|
@ -628,9 +628,9 @@ namespace qe {
|
||||||
}
|
}
|
||||||
|
|
||||||
expr* term_graph::mk_pure(term& t) {
|
expr* term_graph::mk_pure(term& t) {
|
||||||
expr* e = t.get_expr();
|
expr* e = nullptr;
|
||||||
// AG: the if-statement looks wrong
|
if (m_term2app.find(t.get_id(), e)) return e;
|
||||||
if (m_term2app.find(t.get_id(), e)) e;
|
e = t.get_expr();
|
||||||
if (!is_app(e)) return nullptr;
|
if (!is_app(e)) return nullptr;
|
||||||
app* a = ::to_app(e);
|
app* a = ::to_app(e);
|
||||||
expr_ref_vector kids(m);
|
expr_ref_vector kids(m);
|
||||||
|
@ -647,11 +647,11 @@ namespace qe {
|
||||||
expr_ref_vector term_graph::project(func_decl_ref_vector const& decls, bool exclude) {
|
expr_ref_vector term_graph::project(func_decl_ref_vector const& decls, bool exclude) {
|
||||||
u_map<bool> _decls;
|
u_map<bool> _decls;
|
||||||
for (func_decl* f : decls) _decls.insert(f->get_id(), true);
|
for (func_decl* f : decls) _decls.insert(f->get_id(), true);
|
||||||
// . propagate representatives up over parents.
|
// - propagate representatives up over parents.
|
||||||
// use work-list + marking to propagate.
|
// use work-list + marking to propagate.
|
||||||
// . produce equalities over represented classes.
|
// - produce equalities over represented classes.
|
||||||
// . produce other literals over represented classes
|
// - produce other literals over represented classes
|
||||||
// (walk disequalities in m_lits and represent lhs/rhs over decls or excluding decls)
|
// (walk disequalities in m_lits and represent lhs/rhs over decls or excluding decls)
|
||||||
|
|
||||||
expr_ref_vector result(m);
|
expr_ref_vector result(m);
|
||||||
m_term2app.reset();
|
m_term2app.reset();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue