3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-22 00:26:38 +00:00

fix bug introduced in is_valid()

This commit is contained in:
Nikolaj Bjorner 2023-04-02 16:12:11 -07:00
parent ae57475483
commit 3302ab9dc5

View file

@ -211,7 +211,7 @@ namespace polysat {
bool conflict::is_valid() const {
SASSERT(!empty());
// If m_dep is set, the corresponding constraint was asserted at m_level and is not valid earlier.
if (!m_dep.is_null() && m_level >= s.m_level)
if (!m_dep.is_null() && m_level > s.m_level)
return false;
// All conflict constraints must be bool-assigned.
for (unsigned lit_idx : m_literals)