mirror of
https://github.com/Z3Prover/z3
synced 2025-05-12 10:14:42 +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
|
@ -242,7 +242,7 @@ public:
|
|||
if (ctx.produce_unsat_cores()) {
|
||||
ptr_vector<expr> core_elems;
|
||||
m.linearize(core, core_elems);
|
||||
result->m_core.append(core_elems.size(), core_elems.c_ptr());
|
||||
result->m_core.append(core_elems.size(), core_elems.data());
|
||||
if (p.get_bool("print_unsat_core", false)) {
|
||||
ctx.regular_stream() << "(unsat-core";
|
||||
for (expr * e : core_elems) {
|
||||
|
@ -359,7 +359,7 @@ public:
|
|||
for (unsigned i = 0; i < sz; i++) {
|
||||
assertions.push_back(fg->form(i));
|
||||
}
|
||||
ctx.display_smt2_benchmark(ctx.regular_stream(), assertions.size(), assertions.c_ptr());
|
||||
ctx.display_smt2_benchmark(ctx.regular_stream(), assertions.size(), assertions.data());
|
||||
}
|
||||
else {
|
||||
// create a big OR
|
||||
|
@ -371,10 +371,10 @@ public:
|
|||
if (formulas.size() == 1)
|
||||
or_args.push_back(formulas[0]);
|
||||
else
|
||||
or_args.push_back(m.mk_and(formulas.size(), formulas.c_ptr()));
|
||||
or_args.push_back(m.mk_and(formulas.size(), formulas.data()));
|
||||
}
|
||||
expr_ref assertion_ref(m);
|
||||
assertion_ref = m.mk_or(or_args.size(), or_args.c_ptr());
|
||||
assertion_ref = m.mk_or(or_args.size(), or_args.data());
|
||||
expr * assertions[1] = { assertion_ref.get() };
|
||||
ctx.display_smt2_benchmark(ctx.regular_stream(), 1, assertions);
|
||||
}
|
||||
|
@ -412,7 +412,7 @@ static tactic * mk_and_then(cmd_context & ctx, sexpr * n) {
|
|||
tactic_ref_buffer args;
|
||||
for (unsigned i = 1; i < num_children; i++)
|
||||
args.push_back(sexpr2tactic(ctx, n->get_child(i)));
|
||||
return and_then(args.size(), args.c_ptr());
|
||||
return and_then(args.size(), args.data());
|
||||
}
|
||||
|
||||
static tactic * mk_or_else(cmd_context & ctx, sexpr * n) {
|
||||
|
@ -425,7 +425,7 @@ static tactic * mk_or_else(cmd_context & ctx, sexpr * n) {
|
|||
tactic_ref_buffer args;
|
||||
for (unsigned i = 1; i < num_children; i++)
|
||||
args.push_back(sexpr2tactic(ctx, n->get_child(i)));
|
||||
return or_else(args.size(), args.c_ptr());
|
||||
return or_else(args.size(), args.data());
|
||||
}
|
||||
|
||||
static tactic * mk_par(cmd_context & ctx, sexpr * n) {
|
||||
|
@ -438,7 +438,7 @@ static tactic * mk_par(cmd_context & ctx, sexpr * n) {
|
|||
tactic_ref_buffer args;
|
||||
for (unsigned i = 1; i < num_children; i++)
|
||||
args.push_back(sexpr2tactic(ctx, n->get_child(i)));
|
||||
return par(args.size(), args.c_ptr());
|
||||
return par(args.size(), args.data());
|
||||
}
|
||||
|
||||
static tactic * mk_par_then(cmd_context & ctx, sexpr * n) {
|
||||
|
@ -451,7 +451,7 @@ static tactic * mk_par_then(cmd_context & ctx, sexpr * n) {
|
|||
tactic_ref_buffer args;
|
||||
for (unsigned i = 1; i < num_children; i++)
|
||||
args.push_back(sexpr2tactic(ctx, n->get_child(i)));
|
||||
return par_and_then(args.size(), args.c_ptr());
|
||||
return par_and_then(args.size(), args.data());
|
||||
}
|
||||
|
||||
static tactic * mk_try_for(cmd_context & ctx, sexpr * n) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue