mirror of
https://github.com/Z3Prover/z3
synced 2025-08-13 14:40:55 +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
|
@ -2832,9 +2832,8 @@ namespace smt {
|
|||
}
|
||||
TRACE("internalize", tout << this << " " << th->get_family_id() << "\n";);
|
||||
SASSERT(std::find(m_theory_set.begin(), m_theory_set.end(), th) == m_theory_set.end());
|
||||
SASSERT(!already_internalized_theory(th));
|
||||
th->init(this);
|
||||
m_theories.register_plugin(th);
|
||||
th->init();
|
||||
m_theory_set.push_back(th);
|
||||
{
|
||||
#ifdef Z3DEBUG
|
||||
|
@ -4475,7 +4474,7 @@ namespace smt {
|
|||
|
||||
bool context::has_case_splits() {
|
||||
for (unsigned i = get_num_b_internalized(); i-- > 0; ) {
|
||||
if (get_assignment(i) == l_undef)
|
||||
if (is_relevant(i) && get_assignment(i) == l_undef)
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue