3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2026-03-17 02:30:01 +00:00
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2023-12-15 16:02:13 -08:00
parent c50bf61cf5
commit c6d3b7ec5d
6 changed files with 42 additions and 22 deletions

View file

@ -204,13 +204,6 @@ namespace polysat {
return true;
}
signed_constraint core::get_constraint(unsigned idx, bool sign) {
auto sc = m_constraint_index[idx].sc;
if (sign)
sc = ~sc;
return sc;
}
void core::propagate_assignment(constraint_id idx) {
auto [sc, dep, value] = m_constraint_index[idx.id];
SASSERT(value != l_undef);
@ -252,7 +245,6 @@ namespace polysat {
bool swapped = false;
for (unsigned i = vars.size(); i-- > 2; ) {
if (!is_assigned(vars[i])) {
verbose_stream() << "watch instead " << vars[i] << " instead of " << vars[0] << " for " << idx << "\n";
add_watch(idx, vars[i]);
std::swap(vars[i], vars[0]);
swapped = true;