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

spread a few anonymous namespaces and remove some m_imp idioms

This commit is contained in:
Nuno Lopes 2018-12-21 22:49:06 +00:00
parent 52f960a7c8
commit 178e5b31e8
7 changed files with 71 additions and 125 deletions

View file

@ -2370,6 +2370,7 @@ void qe_lite::operator()(uint_set const& index_set, bool index_of_bound, expr_re
(*m_impl)(index_set, index_of_bound, fmls);
}
namespace {
class qe_lite_tactic : public tactic {
struct imp {
@ -2494,7 +2495,6 @@ public:
(*m_imp)(in, result);
}
void collect_statistics(statistics & st) const override {
// m_imp->collect_statistics(st);
}
@ -2503,14 +2503,14 @@ public:
// m_imp->reset_statistics();
}
void cleanup() override {
ast_manager & m = m_imp->m;
dealloc(m_imp);
m_imp = alloc(imp, m, m_params);
m_imp->~imp();
m_imp = new (m_imp) imp(m, m_params);
}
};
}
tactic * mk_qe_lite_tactic(ast_manager & m, params_ref const & p) {
return alloc(qe_lite_tactic, m, p);

View file

@ -18,8 +18,7 @@ Revision History:
--*/
#ifndef QE_LITE_H_
#define QE_LITE_H_
#pragma once
#include "ast/ast.h"
#include "util/uint_set.h"
@ -67,5 +66,3 @@ tactic * mk_qe_lite_tactic(ast_manager & m, params_ref const & p = params_ref())
/*
ADD_TACTIC("qe-light", "apply light-weight quantifier elimination.", "mk_qe_lite_tactic(m, p)")
*/
#endif