mirror of
https://github.com/Z3Prover/z3
synced 2025-05-11 09:44:43 +00:00
remove level of indirection for context and ast_manager in smt_theory (#4253)
* remove level of indirection for context and ast_manager in smt_theory Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com> * add request by #4252 Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com> * move to def Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com> * int Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
17b8db95c1
commit
becf423c77
57 changed files with 750 additions and 1257 deletions
|
@ -55,7 +55,6 @@ namespace smt {
|
|||
th_trail_stack m_trail_stack;
|
||||
unsigned m_final_check_idx;
|
||||
|
||||
void init(context * ctx) override;
|
||||
theory_var mk_var(enode * n) override;
|
||||
bool internalize_atom(app * atom, bool gate_ctx) override;
|
||||
bool internalize_term(app * term) override;
|
||||
|
@ -96,10 +95,10 @@ namespace smt {
|
|||
|
||||
static void display_ids(std::ostream & out, unsigned n, enode * const * v);
|
||||
public:
|
||||
theory_array(ast_manager & m, theory_array_params & params);
|
||||
theory_array(context& ctx);
|
||||
~theory_array() override;
|
||||
|
||||
theory * mk_fresh(context * new_ctx) override { return alloc(theory_array, new_ctx->get_manager(), new_ctx->get_fparams()); }
|
||||
theory * mk_fresh(context * new_ctx) override { return alloc(theory_array, *new_ctx); }
|
||||
|
||||
char const * get_name() const override { return "array"; }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue