mirror of
https://github.com/Z3Prover/z3
synced 2025-05-04 14:25:46 +00:00
remove dependency on ast from params
This commit is contained in:
parent
f00db08221
commit
4b3fecc35e
13 changed files with 49 additions and 48 deletions
|
@ -160,6 +160,18 @@ public:
|
|||
virtual void updt_params(params_ref const& p) = 0;
|
||||
};
|
||||
|
||||
class ast_context : public context_params {
|
||||
ast_manager* m_manager { nullptr };
|
||||
public:
|
||||
/**
|
||||
\brief Create an AST manager using this configuration.
|
||||
*/
|
||||
ast_manager * mk_ast_manager();
|
||||
|
||||
void set_foreign_manager(ast_manager* m) { m_manager = m; }
|
||||
bool owns_manager() const { return m_manager != nullptr; }
|
||||
};
|
||||
|
||||
class cmd_context : public progress_callback, public tactic_manager, public ast_printer_context {
|
||||
public:
|
||||
enum status {
|
||||
|
@ -179,8 +191,10 @@ public:
|
|||
~scoped_watch() { m_ctx.m_watch.stop(); }
|
||||
};
|
||||
|
||||
|
||||
|
||||
protected:
|
||||
context_params m_params;
|
||||
ast_context m_params;
|
||||
bool m_main_ctx;
|
||||
symbol m_logic;
|
||||
bool m_interactive_mode;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue