mirror of
https://github.com/Z3Prover/z3
synced 2025-04-27 19:05:51 +00:00
fix #7630
This commit is contained in:
parent
d581dc1db4
commit
7a302239c2
1 changed files with 6 additions and 1 deletions
|
@ -99,7 +99,12 @@ class lazy_tactic : public tactic {
|
|||
params_ref p;
|
||||
std::function<tactic* (ast_manager& m, params_ref const& p)> m_mk_tactic;
|
||||
tactic* m_tactic = nullptr;
|
||||
void ensure_tactic() { if (!m_tactic) m_tactic = m_mk_tactic(m, p); }
|
||||
void ensure_tactic() {
|
||||
if (!m_tactic) {
|
||||
m_tactic = m_mk_tactic(m, p);
|
||||
m_tactic->updt_params(p);
|
||||
}
|
||||
}
|
||||
public:
|
||||
lazy_tactic(ast_manager& m, params_ref const& p, std::function<tactic* (ast_manager&, params_ref const&)> mk_tactic) : m(m), p(p), m_mk_tactic(mk_tactic) {}
|
||||
~lazy_tactic() override { dealloc(m_tactic); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue