mirror of
https://github.com/Z3Prover/z3
synced 2025-04-12 12:08:18 +00:00
fix validation code for pb
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
a66095bb08
commit
cf5a8fd248
|
@ -1823,7 +1823,7 @@ namespace pb {
|
||||||
}
|
}
|
||||||
|
|
||||||
bool solver::validate_watch(pbc const& p, literal alit) const {
|
bool solver::validate_watch(pbc const& p, literal alit) const {
|
||||||
if (value(p.lit()) != l_true)
|
if (p.lit() == sat::null_literal || value(p.lit()) != l_true)
|
||||||
return true;
|
return true;
|
||||||
for (unsigned i = 0; i < p.size(); ++i) {
|
for (unsigned i = 0; i < p.size(); ++i) {
|
||||||
literal l = p[i].second;
|
literal l = p[i].second;
|
||||||
|
|
Loading…
Reference in a new issue