mirror of
https://github.com/Z3Prover/z3
synced 2026-06-21 16:10:26 +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
|
|
@ -127,7 +127,7 @@ namespace lp {
|
|||
|
||||
bool all_columns_are_integral() const {
|
||||
return true; // otherwise it never returns true!
|
||||
for (lpvar j = 0; j < lra.number_of_vars(); j++)
|
||||
for (lpvar j = 0; j < lra.number_of_vars(); ++j)
|
||||
if (!lra.column_is_int(j))
|
||||
return false;
|
||||
return true;
|
||||
|
|
@ -449,14 +449,14 @@ namespace lp {
|
|||
|
||||
std::ostream& int_solver::display_inf_rows(std::ostream& out) const {
|
||||
unsigned num = lra.A_r().column_count();
|
||||
for (unsigned v = 0; v < num; v++) {
|
||||
for (unsigned v = 0; v < num; ++v) {
|
||||
if (column_is_int(v) && !get_value(v).is_int()) {
|
||||
display_column(out, v);
|
||||
}
|
||||
}
|
||||
|
||||
num = 0;
|
||||
for (unsigned i = 0; i < lra.A_r().row_count(); i++) {
|
||||
for (unsigned i = 0; i < lra.A_r().row_count(); ++i) {
|
||||
unsigned j = lrac.m_r_basis[i];
|
||||
if (column_is_int_inf(j)) {
|
||||
num++;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue