mirror of
https://github.com/Z3Prover/z3
synced 2025-11-05 13:56:03 +00:00
refactor get_sort
This commit is contained in:
parent
4455f6caf8
commit
3ae4c6e9de
129 changed files with 362 additions and 362 deletions
|
|
@ -172,7 +172,7 @@ void static_features::update_core(expr * e) {
|
|||
|
||||
// even if a benchmark does not contain any theory interpreted function decls, we still have to install
|
||||
// the theory if the benchmark contains constants or function applications of an interpreted sort.
|
||||
sort * s = m.get_sort(e);
|
||||
sort * s = e->get_sort();
|
||||
if (!m.is_uninterp(s))
|
||||
mark_theory(s->get_family_id());
|
||||
|
||||
|
|
@ -193,7 +193,7 @@ void static_features::update_core(expr * e) {
|
|||
acc_num(arg);
|
||||
// Must check whether arg is diff logic or not.
|
||||
// Otherwise, problem can be incorrectly tagged as diff logic.
|
||||
sort * arg_s = m.get_sort(arg);
|
||||
sort * arg_s = arg->get_sort();
|
||||
family_id fid_arg = arg_s->get_family_id();
|
||||
if (fid_arg == m_afid) {
|
||||
m_num_arith_terms++;
|
||||
|
|
@ -263,7 +263,7 @@ void static_features::update_core(expr * e) {
|
|||
if (!is_arith_expr(to_app(e)->get_arg(0)))
|
||||
m_num_simple_eqs++;
|
||||
}
|
||||
sort * s = m.get_sort(to_app(e)->get_arg(0));
|
||||
sort * s = to_app(e)->get_arg(0)->get_sort();
|
||||
if (!m.is_uninterp(s)) {
|
||||
family_id fid = s->get_family_id();
|
||||
if (fid != null_family_id && fid != m_bfid)
|
||||
|
|
@ -281,7 +281,7 @@ void static_features::update_core(expr * e) {
|
|||
if (is_app(e) && to_app(e)->get_family_id() == m_srfid)
|
||||
m_has_sr = true;
|
||||
if (!m_has_arrays && m_arrayutil.is_array(e))
|
||||
check_array(m.get_sort(e));
|
||||
check_array(e->get_sort());
|
||||
if (!m_has_ext_arrays && m_arrayutil.is_array(e) &&
|
||||
!m_arrayutil.is_select(e) && !m_arrayutil.is_store(e))
|
||||
m_has_ext_arrays = true;
|
||||
|
|
@ -323,7 +323,7 @@ void static_features::update_core(expr * e) {
|
|||
m_num_uninterpreted_exprs++;
|
||||
if (to_app(e)->get_num_args() == 0) {
|
||||
m_num_uninterpreted_constants++;
|
||||
sort * s = m.get_sort(e);
|
||||
sort * s = e->get_sort();
|
||||
if (!m.is_uninterp(s)) {
|
||||
family_id fid = s->get_family_id();
|
||||
if (fid != null_family_id && fid != m_bfid)
|
||||
|
|
@ -350,7 +350,7 @@ void static_features::update_core(expr * e) {
|
|||
}
|
||||
if (!_is_eq && !_is_gate) {
|
||||
for (expr * arg : *to_app(e)) {
|
||||
sort * arg_s = m.get_sort(arg);
|
||||
sort * arg_s = arg->get_sort();
|
||||
if (!m.is_uninterp(arg_s)) {
|
||||
family_id fid_arg = arg_s->get_family_id();
|
||||
if (fid_arg != fid && fid_arg != null_family_id) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue