mirror of
https://github.com/Z3Prover/z3
synced 2025-06-27 08:28:44 +00:00
theory_fpa refactoring
This commit is contained in:
parent
302c491535
commit
47e75827ee
1 changed files with 6 additions and 5 deletions
|
@ -132,13 +132,13 @@ namespace smt {
|
||||||
m_converter.reset();
|
m_converter.reset();
|
||||||
m_rw.reset();
|
m_rw.reset();
|
||||||
m_th_rw.reset();
|
m_th_rw.reset();
|
||||||
|
m_is_initialized = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
SASSERT(m_trail_stack.get_num_scopes() == 0);
|
SASSERT(m_trail_stack.get_num_scopes() == 0);
|
||||||
SASSERT(m_conversions.empty());
|
SASSERT(m_conversions.empty());
|
||||||
SASSERT(m_is_added_to_model.empty());
|
SASSERT(m_is_added_to_model.empty());
|
||||||
}
|
}
|
||||||
|
|
||||||
void theory_fpa::init(context * ctx) {
|
void theory_fpa::init(context * ctx) {
|
||||||
smt::theory::init(ctx);
|
smt::theory::init(ctx);
|
||||||
m_is_initialized = true;
|
m_is_initialized = true;
|
||||||
|
@ -712,6 +712,7 @@ namespace smt {
|
||||||
m_rw.reset();
|
m_rw.reset();
|
||||||
m_th_rw.reset();
|
m_th_rw.reset();
|
||||||
m_trail_stack.pop_scope(m_trail_stack.get_num_scopes());
|
m_trail_stack.pop_scope(m_trail_stack.get_num_scopes());
|
||||||
|
if (m_factory) dealloc(m_factory); m_factory = 0;
|
||||||
ast_manager & m = get_manager();
|
ast_manager & m = get_manager();
|
||||||
dec_ref_map_key_values(m, m_conversions);
|
dec_ref_map_key_values(m, m_conversions);
|
||||||
dec_ref_collection_values(m, m_is_added_to_model);
|
dec_ref_collection_values(m, m_is_added_to_model);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue