3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-08-22 11:07:51 +00:00

add doc for card2bv

This commit is contained in:
Nikolaj Bjorner 2022-12-11 09:51:30 -08:00
parent a302c2f15e
commit 527fb18366
4 changed files with 55 additions and 15 deletions

View file

@ -262,13 +262,12 @@ void bound_manager::reset() {
}
bool bound_manager::inconsistent() const {
for (auto const& kv : m_lowers) {
limit const& lim1 = kv.m_value;
for (auto const& [k,v] : m_lowers) {
limit const& lim1 = v;
limit lim2;
if (m_uppers.find(kv.m_key, lim2)) {
if (lim1.first > lim2.first) {
return true;
}
if (m_uppers.find(k, lim2)) {
if (lim1.first > lim2.first)
return true;
if (lim1.first == lim2.first &&
!lim1.second && lim2.second) {
return true;