3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-22 16:45:31 +00:00

fixup build of example

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2020-02-27 11:31:06 -08:00
parent 58414ca6df
commit 5a357f9998
4 changed files with 27 additions and 5 deletions

View file

@ -445,5 +445,24 @@ namespace recfun {
UNREACHABLE();
return nullptr;
}
/**
* \brief compute ite nesting depth scores with each sub-expression of e.
*/
void plugin::compute_scores(expr* e, obj_map<expr, unsigned>& scores) {
unsigned max_depth = e->get_depth(e);
u_map<ptr_vector<expr>> by_depth;
obj_map<expr, ptr_vector<expr>> parents;
expr_mark marked;
ptr_vector<expr> es;
es.push_back(e);
by_depth.insert(max_depth, es);
for (unsigned i = max_depth; i > 0; --i) {
// walk deepest terms first.
}
}
void plugin::expand_
}
}

View file

@ -156,6 +156,8 @@ namespace recfun {
case_def_map m_case_defs; // case_pred->def
ast_manager & m() { return *m_manager; }
void compute_scores(expr* e, obj_map<expr, unsigned>& scores);
public:
plugin();
~plugin() override;