mirror of
https://github.com/Z3Prover/z3
synced 2025-04-24 01:25:31 +00:00
more on #3858 elim_term_ite
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
21b7dc627e
commit
cc794a19bc
2 changed files with 46 additions and 32 deletions
|
@ -49,6 +49,8 @@ public:
|
|||
Otherwise, (VAR 0) is stored in the first position, (VAR 1) in the second, and so on.
|
||||
*/
|
||||
expr_ref operator()(expr * n, unsigned num_args, expr * const * args);
|
||||
inline expr_ref operator()(expr * n, expr_ref_vector const& args) { return (*this)(n, args.size(), args.c_ptr()); }
|
||||
inline expr_ref operator()(expr * n, ptr_vector<expr> const& args) { return (*this)(n, args.size(), args.c_ptr()); }
|
||||
void reset() { m_reducer.reset(); }
|
||||
};
|
||||
|
||||
|
@ -90,6 +92,8 @@ class expr_free_vars {
|
|||
ptr_vector<sort> m_sorts;
|
||||
ptr_vector<expr> m_todo;
|
||||
public:
|
||||
expr_free_vars() {}
|
||||
expr_free_vars(expr* e) { (*this)(e); }
|
||||
void reset();
|
||||
void operator()(expr* e);
|
||||
void accumulate(expr* e);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue