mirror of
https://github.com/Z3Prover/z3
synced 2025-04-12 12:08:18 +00:00
bug in bounds
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
2363bfc132
commit
d5cc162fa7
|
@ -1377,7 +1377,7 @@ namespace pb {
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (k < lits.size()) {
|
if (k > lits.size()) {
|
||||||
if (lit == sat::null_literal)
|
if (lit == sat::null_literal)
|
||||||
s().add_clause(0, nullptr, sat::status::th(false, get_id()));
|
s().add_clause(0, nullptr, sat::status::th(false, get_id()));
|
||||||
else
|
else
|
||||||
|
@ -1458,6 +1458,7 @@ namespace pb {
|
||||||
for (auto const [w, l] : wlits)
|
for (auto const [w, l] : wlits)
|
||||||
weight += w;
|
weight += w;
|
||||||
if (weight < k) {
|
if (weight < k) {
|
||||||
|
std::cout << "weight " << weight << " " << k << "\n";
|
||||||
if (lit == sat::null_literal)
|
if (lit == sat::null_literal)
|
||||||
s().add_clause(0, nullptr, sat::status::th(false, get_id()));
|
s().add_clause(0, nullptr, sat::status::th(false, get_id()));
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue