mirror of
https://github.com/Z3Prover/z3
synced 2025-04-12 12:08:18 +00:00
minor code simplification
This commit is contained in:
parent
db097bae05
commit
029d726eb8
|
@ -134,7 +134,6 @@ namespace smt {
|
||||||
enode * m_lhs;
|
enode * m_lhs;
|
||||||
enode * m_rhs;
|
enode * m_rhs;
|
||||||
eq_justification m_justification;
|
eq_justification m_justification;
|
||||||
new_eq() {}
|
|
||||||
new_eq(enode * lhs, enode * rhs, eq_justification const & js):
|
new_eq(enode * lhs, enode * rhs, eq_justification const & js):
|
||||||
m_lhs(lhs), m_rhs(rhs), m_justification(js) {}
|
m_lhs(lhs), m_rhs(rhs), m_justification(js) {}
|
||||||
};
|
};
|
||||||
|
@ -143,7 +142,6 @@ namespace smt {
|
||||||
theory_id m_th_id;
|
theory_id m_th_id;
|
||||||
theory_var m_lhs;
|
theory_var m_lhs;
|
||||||
theory_var m_rhs;
|
theory_var m_rhs;
|
||||||
new_th_eq():m_th_id(null_theory_id), m_lhs(null_theory_var), m_rhs(null_theory_var) {}
|
|
||||||
new_th_eq(theory_id id, theory_var l, theory_var r):m_th_id(id), m_lhs(l), m_rhs(r) {}
|
new_th_eq(theory_id id, theory_var l, theory_var r):m_th_id(id), m_lhs(l), m_rhs(r) {}
|
||||||
};
|
};
|
||||||
svector<new_th_eq> m_th_eq_propagation_queue;
|
svector<new_th_eq> m_th_eq_propagation_queue;
|
||||||
|
@ -215,7 +213,7 @@ namespace smt {
|
||||||
// -----------------------------------
|
// -----------------------------------
|
||||||
proto_model_ref m_proto_model;
|
proto_model_ref m_proto_model;
|
||||||
model_ref m_model;
|
model_ref m_model;
|
||||||
std::string m_unknown;
|
const char * m_unknown;
|
||||||
void mk_proto_model();
|
void mk_proto_model();
|
||||||
void reset_model() { m_model = nullptr; m_proto_model = nullptr; }
|
void reset_model() { m_model = nullptr; m_proto_model = nullptr; }
|
||||||
|
|
||||||
|
|
|
@ -66,6 +66,7 @@ namespace smt {
|
||||||
std::string context::last_failure_as_string() const {
|
std::string context::last_failure_as_string() const {
|
||||||
std::string r;
|
std::string r;
|
||||||
switch(m_last_search_failure) {
|
switch(m_last_search_failure) {
|
||||||
|
case UNKNOWN:
|
||||||
case OK: r = m_unknown; break;
|
case OK: r = m_unknown; break;
|
||||||
case MEMOUT: r = "memout"; break;
|
case MEMOUT: r = "memout"; break;
|
||||||
case CANCELED: r = "canceled"; break;
|
case CANCELED: r = "canceled"; break;
|
||||||
|
@ -82,7 +83,6 @@ namespace smt {
|
||||||
case RESOURCE_LIMIT: r = "(resource limits reached)"; break;
|
case RESOURCE_LIMIT: r = "(resource limits reached)"; break;
|
||||||
case QUANTIFIERS: r = "(incomplete quantifiers)"; break;
|
case QUANTIFIERS: r = "(incomplete quantifiers)"; break;
|
||||||
case LAMBDAS: r = "(incomplete lambdas)"; break;
|
case LAMBDAS: r = "(incomplete lambdas)"; break;
|
||||||
case UNKNOWN: r = m_unknown; break;
|
|
||||||
}
|
}
|
||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue