mirror of
https://github.com/Z3Prover/z3
synced 2026-03-01 11:16:54 +00:00
Standardize for-loop increments to prefix form (++i) (#8199)
* Initial plan * Convert postfix to prefix increment in for loops Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com> * Fix member variable increment conversion bug Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com> * Update API generator to produce prefix increments Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com>
This commit is contained in:
parent
1bf463d77a
commit
2436943794
475 changed files with 3237 additions and 3237 deletions
|
|
@ -246,7 +246,7 @@ UNARY_CMD(used_vars_cmd, "dbg-used-vars", "<expr>", "test used_vars functor", CP
|
|||
arg = to_quantifier(arg)->get_expr();
|
||||
proc(arg);
|
||||
ctx.regular_stream() << "(vars";
|
||||
for (unsigned i = 0; i < proc.get_max_found_var_idx_plus_1(); i++) {
|
||||
for (unsigned i = 0; i < proc.get_max_found_var_idx_plus_1(); ++i) {
|
||||
sort * s = proc.get(i);
|
||||
ctx.regular_stream() << "\n (" << std::left << std::setw(6) << i << " ";
|
||||
if (s != 0)
|
||||
|
|
|
|||
|
|
@ -67,7 +67,7 @@ static void factor(cmd_context & ctx, expr * t, polynomial::factor_params const
|
|||
ctx.regular_stream() << std::endl << f0;
|
||||
unsigned num_factors = fs.distinct_factors();
|
||||
expr_ref f(ctx.m());
|
||||
for (unsigned i = 0; i < num_factors; i++) {
|
||||
for (unsigned i = 0; i < num_factors; ++i) {
|
||||
ctx.regular_stream() << std::endl;
|
||||
if (fs.get_degree(i) > 1)
|
||||
ctx.regular_stream() << "(^ ";
|
||||
|
|
@ -137,7 +137,7 @@ class poly_isolate_roots_cmd : public cmd {
|
|||
polynomial::var_vector xs;
|
||||
m_pm.vars(m_p, xs);
|
||||
unsigned num_assigned = 0;
|
||||
for (unsigned i = 0; i < xs.size(); i++) {
|
||||
for (unsigned i = 0; i < xs.size(); ++i) {
|
||||
if (m_x2v.contains(xs[i]))
|
||||
num_assigned++;
|
||||
}
|
||||
|
|
@ -148,7 +148,7 @@ class poly_isolate_roots_cmd : public cmd {
|
|||
ctx.regular_stream() << "(roots";
|
||||
pp_params params;
|
||||
bool pp_decimal = params.decimal();
|
||||
for (unsigned i = 0; i < rs.size(); i++) {
|
||||
for (unsigned i = 0; i < rs.size(); ++i) {
|
||||
ctx.regular_stream() << std::endl;
|
||||
if (!pp_decimal)
|
||||
m_am.display_root_smt2(ctx.regular_stream(), rs[i]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue