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

find_overlap should stay on lower bit-width to find conflicts

This commit is contained in:
Jakob Rath 2024-04-02 16:27:29 +02:00
parent f127d12e4c
commit 47f28c6857

View file

@ -170,10 +170,11 @@ namespace polysat {
//
viable::entry* viable::find_overlap(rational& val) {
entry* last = nullptr;
// TODO: this doesn't always make sure we prefer smaller sizes... different suffixes would have to be interleaved.
for (auto const& [w, offset] : m_overlaps) {
for (auto& layer : m_units[w].get_layers()) {
again:
entry* e = find_overlap(w, layer, val);
if (!e)
continue;
@ -185,12 +186,13 @@ namespace polysat {
m_explain_kind = explain_t::conflict;
return nullptr;
}
goto again;
}
}
return last;
}
viable::entry* viable::find_overlap(pvar w, layer& l, rational const& val) {
viable::entry* viable::find_overlap(pvar /* w */, layer& l, rational const& val) {
if (!l.entries)
return nullptr;
unsigned v_width = m_num_bits;