3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2026-02-23 16:57:51 +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:
Copilot 2026-01-14 19:55:31 -08:00 committed by Nikolaj Bjorner
parent 851b8ea31c
commit 317dd92105
475 changed files with 3237 additions and 3237 deletions

View file

@ -25,7 +25,7 @@ static void tst1() {
bit_vector v1;
bool_vector v2;
unsigned n = rand()%10000;
for (unsigned i = 0; i < n; i++) {
for (unsigned i = 0; i < n; ++i) {
int op = rand()%6;
if (op <= 1) {
bool val = (rand()%2) != 0;
@ -53,7 +53,7 @@ static void tst1() {
}
else if (op <= 5) {
ENSURE(v1.size() == v2.size());
for (unsigned j = 0; j < v1.size(); j++) {
for (unsigned j = 0; j < v1.size(); ++j) {
ENSURE(v1.get(j) == v2[j]);
}
}
@ -307,7 +307,7 @@ void tst_bit_vector() {
tst_eq();
return;
tst2();
for (unsigned i = 0; i < 20; i++) {
for (unsigned i = 0; i < 20; ++i) {
std::cerr << i << std::endl;
tst1();
}