3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-07-29 15:37:58 +00:00

Fixed bugs in static features and smt setup

Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
This commit is contained in:
Christoph M. Wintersteiger 2015-02-08 16:53:08 +00:00
parent 72345026be
commit 4792c5fb7c
3 changed files with 21 additions and 4 deletions

View file

@ -23,6 +23,7 @@ static_features::static_features(ast_manager & m):
m_manager(m),
m_autil(m),
m_bvutil(m),
m_arrayutil(m),
m_fpautil(m),
m_bfid(m.get_basic_family_id()),
m_afid(m.mk_family_id("arith")),
@ -72,7 +73,10 @@ void static_features::reset() {
m_num_eqs = 0;
m_has_rational = false;
m_has_int = false;
m_has_real = false;
m_has_real = false;
m_has_bv = false;
m_has_fpa = false;
m_has_arrays = false;
m_arith_k_sum .reset();
m_num_arith_terms = 0;
m_num_arith_eqs = 0;
@ -272,6 +276,8 @@ void static_features::update_core(expr * e) {
m_has_bv = true;
if (!m_has_fpa && (m_fpautil.is_float(e) || m_fpautil.is_rm(e)))
m_has_fpa = true;
if (!m_has_arrays && m_arrayutil.is_array(e))
m_has_arrays = true;
if (is_app(e)) {
family_id fid = to_app(e)->get_family_id();
mark_theory(fid);