We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a8bfab3 commit de43e05Copy full SHA for de43e05
src/smt/theory_pb.cpp
@@ -1597,6 +1597,9 @@ namespace smt {
1597
value += coeff;
1598
}
1599
1600
+ if (value >= 0) {
1601
+ display_resolved_lemma(verbose_stream() << "not validated\n");
1602
+ }
1603
// std::cout << "bound: " << m_bound << " value " << value << " coeffs: " << m_active_vars.size() << " lemma is " << (value >= 0 ? "sat" : "unsat") << "\n";
1604
return value < 0;
1605
@@ -1804,8 +1807,8 @@ namespace smt {
1804
1807
1805
1808
if (g >= 2) {
1806
1809
normalize_active_coeffs();
- for (unsigned i = 0; i < m_active_vars.size(); ++i) {
- m_coeffs[m_active_vars[i]] /= g;
1810
+ for (auto v : m_active_vars) {
1811
+ m_coeffs[v] /= static_cast<int>(g);
1812
1813
m_bound = (m_bound + g - 1) / g;
1814
TRACE("pb", display_resolved_lemma(tout << "cut\n"););
0 commit comments