mirror of
https://github.com/Z3Prover/z3
synced 2026-02-16 05:41:43 +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
|
|
@ -457,11 +457,11 @@ struct th_rewriter_cfg : public default_rewriter_cfg {
|
|||
new_t2 = nullptr;
|
||||
expr_fast_mark1 visited1;
|
||||
expr_fast_mark2 visited2;
|
||||
for (unsigned i = 0; i < num1; i++) {
|
||||
for (unsigned i = 0; i < num1; ++i) {
|
||||
expr * arg = ms1[i];
|
||||
visited1.mark(arg);
|
||||
}
|
||||
for (unsigned i = 0; i < num2; i++) {
|
||||
for (unsigned i = 0; i < num2; ++i) {
|
||||
expr * arg = ms2[i];
|
||||
visited2.mark(arg);
|
||||
if (visited1.is_marked(arg))
|
||||
|
|
@ -470,7 +470,7 @@ struct th_rewriter_cfg : public default_rewriter_cfg {
|
|||
return false; // more than one missing term
|
||||
new_t2 = arg;
|
||||
}
|
||||
for (unsigned i = 0; i < num1; i++) {
|
||||
for (unsigned i = 0; i < num1; ++i) {
|
||||
expr * arg = ms1[i];
|
||||
if (visited2.is_marked(arg))
|
||||
continue;
|
||||
|
|
@ -486,7 +486,7 @@ struct th_rewriter_cfg : public default_rewriter_cfg {
|
|||
new_t2 = m_a_util.mk_numeral(rational::zero(), is_int);
|
||||
// mk common part
|
||||
ptr_buffer<expr> args;
|
||||
for (unsigned i = 0; i < num1; i++) {
|
||||
for (unsigned i = 0; i < num1; ++i) {
|
||||
expr * arg = ms1[i];
|
||||
if (arg == new_t1.get())
|
||||
continue;
|
||||
|
|
@ -635,7 +635,7 @@ struct th_rewriter_cfg : public default_rewriter_cfg {
|
|||
if (st != BR_DONE && st != BR_FAILED) {
|
||||
CTRACE(th_rewriter_step, st != BR_FAILED,
|
||||
tout << f->get_name() << "\n";
|
||||
for (unsigned i = 0; i < num; i++) tout << mk_ismt2_pp(args[i], m()) << "\n";
|
||||
for (unsigned i = 0; i < num; ++i) tout << mk_ismt2_pp(args[i], m()) << "\n";
|
||||
tout << "---------->\n" << mk_ismt2_pp(result, m()) << "\n";);
|
||||
return st;
|
||||
}
|
||||
|
|
@ -657,7 +657,7 @@ struct th_rewriter_cfg : public default_rewriter_cfg {
|
|||
|
||||
CTRACE(th_rewriter_step, st != BR_FAILED,
|
||||
tout << f->get_name() << "\n";
|
||||
for (unsigned i = 0; i < num; i++) tout << mk_ismt2_pp(args[i], m()) << "\n";
|
||||
for (unsigned i = 0; i < num; ++i) tout << mk_ismt2_pp(args[i], m()) << "\n";
|
||||
tout << "---------->\n" << mk_ismt2_pp(result, m()) << "\n";);
|
||||
return st;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue