mirror of
https://github.com/Z3Prover/z3
synced 2025-08-12 06:00:53 +00:00
refactor get_sort
This commit is contained in:
parent
4455f6caf8
commit
3ae4c6e9de
129 changed files with 362 additions and 362 deletions
|
@ -89,7 +89,7 @@ expr_ref bind_variables::abstract(expr* term, cache_t& cache, unsigned scope) {
|
|||
cache.insert(e, v);
|
||||
}
|
||||
else {
|
||||
var* v1 = m.mk_var(scope + v->get_idx(), m.get_sort(v));
|
||||
var* v1 = m.mk_var(scope + v->get_idx(), v->get_sort());
|
||||
m_pinned.push_back(v1);
|
||||
cache.insert(e, v1);
|
||||
}
|
||||
|
|
|
@ -782,13 +782,13 @@ namespace datalog {
|
|||
else if (is_var(e) && m.is_bool(e)) {
|
||||
m_engine_type = SPACER_ENGINE;
|
||||
}
|
||||
else if (dt.is_datatype(m.get_sort(e))) {
|
||||
else if (dt.is_datatype(e->get_sort())) {
|
||||
m_engine_type = SPACER_ENGINE;
|
||||
}
|
||||
else if (is_large_bv(m.get_sort(e))) {
|
||||
else if (is_large_bv(e->get_sort())) {
|
||||
m_engine_type = SPACER_ENGINE;
|
||||
}
|
||||
else if (!m.get_sort(e)->get_num_elements().is_finite()) {
|
||||
else if (!e->get_sort()->get_num_elements().is_finite()) {
|
||||
m_engine_type = SPACER_ENGINE;
|
||||
}
|
||||
else if (ar.is_array(e)) {
|
||||
|
|
|
@ -198,7 +198,7 @@ void rule_properties::insert(ptr_vector<rule>& rules, rule* r) {
|
|||
}
|
||||
|
||||
void rule_properties::operator()(var* n) {
|
||||
check_sort(m.get_sort(n));
|
||||
check_sort(n->get_sort());
|
||||
}
|
||||
|
||||
void rule_properties::operator()(quantifier* n) {
|
||||
|
@ -245,7 +245,7 @@ void rule_properties::operator()(app* n) {
|
|||
else if (m_rec.is_defined(f)) {
|
||||
m_uninterp_funs.insert(f, m_rule);
|
||||
}
|
||||
check_sort(m.get_sort(n));
|
||||
check_sort(n->get_sort());
|
||||
}
|
||||
|
||||
bool rule_properties::evaluates_to_numeral(expr * n, rational& val) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue