mirror of
https://github.com/Z3Prover/z3
synced 2025-04-24 09:35:32 +00:00
refactor get_sort
This commit is contained in:
parent
4455f6caf8
commit
3ae4c6e9de
129 changed files with 362 additions and 362 deletions
|
@ -273,7 +273,7 @@ struct check_logic::imp {
|
|||
void operator()(var * n) {
|
||||
if (!m_quantifiers)
|
||||
fail("logic does not support quantifiers");
|
||||
check_sort(m.get_sort(n));
|
||||
check_sort(n->get_sort());
|
||||
}
|
||||
|
||||
bool is_int(expr * t) {
|
||||
|
@ -345,7 +345,7 @@ struct check_logic::imp {
|
|||
}
|
||||
|
||||
bool is_arith(expr * t) const {
|
||||
return m.get_sort(t)->get_family_id() == m_a_util.get_family_id();
|
||||
return t->get_sort()->get_family_id() == m_a_util.get_family_id();
|
||||
}
|
||||
|
||||
bool is_offset(app * t) {
|
||||
|
@ -425,7 +425,7 @@ struct check_logic::imp {
|
|||
}
|
||||
|
||||
void operator()(app * n) {
|
||||
sort * s = m.get_sort(n);
|
||||
sort * s = n->get_sort();
|
||||
check_sort(s);
|
||||
func_decl * f = n->get_decl();
|
||||
family_id fid = f->get_family_id();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue