@@ -75,7 +75,7 @@ namespace smt {
75
75
76
76
77
77
theory* theory_datatype::mk_fresh (context* new_ctx) {
78
- return alloc (theory_datatype, new_ctx->get_manager (), m_params);
78
+ return alloc (theory_datatype, new_ctx->get_manager ());
79
79
}
80
80
81
81
/* *
@@ -286,7 +286,7 @@ namespace smt {
286
286
assert_is_constructor_axiom (n, c, null_literal);
287
287
}
288
288
else {
289
- if (m_params .m_dt_lazy_splits == 0 || (m_params .m_dt_lazy_splits == 1 && !s->is_infinite ()))
289
+ if (params () .m_dt_lazy_splits == 0 || (params () .m_dt_lazy_splits == 1 && !s->is_infinite ()))
290
290
mk_split (r);
291
291
}
292
292
}
@@ -487,7 +487,7 @@ namespace smt {
487
487
// return...
488
488
return FC_CONTINUE;
489
489
}
490
- if (m_params .m_dt_lazy_splits > 0 ) {
490
+ if (params () .m_dt_lazy_splits > 0 ) {
491
491
// using lazy case splits...
492
492
var_data * d = m_var_data[v];
493
493
if (d->m_constructor == nullptr ) {
@@ -694,9 +694,12 @@ namespace smt {
694
694
return false ;
695
695
}
696
696
697
- theory_datatype::theory_datatype (ast_manager & m, theory_datatype_params & p):
697
+ theory_datatype_params const & theory_datatype::params () const {
698
+ return get_context ().get_fparams ();
699
+ }
700
+
701
+ theory_datatype::theory_datatype (ast_manager & m):
698
702
theory (m.mk_family_id(" datatype" )),
699
- m_params (p),
700
703
m_util (m),
701
704
m_autil (m),
702
705
m_find (*this ),
@@ -932,7 +935,7 @@ namespace smt {
932
935
else {
933
936
// there are more than 2 unassigned recognizers...
934
937
// if eager splits are enabled... create new case split
935
- if (m_params .m_dt_lazy_splits == 0 || (!dt->is_infinite () && m_params .m_dt_lazy_splits == 1 ))
938
+ if (params () .m_dt_lazy_splits == 0 || (!dt->is_infinite () && params () .m_dt_lazy_splits == 1 ))
936
939
mk_split (v);
937
940
}
938
941
}
0 commit comments