3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-06-28 00:48:45 +00:00

Minor fixes to model

This commit is contained in:
Arie Gurfinkel 2018-06-16 13:42:26 -07:00
parent 450da5ea0c
commit 60888a93eb

View file

@ -24,6 +24,9 @@ Revision History:
#include "util/ref.h" #include "util/ref.h"
#include "ast/ast_translation.h" #include "ast/ast_translation.h"
class model;
typedef ref<model> model_ref;
class model : public model_core { class model : public model_core {
protected: protected:
typedef obj_map<sort, ptr_vector<expr>*> sort2universe; typedef obj_map<sort, ptr_vector<expr>*> sort2universe;
@ -82,12 +85,10 @@ public:
m_old_completion(m.m_mev.get_model_completion()), m_model(m) { m_old_completion(m.m_mev.get_model_completion()), m_model(m) {
m.set_model_completion(c); m.set_model_completion(c);
} }
#if 0
scoped_model_completion(model_ref& m, bool c): scoped_model_completion(model_ref& m, bool c):
m_old_completion(m->m_mev.get_model_completion()), m_model(*m.get()) { m_old_completion(m->m_mev.get_model_completion()), m_model(*m.get()) {
m->set_model_completion(c); m->set_model_completion(c);
} }
#endif
~scoped_model_completion() { ~scoped_model_completion() {
m_model.set_model_completion(m_old_completion); m_model.set_model_completion(m_old_completion);
} }
@ -96,7 +97,5 @@ public:
}; };
typedef ref<model> model_ref;
#endif /* MODEL_H_ */ #endif /* MODEL_H_ */