mirror of
https://github.com/Z3Prover/z3
synced 2025-04-23 00:55:31 +00:00
simplify factory of dependent_expr_state_tactic
And as a side-effect, remove heap allocations for factories
This commit is contained in:
parent
de916f50d6
commit
eb8c53c164
12 changed files with 26 additions and 123 deletions
|
@ -2440,17 +2440,11 @@ namespace {
|
|||
}
|
||||
}
|
||||
};
|
||||
|
||||
class qe_lite_tactic_factory : public dependent_expr_simplifier_factory {
|
||||
public:
|
||||
dependent_expr_simplifier* mk(ast_manager& m, params_ref const& p, dependent_expr_state& s) override {
|
||||
return alloc(qe_lite_simplifier, m, p, s);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
tactic * mk_qe_lite_tactic(ast_manager & m, params_ref const & p) {
|
||||
return alloc(dependent_expr_state_tactic, m, p, alloc(qe_lite_tactic_factory));
|
||||
return alloc(dependent_expr_state_tactic, m, p,
|
||||
[](auto& m, auto& p, auto &s) -> dependent_expr_simplifier* { return alloc(qe_lite_simplifier, m, p, s); });
|
||||
}
|
||||
|
||||
dependent_expr_simplifier* mk_qe_lite_simplifer(ast_manager& m, params_ref const& p, dependent_expr_state& st) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue