mirror of
https://github.com/Z3Prover/z3
synced 2025-04-30 04:15:51 +00:00
address compiler warnings, and user question #6544
This commit is contained in:
parent
523a3f34b0
commit
d11e5c8ca6
16 changed files with 11 additions and 57 deletions
|
@ -2791,7 +2791,6 @@ namespace pb {
|
|||
bool solver::subsumes(card& c1, card& c2, literal_vector & comp) {
|
||||
if (c2.lit() != sat::null_literal) return false;
|
||||
|
||||
unsigned c2_exclusive = 0;
|
||||
unsigned common = 0;
|
||||
comp.reset();
|
||||
for (literal l : c2) {
|
||||
|
@ -2801,9 +2800,6 @@ namespace pb {
|
|||
else if (is_visited(~l)) {
|
||||
comp.push_back(l);
|
||||
}
|
||||
else {
|
||||
++c2_exclusive;
|
||||
}
|
||||
}
|
||||
|
||||
unsigned c1_exclusive = c1.size() - common - comp.size();
|
||||
|
@ -3405,16 +3401,13 @@ namespace pb {
|
|||
|
||||
unsigned slack = 0;
|
||||
unsigned max_level = 0;
|
||||
unsigned num_max_level = 0;
|
||||
for (wliteral wl : m_wlits) {
|
||||
if (value(wl.second) != l_false) ++slack;
|
||||
unsigned level = lvl(wl.second);
|
||||
if (level > max_level) {
|
||||
max_level = level;
|
||||
num_max_level = 1;
|
||||
}
|
||||
else if (max_level == level) {
|
||||
++num_max_level;
|
||||
}
|
||||
}
|
||||
if (m_overflow)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue