diff --git a/genaisrc/genaiscript.d.ts b/genaisrc/genaiscript.d.ts index 10b31f850..ae37c0937 100644 Binary files a/genaisrc/genaiscript.d.ts and b/genaisrc/genaiscript.d.ts differ diff --git a/src/test/algebraic.cpp b/src/test/algebraic.cpp index 371997c02..8d1b60777 100644 --- a/src/test/algebraic.cpp +++ b/src/test/algebraic.cpp @@ -25,18 +25,18 @@ Notes: static void display_anums(std::ostream & out, scoped_anum_vector const & rs) { out << "numbers in decimal:\n"; algebraic_numbers::manager & m = rs.m(); - for (unsigned i = 0; i < rs.size(); i++) { - m.display_decimal(out, rs[i], 10); + for (const auto& r : rs) { + m.display_decimal(out, r, 10); out << "\n"; } out << "numbers as root objects\n"; - for (unsigned i = 0; i < rs.size(); i++) { - m.display_root(out, rs[i]); + for (const auto& r : rs) { + m.display_root(out, r); out << "\n"; } out << "numbers as intervals\n"; - for (unsigned i = 0; i < rs.size(); i++) { - m.display_interval(out, rs[i]); + for (const auto& r : rs) { + m.display_interval(out, r); out << "\n"; } } diff --git a/src/test/lp/gomory_test.h b/src/test/lp/gomory_test.h index 9ac675d1a..f7f822566 100644 --- a/src/test/lp/gomory_test.h +++ b/src/test/lp/gomory_test.h @@ -158,8 +158,8 @@ struct gomory_test { TRACE("gomory_cut_detail", tout << "pol.size() > 1" << std::endl;); lcm_den = lcm(lcm_den, denominator(k)); TRACE("gomory_cut_detail", tout << "k: " << k << " lcm_den: " << lcm_den << "\n"; - for (unsigned i = 0; i < pol.size(); i++) { - tout << pol[i].first << " " << pol[i].second << "\n"; + for (const auto& p : pol) { + tout << p.first << " " << p.second << "\n"; } tout << "k: " << k << "\n";); lp_assert(lcm_den.is_pos()); @@ -172,8 +172,8 @@ struct gomory_test { k *= lcm_den; } TRACE("gomory_cut_detail", tout << "after *lcm\n"; - for (unsigned i = 0; i < pol.size(); i++) { - tout << pol[i].first << " * v" << pol[i].second << "\n"; + for (const auto& p : pol) { + tout << p.first << " * v" << p.second << "\n"; } tout << "k: " << k << "\n";); @@ -210,7 +210,7 @@ struct gomory_test { bool some_int_columns = false; mpq f_0 = fractional_part(get_value(inf_col)); mpq one_min_f_0 = 1 - f_0; - for ( auto pp : row) { + for (const auto& pp : row) { a = pp.first; x_j = pp.second; if (x_j == inf_col)