mirror of
https://github.com/Z3Prover/z3
synced 2025-04-29 20:05:51 +00:00
call it data instead of c_ptr for approaching C++11 std::vector convention.
This commit is contained in:
parent
524dcd35f9
commit
4a6083836a
456 changed files with 2802 additions and 2802 deletions
|
@ -219,7 +219,7 @@ expr_ref bv2fpa_converter::rebuild_floats(model_core * mc, sort * s, expr * e) {
|
|||
for (expr* arg : *a) {
|
||||
new_args.push_back(rebuild_floats(mc, arg->get_sort(), arg));
|
||||
}
|
||||
result = m.mk_app(a->get_decl(), new_args.size(), new_args.c_ptr());
|
||||
result = m.mk_app(a->get_decl(), new_args.size(), new_args.data());
|
||||
}
|
||||
else if (is_var(e)) {
|
||||
result = e;
|
||||
|
@ -247,7 +247,7 @@ bv2fpa_converter::array_model bv2fpa_converter::convert_array_func_interp(model_
|
|||
|
||||
bv_f = arr_util.get_as_array_func_decl(to_app(as_arr_mdl));
|
||||
|
||||
am.new_float_fd = m.mk_fresh_func_decl(arity, array_domain.c_ptr(), rng);
|
||||
am.new_float_fd = m.mk_fresh_func_decl(arity, array_domain.data(), rng);
|
||||
am.new_float_fi = convert_func_interp(mc, am.new_float_fd, bv_f);
|
||||
am.bv_fd = bv_f;
|
||||
am.result = arr_util.mk_as_array(am.new_float_fd);
|
||||
|
@ -295,12 +295,12 @@ func_interp * bv2fpa_converter::convert_func_interp(model_core * mc, func_decl *
|
|||
for (unsigned i = 0; i < new_args.size(); i++)
|
||||
tout << " " << mk_ismt2_pp(new_args[i], m);
|
||||
tout << ") = " << mk_ismt2_pp(ft_fres, m) << std::endl;);
|
||||
func_entry * fe = result->get_entry(new_args.c_ptr());
|
||||
func_entry * fe = result->get_entry(new_args.data());
|
||||
if (fe == nullptr) {
|
||||
// Avoid over-specification of a partially interpreted theory function
|
||||
if (f->get_family_id() != m_fpa_util.get_family_id() ||
|
||||
m_fpa_util.is_considered_uninterpreted(f, new_args.size(), new_args.c_ptr()))
|
||||
result->insert_new_entry(new_args.c_ptr(), ft_fres);
|
||||
m_fpa_util.is_considered_uninterpreted(f, new_args.size(), new_args.data()))
|
||||
result->insert_new_entry(new_args.data(), ft_fres);
|
||||
}
|
||||
else {
|
||||
// The BV model may have multiple equivalent entries using different
|
||||
|
|
|
@ -264,9 +264,9 @@ expr_ref fpa2bv_converter::extra_quantify(expr * e)
|
|||
|
||||
expr_ref res(m);
|
||||
var_subst vsubst(m);
|
||||
res = vsubst.operator()(e, nv, subst_map.c_ptr());
|
||||
res = vsubst.operator()(e, nv, subst_map.data());
|
||||
TRACE("fpa2bv", tout << "subst'd = " << mk_ismt2_pp(res, m) << std::endl; );
|
||||
res = m.mk_forall(nv, new_decl_sorts.c_ptr(), new_decl_names.c_ptr(), res);
|
||||
res = m.mk_forall(nv, new_decl_sorts.data(), new_decl_names.data(), res);
|
||||
return res;
|
||||
}
|
||||
|
||||
|
|
|
@ -225,7 +225,7 @@ bool fpa2bv_rewriter_cfg::reduce_quantifier(
|
|||
new_decl_names.push_back(n);
|
||||
}
|
||||
}
|
||||
result = m().mk_quantifier(old_q->get_kind(), new_decl_sorts.size(), new_decl_sorts.c_ptr(), new_decl_names.c_ptr(),
|
||||
result = m().mk_quantifier(old_q->get_kind(), new_decl_sorts.size(), new_decl_sorts.data(), new_decl_names.data(),
|
||||
new_body, old_q->get_weight(), old_q->get_qid(), old_q->get_skid(),
|
||||
old_q->get_num_patterns(), new_patterns, old_q->get_num_no_patterns(), new_no_patterns);
|
||||
result_pr = nullptr;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue